sanel / monroe

Clojure nREPL client for Emacs
161 stars 21 forks source link

Exception capture not working with clojure-maven-plugin #20

Closed sanel closed 7 years ago

sanel commented 7 years ago

Using clojure-maven-plugin, in case of exception, monroe will sometimes ends up in loop with this output:

demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
demo=> ClassNotFoundException clojure.repl  java.net.URLClassLoader.findClass (URLClassLoader.java:381)
d

Reason is that clojure-maven-plugin is not loading clojure.repl namespace.

technomancy commented 7 years ago

It happens also with lein repl :headless and most other situations in which nRepl is embedded in an application.

sanel commented 7 years ago

Didn't know about this. Thanks for letting me know.

technomancy commented 7 years ago

Added a fix to this to #19.