clj-extras-plugin icon indicating copy to clipboard operation
clj-extras-plugin copied to clipboard

clj-extras-plugin suppress output to console

Open mikeananev opened this issue 2 years ago • 2 comments

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 avatar Mar 30 '22 20:03 mikeananev

On step 2 also I restarted iDEA

mikeananev avatar Mar 30 '22 20:03 mikeananev

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

brcosta avatar Apr 18 '22 02:04 brcosta