tools.namespace

Attempt to reload deleted file

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Major Major
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

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.

Activity

Hide
Gary Fredericks added a comment -

This happens to me pretty frequently, especially when switching branches (which is ironically the best use case for calling refresh).

Show
Gary Fredericks added a comment - This happens to me pretty frequently, especially when switching branches (which is ironically the best use case for calling refresh).
Hide
Stuart Sierra added a comment -

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

Show
Stuart Sierra added a comment - 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
Hide
Gary Fredericks added a comment -

yep, noticed that independently and just confirmed that it works.

Show
Gary Fredericks added a comment - yep, noticed that independently and just confirmed that it works.

People

Vote (1)
Watch (0)

Dates

  • Created:
    Updated: