-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StackOverflowError in cider.nrepl.middleware.out #716
Comments
Thanks! I assume the section of the stracktrace is repeating? Do you see any different lines? (Especially at its beginning) |
Yeah, that section of the stack trace seemed to be the loop. I managed to grab the StackOverflowError object and |
Thanks. With a bit of luck we might be able to repro this by exercising t.logging within our test suite. |
Are you using In any case, what logging impl (https://github.com/clojure/tools.logging#selecting-a-logging-implementation) are you using? |
Here's my attempt at a repro e514b3a , build is still green. Feel free to check out that commit and suggest anything that might make that logging setup more similar to yours. |
I played around with
As you can see, we're using I also noticed that I can't trigger this issue by just calling As far as I know we aren't doing anything special wrt. logging. I can find no references to |
I'll take a look again later In the meantime, looks like you can remove the ConsoleAppender from your logback.xml? That should fix things - no Personally it's something I do for all my work apps - for a different reason: having logging output in CIDER is far too noisy. And Emacs doesn't exactly excel at handling abundant output. You can always set up a FileAppender and |
Released cider-nrepl 0.27.2. You can set it in cider.el via. |
Expected behavior
Logging with
clojure.tools.logging
should work when running application over emacs/cider repl.Actual behavior
A StackOverflowException is thrown when logging is attempted:
Steps to reproduce the problem
org.clojure/tools.logging
1.1.0
(clojure.tools.logging/debug "hello")
within atry
blockVersion
0.26.0
does not exhibit this issue (tested by overriding version inprofiles.clj
).Also, running the application through
lein repl
does not exhibit this issue.Environment & Version information
cider-nrepl version
0.27.0
Java version
Operating system
Linux archlinux 5.14.7-arch1-1 #1 SMP PREEMPT Wed, 22 Sep 2021 21:35:11 +0000 x86_64 GNU/Linux
The text was updated successfully, but these errors were encountered: