[TNS-6] Attempt to reload deleted file Created: 14/Dec/12 Updated: 12/Aug/15
|Reporter:||Stuart Sierra||Assignee:||Stuart Sierra|
I can't identify the exact circumstances, but I have seen events where a source code file has been deleted but clojure.tools.namespace.repl/refresh still tries to reload it. Because the file doesn't exist, there's an exception when you try to load it, so you're stuck.
|Comment by Gary Fredericks [ 12/Aug/15 10:21 AM ]|
This happens to me pretty frequently, especially when switching branches (which is ironically the best use case for calling refresh).
|Comment by Stuart Sierra [ 12/Aug/15 10:24 AM ]|
I still don't know exactly how this occurs.
The workaround for now is to call c.t.n.repl/clear, added in 0.2.5
|Comment by Gary Fredericks [ 12/Aug/15 1:26 PM ]|
yep, noticed that independently and just confirmed that it works.