Using lein-test-refresh
, I've noticed that I can change code and it reloads the correct namespace, but the function I changed doesn't actually get updated. I can comment out the whole fn body and it reloads the correct ns and re-runs the tests which actually still use the old fn body. However, I've verified the code is being compiled, since I can introduce compilation errors and lein-test-refresh
outputs the errors.
So, why would it be compiling the code but not replacing my fn vars? Has anyone seen this before and does anyone have tips to fix it?
In some DMs it seems like the problem was something else. test-refresh handles this otherwise it would be useless