Welcome! Please see the About page for a little more info on how this works.

0 votes
in Errors by
With the new error reporting phases in Clojure 1.10, we identified two separate phases - :compile-syntax-check (for syntax errors found by compiler) and :compilation for errors that occur during compilation but that are not syntax errors.

Example of the latter:


user=> a/b
Syntax error compiling at (REPL:0:0).
No such namespace: a
user=> (ex-data *e)
#:clojure.error{:phase :compile-syntax-check, :line 0, :column 0, :source "NO_SOURCE_PATH"}


The syntax here is fine, just a is not a known namespace.

The Compiler adheres to no patterns in differentiating between these two. We should go through and make this consistent, either through exception types or explicitly specifying the phase in a CompilerException.

1 Answer

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-2428 (reported by alexmiller)
...