Problem: Clojure requires the files that back a namespace that has dashes in it to have the dashes replaced with underscores on the filesystem (ie a.b_c.clj for namespace a.b-c). If you require a file that has been mistakenly saved as b-c.clj instead, you will get an error message:
- When loading the resource-root of lib throws a FileNotFoundException, the lib is analyzed...
- ... if the lib was a name that would be munged, it examines the combinatorial explosion of munge candidates and .clj or .class files in the classpath ...
- ... if any of these candidates exist, it informs the user of the file's existence, and that a change to that filename would lead to that resource being loaded.
- ... if none of these candidates exist, it throws the original exception.
It also modifies clojure.lang.RT to expose the behavior around finding clj or class files from a resource root.