-
-
Notifications
You must be signed in to change notification settings - Fork 222
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
Unwanted newlines are added to REPL output of Kaocha test run #1826
Comments
Thanks! As discussed on Slack this probably has a solution where Calva does not add newlines when receiving data for |
This was an immediate question I had. So that's the first attempt? To simply never add newlines and see how that looks? And does testing that involve passing unit tests or are we talking about human verification by using the REPL? |
Sorry for dropping this ball, @bartkl! @Gnurdle reminded me about it. And from what I can see our idea of just never adding newlines works. It was a bit more involved than that to actually make it so, because I had made quite a mess of the printing way back. Can't even figure out why I did all that funny stuff. 😄 Anyway, here's a VSIX that I'd like help to test. It fixes the Kaocha printouts, but I might also have introduced some regression elsewhere... The PR: |
No problem! And I'm happy to help. I just installed the VSIX and tried it out, but to no avail. The kaocha output is still like before:
Even after first uninstalling Calva and then reinstalling the VSIX (using If I can do more to help, let me know. Thanks! |
Thanks for being so quick on testing! I'll try to figure out what's going on. |
Hmmm, I was thinking maybe something was funny with the VSIX, but it behaves as intended... How do you install the VSIX? Maybe The way I install VSIXs is from that pane's top meatballs menu: Install from VSIX... |
I tried your way of installing too, and hovering over the Calva extension tells me:
Which seems good. The Could this have something to do with me being on Linux? With regards to the line endings? |
Also on linux. Clojurescript/Node. The update seems to fix the issue I was talking about:
now in (.312) produces repl output w/o extra newlines whereas 311 has them |
@bartkl, it's baffling. Your Calva behaves just like if it hasn't been updated. I'm on Mac so we should have the same line ending scheme. Also, what the change should do is to just not add newlines, so whatever scheme shouldn't matter. Can you try with VS Code Insiders? https://code.visualstudio.com/insiders/ |
Clever, @PEZ. And I can confirm it works in that isolated VS Code Insiders. So something's wrong with my current installation. I might simply reinstall everything and see what happens ;). The fix seems fine, that's for sure. Edit: I just accidently deleted my entire VS Code config. What better timing! ;) Thanks! |
Hi,
As discussed on Slack, when running tests in the REPL with Kaocha with the standard reporter, the dots summary is broken up on newlines, hurting readability.
The correct output looks like:
[(.)(FFF)]
(run in command-line REPL through Leiningen)However, when I run these tests the same way in Calva's REPL, these characters get broken up:
(run in Calva REPL)
As I understand the brilliant debugging done by some Clojurians on Slack, the issue arises because Kaocha sends these characters one by one, and Calva adds newline characters each time nREPL receives a character.
Anyways, @PEZ asked me to submit this issue, so here we are. As requested, here's the nREPL log from Calva (truncated for relevance):
REPL output (Calva)
Thanks!
The text was updated successfully, but these errors were encountered: