https://github.com/clojure-emacs/cider-nrepl/issues/549
Erik. > On 12 Oct 2018, at 16:54, Alex Miller <a...@puredanger.com> wrote: > > Before you would have gotten the spec ExceptionInfo. Now you should get a > CompilerException wrapping that ExceptionInfo. It looks like the error is in > parsing the location out of the message (which is probably missing now as > that's built later). The top-level CompilerException now has an ex-data that > reports the line number directly so no parsing is needed. > > So if the code first looked for ex-data with source/line/col info then fell > back to string parsing, that would work for both: > > user=> (let [2]) > Syntax error macroexpanding clojure.core/let at (1:1). Cause: Call to > clojure.core/let did not conform to spec. > [2] - failed: even-number-of-forms? at: [:bindings] spec: > :clojure.core.specs.alpha/bindings > user=> (ex-data *e) > #:clojure.error{:line 1, :column 1, :phase :macroexpand, :source > "NO_SOURCE_PATH", :symbol clojure.core/let} > > ^^ can just use (-> *e ex-data :clojure.error/line) now to grab the line, etc -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.