Skip to content
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

clj-extras-plugin suppress output to console #21

Open
mikeananev opened this issue Mar 30, 2022 · 2 comments
Open

clj-extras-plugin suppress output to console #21

mikeananev opened this issue Mar 30, 2022 · 2 comments

Comments

@mikeananev
Copy link

Problem: if clj-extras-plugin installed then output to REPL window is suppressed from other threads.

Steps to reproduce:

  1. I wrote an UDP Server and noticed that println from other thread is suppressed. Received messages or timeout messages are not printed.

bad-screenshot

  1. I disabled the plugin and restart the REPL. Everything works as expected: I see timeout messages or received messages. See screen shot.

good-screenshot

@mikeananev
Copy link
Author

On step 2 also I restarted iDEA

@brcosta
Copy link
Owner

brcosta commented Apr 18, 2022

Thanks for the repro code, I can reproduce it, the current implementation uses a naive approach of creating an efemeral/short lived nrepl connection to the session created by cursive's repl, run the code in it, intercept its output and show it in the tooltip. After the tooltip is closed this connection is closed and then all messages after that (like the printlns) are lost. Couldn't come up with a quick fix for that one yet but I'll try a more robust fix later :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants