Details
-
Type:
Defect
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Completed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
When a namespace fails to load, a stack trace for just the require/load itself is shown - the actual cause is wrapped and hard to uncover. Putting a println statement in the catch clause of clojure.core/load-lib is one possible fix for this, but then two stack traces are displayed. Still, this may be worthwhile because debugging these errors can be a headache.
The changes to make the loading code throw exceptions rather than catch exceptions and return status codes ( https://github.com/clojure/clojure-clr/commit/e6febd45d53c983d696b83de62cf794be1d165aa ) should have made Exceptions during loading accessible further down the stack (i.e., the REPL).