-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable calling clojure.tools.namespace.repl/set-refresh-dirs
as part of setup.
#59
Comments
I believe this only needs to be called once, not on every test run. Perhaps have a "setup-fn" that's specified in project.clj and called in |
Interesting problem. Allowing a generic Another approach would be to add a I won't be able to give a shot at either solution until sometime later this week. I'd most likely accept a PR for |
Actually, was thinking about some weirdness I've been seeing in one of my own projects and wondering if its because of this problem. Going to build out the first option today. |
Released Sort of wondering if :watch-dirs and :refresh-dirs should be collapsed into a single option. I'm having a difficult time coming up with a scenario in which you would set one and not the other. |
Thanks! From my initial testing, setting I don't know enough about how Figwheel does its compilation, but I wonder if Figwheel could be convinced to place its compilation someplace other than where the final JavaScript output ends up. Of course that's an issue for a different project :) Thanks again for your quick response! |
Just released a non-snapshot release, |
Thanks! |
.cljc
files in/resources/
(such as those copied there during figwheel compilation) are picked up by default duringclojure.tools.namespace.repl/refresh
, which can stomp on code loaded into memory bytest-refresh
. By exposingclojure.tools.namespace.repl/set-refresh-dirs
in some way as part of the test-refresh run, we can avoid this from happening.For more detail, see a blog post I wrote detailing how I worked around the same issue with the Reloaded workflow
The text was updated successfully, but these errors were encountered: