Fork me on GitHub
#cider
<
2021-10-01
lassemaatta08:10:33

I noticed this morning that my app isn't working. After some debugging I found out that any time I use clojure.tools.logging for logging I get a StackOverflowError, which (if I'm reading it correctly) seems to hint at cider.nrepl.middleware.out. Any idea what might cause this? Or is this even related to cider at all?

lassemaatta08:10:50

[java.io.PrintWriter write "PrintWriter.java" 542]
[jdk.internal.reflect.GeneratedMethodAccessor3 invoke nil -1]
[jdk.internal.reflect.DelegatingMethodAccessorImpl invoke "DelegatingMethodAccessorImpl.java" 43]
[java.lang.reflect.Method invoke "Method.java" 566]
[clojure.lang.Reflector invokeMatchingMethod "Reflector.java" 167]
[clojure.lang.Reflector invokeInstanceMethod "Reflector.java" 102]
[cider.nrepl.middleware.out$forking_printer$fn__55622 invoke "out.clj" 59]
[cider.nrepl.middleware.out.proxy$java.io.Writer$ff19274a write nil -1]
[java.io.PrintWriter write "PrintWriter.java" 542]

lassemaatta08:10:06

It's a leiningen project and if I run it through lein repl -> everything works. But if started from emacs/cider I get the overflows.

lassemaatta08:10:45

cider-version in emacs reports CIDER 1.2.0snapshot (package: ), if that's any help

lassemaatta09:10:55

and cider.nrepl.version/version-string evals to "0.27.0"

vemv09:10:58

Doesn't ring a bell to me, seems dense enough to justify creating a GH issue in cider-nrepl

bozhidar10:10:00

Clearly it's a regression, but we'll have to figure out which commit caused this exactly.

mjmeintjes21:10:51

How can I set cider's evaluation in cljc files to only evaluate against the clojure repl, not the clojurescript one?