nrepl-discover
nrepl-discover copied to clipboard
No response when discovered var throws during a call from emacs
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.
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.