calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
metehan 2021-04-29T00:12:58.278100Z

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.

metehan 2021-04-29T00:13:44.278200Z

[: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)

bringe 2021-04-29T05:35:45.280600Z

https://github.com/BetterThanTomorrow/calva/issues/579 Related issue for more configurability, if you're interested.

pez 2021-04-29T05:37:02.282400Z

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.

❤️ 1
otwieracz 2021-04-29T08:29:12.284200Z

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

otwieracz 2021-04-29T08:29:32.284500Z

Is this something well known with workaround available?

pez 2021-04-29T15:06:37.284700Z

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?

bringe 2021-04-29T16:04:54.285500Z

@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

👍 1
bringe 2021-04-29T16:10:09.286700Z

I just created this issue in the Calva repo for more visibility: https://github.com/BetterThanTomorrow/calva/issues/1159

bringe 2021-04-29T16:16:48.288900Z

@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

bringe 2021-04-29T16:16:58.289400Z

I don't fully understand this all yet 😄

otwieracz 2021-04-29T16:17:07.289700Z

@brandon.ringe actually I just did that and seems like it helped!

bringe 2021-04-29T16:17:14.290Z

Oh great!

otwieracz 2021-04-29T16:17:22.290300Z

Basically I cross-checked the dependencies with those used in my emacs setup.

otwieracz 2021-04-29T16:18:07.291300Z

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.

otwieracz 2021-04-29T16:18:15.291600Z

So it can be only the restart that resolved the issue.

bringe 2021-04-29T16:20:44.292100Z

I see. I'll leave that Calva issue open for a bit and also update cider-nrepl's version in Calva

otwieracz 2021-04-29T16:21:56.292300Z

Thanks!

👍 1
az 2021-04-29T22:19:24.295700Z

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.

az 2021-04-29T22:21:04.296800Z

I’m still struggling to understand if there is some type of connection to the repl and something like this outside request