-
-
Notifications
You must be signed in to change notification settings - Fork 645
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
stderr output is not printed to repl #1588
Comments
Excellent bug report! Thanks! :-) |
So, it seems we forgot to handle stderr in our |
Looking through that code now, I don't think I could have done a better job at making it specific to I wish I'd made it slightly more general. |
You and me both. We definitely have to fix this before the release. If you don't have time I'll update it over the weekend (or at least I hope I'll have time for this). |
I'll have a bit of time sunday night. |
OK, I'm leaving this to you then. :-) |
Actually, I just gave it a try over lunch and I don't know how to get it to work. Redirecting Remember how we can redirect Clojure's |
Actually I don't - aren't they the same thing? But I'm guessing even if this is true, it still makes sense to redirect |
Apparently not. To change Java's out we have to call setSystemOut, there's a comment about it on the code.
Yes, but I failed to do that. :-P
|
Just generify the existing code and we'll take it from there. Baby steps. :-) |
P.S. This works fine for me. |
Yes. Because that's inside an Eval session. The point of this middleware is to redirect prints that happen on the server out (outside any Eval session). |
I know. :-) Guess I misinterpreted your comment - I assumed err was misbehaving completely for you. |
Sorry, I was a little laconic. :-) |
Confirmed:
|
Both |
Using cider-connect all the output that is written to out or err from other than nrepl-threads output only to the server instance, not to the repl directly. This makes remote debugging really hard. Also when running local repl (cider-jack-in) all the stack traces of uncaught exceptions are printed only on the nrepl-server buffer and not in repl buffer. I find this annoying. |
This is closely related to #1896. I have a proof-of-concept fix here: https://github.com/bhagany/cider-nrepl/tree/repl-err. Hopefully it will soon be a PR. I'm currently stuck on the fact that the printed output gets printed before the prompt that causes it - that is, the prompt moves down and the output prints above it. If anyone has a solution to that, please let me know. |
Try running this code in cider repl:
Use the template below when reporting bugs. Please, make sure that
you're running the latest stable CIDER and that the problem you're reporting
hasn't been reported (and potentially fixed) already.
Steps to reproduce the problem
Run this code in cider repl:
Expected behavior
Actual behavior
Environment & Version information
CIDER version information
but it's also confirmed to fail in
0.11-SNAPSHOT
Emacs version
Operating system
The text was updated successfully, but these errors were encountered: