nrepl-discover icon indicating copy to clipboard operation
nrepl-discover copied to clipboard

No response when discovered var throws during a call from emacs

Open coventry opened this issue 11 years ago • 1 comments

I don't have time to put together a test case, but it looks like exceptions in calls to discovered vars aren't reported back to emacs or the repl. If that's the case, it would be great if nrepl.discover/wrap-discover did that.

coventry avatar Nov 13 '13 17:11 coventry

E.g.

(ns nrepl.failure)

(defn ^{:nrepl/op {:name "fail"}} fail [msg]
  (println (str "this shows up in the repl after M-x nrepl-discover "
                "RET M-x nrepl-fail RET"))
  (throw (Throwable. (str "No response to this (not even in the repl "
                          "with (clojure.repl/pst))"))))

I think you are right, the nrepl middleware framework must be eating the exception, somewhere. nrepl-discover should probably tell emacs to throw something, though.

coventry avatar Nov 17 '13 18:11 coventry