I started to get ERROR: Unhandled REPL handler exception processing messageERROR:
from a project that I was always using repl. I don't have any idea hot to solve it.
[:app] Compiling ...
[:app] Build completed. (673 files, 27 compiled, 0 warnings, 9.28s)
ERROR: Unhandled REPL handler exception processing messageERROR: Unhandled REPL handler exception processing message {{:op close, :session :op close, b9225df9-056e-4ed0-b6dc-1540534ea236:session} 735aa818-1496-494a-b3b6-c896c7f6d333}
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at nrepl.transport$bencode$fn__5876.invoke(transport.clj:109)
at nrepl.transport.FnTransport.send(transport.clj:28)
at nrepl.middleware.session$close_session.invokeStatic(session.clj:257)
at nrepl.middleware.session$close_session.invoke(session.clj:251)
at nrepl.middleware.session$session$fn__6776.invoke(session.clj:294)
at nrepl.middleware$wrap_conj_descriptor$fn__5960.invoke(middleware.clj:16)
at shadow.cljs.devtools.server.nrepl$start$fn__7061.invoke(nrepl.clj:142)
at nrepl.server$handle_STAR_.invokeStatic(server.clj:19)
at nrepl.server$handle_STAR_.invoke(server.clj:16)
at nrepl.server$handle$fn__6854.invoke(server.clj:36)
at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
java.net.SocketException: Socket closed
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:118)
at java.net.SocketOutputStream.write(SocketOutputStream.java:155)
at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:82)
at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:140)
at nrepl.transport$bencode$fn__5876.invoke(transport.clj:109)
at nrepl.transport.FnTransport.send(transport.clj:28)
at nrepl.middleware.session$close_session.invokeStatic(session.clj:257)
at nrepl.middleware.session$close_session.invoke(session.clj:251)
at nrepl.middleware.session$session$fn__6776.invoke(session.clj:294)
at nrepl.middleware$wrap_conj_descriptor$fn__5960.invoke(middleware.clj:16)
at shadow.cljs.devtools.server.nrepl$start$fn__7061.invoke(nrepl.clj:142)
at nrepl.server$handle_STAR_.invokeStatic(server.clj:19)
at nrepl.server$handle_STAR_.invoke(server.clj:16)
at nrepl.server$handle$fn__6854.invoke(server.clj:36)
at clojure.core$binding_conveyor_fn$fn__5754.invoke(core.clj:2030)
at clojure.lang.AFn.call(AFn.java:18)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
https://github.com/BetterThanTomorrow/calva/issues/579 Related issue for more configurability, if you're interested.
Thanks! It was fun and scary. The talk part took a lot longer than when i rehersed it. Was planning to have more demo than talk, but it will take some practice to get there.
Hmm, I am not able to evaluate various protocol-backed calls in Calva with errors like:
ERROR: Unhandled REPL handler exception processing message {:op info, :ns myproj.core, :symbol user-id, :id 1818, :session 102fd1a1-a06e-440c-b02c-0dcdca3e67ab}
java.lang.ClassNotFoundException: com.sun.tools.javac.util.List
Is this something well known with workaround available?
I saw something similar reported yesterday, somewhere. I don’t quite remember where… But it was not exactly the same so maybe unrelated. In any case, no, this is not something well known. Is it a Clojure or ClojureScript project?
@slawek098 I think this may be related to one or both of these issues. Not sure. But worth looking at: https://github.com/clojure-emacs/orchard/issues/105 https://github.com/clojure-emacs/orchard/issues/103
https://github.com/clojure-emacs/orchard/issues/103#issuecomment-792255191
I just created this issue in the Calva repo for more visibility: https://github.com/BetterThanTomorrow/calva/issues/1159
@slawek098 I'm not sure but the fix may have been released in cider-nrepl 0.26. Can you try updating your cider-nrepl to that version and seeing if it helps? It may be related to dynapath-based functionality, and disabling that seems opt-in, so you may have to do that as well. https://github.com/clojure-emacs/orchard/issues/105#issuecomment-818674481
I don't fully understand this all yet 😄
@brandon.ringe actually I just did that and seems like it helped!
Oh great!
Basically I cross-checked the dependencies with those used in my emacs setup.
I can’t guarantee that it helped though - because I basically encountered the issue, asked here, updated the dependencies and restarted REPL in Calva to discover that it works.
So it can be only the restart that resolved the issue.
I see. I'll leave that Calva issue open for a bit and also update cider-nrepl's version in Calva
Thanks!
Hi all, is there a way to have a breakpoint hit in clj when I trigger a handler from outside the repl like via postman? I find that I’m stashing requests in atoms but would be great if I could instrument and just pause and inspect the request. Thank you.
I’m still struggling to understand if there is some type of connection to the repl and something like this outside request