ClojureCLR

Errors when requiring a namespace do not contain useful stacktrace

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Priority: Minor 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.

Activity

Hide
David Miller added a comment -

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).

Show
David Miller added a comment - 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).

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: