-
-
Notifications
You must be signed in to change notification settings - Fork 219
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
Some calva commands become unresponsive after long-running use, until a reboot (MacOS) #1482
Comments
I don't know of any issues around having multiple VS Code windows jacked in to different projects. When jack-in fails (or seems to do nothing), are you seeing a message anywhere that the command isn't found? Some places you can try to look for information:
I was going to suggest looking at clojure-lsp-related info, but I doubt this is related to clojure-lsp since it has nothing to do with jack-in, and should not affect it (that I'm aware). |
Well, in case you didn't already know hot to find this info, and for the sake of thoroughness, here's where you can find info on clojure-lsp happenings. Another thing that could be helpful is run Calva in development mode, put a breakpoint at the beginning of the jack-in command, and use the debugger to see what could be going wrong. Maybe you can do this with a project after experiencing the issue, since it sounds like the issue will still occur until a reboot. Here's where you could place a breakpoint: Line 236 in 0877850
|
Also, when this problem occurs, have you tried starting a repl in a terminal, then connecting to it with Calva, rather than using jack-in? |
I see reports increasingly often about similar things. It doesn't seem to be about jack-in or the REPL, because people also report issues from pure static usage of Calva. I think this is a regression in VS Code, but I am far from sure. I have never experienced it myself, even though I most often run with 10+ windows, most of them jacked-in, for weeks upon weeks. Might be time to mine VS Code issues a bit. |
OK, thanks for the pointers on investigation. I'll try to dig a bit further based next time, based on the info you've given here. It's also good to know that my way of using Calva isn't too crazy / unsupported. I'll comment back once I have more info. |
I've experienced one occasion of Calva becoming unresponsive this morning, and made a few observations, which I'll note down here. I will try and dig deeper when it next happens.
I noticed something in developer tools, but this is actually being reported after a reboot too, when Calva will actually respond. I always see these warnings / errors in my dev tools console output:
As I said the messages above appear in the console when Calva is working as well as when it is not. I don't feel that I've seen a smoking gun yet, but I'll dig deeper the next time it happens. Just posting here now to not lose this info and in case it gives any clues. |
Thanks for investigating this, @byronrthomas! I experienced something like this two days ago. Might be something completely different, but these two things happened:
VS Code had been running for several weeks, with some average of 7 or so projects opened. I'm on MacOS, Monterey. |
Yes, thanks for investigating, @byronrthomas! You've brought to light an unrelated issue that I made another issue for. |
I'll be closing this now, as we have no real clues. If someone finds more clues and also finds this issue, please re-open. |
I've been scratching my head over this one for some time. Essentially my usage pattern is:
This kind of workflow used to work fine, but recently (I have noticed this issue since around November or December) I have found that after some indeterminate amount of time / usage, Calva stops responding to commands like jack-in or doesn't respond to jack-in from another VS code window. It isn't a failure to jack-in where you see output from lein, you don't get any output at all, nor did you see the popup windows that ask you to select a profile to run with, etc. The last time it happened, it also stopped responding to the "Calva Diagnostics: Clojure-lsp server info" command (it didn't even pop up the notification toast saying that the server is unavailable or still initialising either), although I have only recently started looking at this command, so not sure how consistently that happens.
My currently active project has been doing quite a lot of logging to terminal, meaning the REPL output window can be 10k+ lines, so I thought this issue might be in play, but I'm not so convinced any more because I've tried the following:
rm -rf .calva && rm -rf .lsp && rm -rf .clj-kondo
Any idea what this could be or how to diagnose / workaround it? I'm happy to help investigate / fix it if anybody has some initial pointers.
Here is the output from Calva says start-up with the versions. I am using MacOs 12.1 and VS Code Version: 1.63.2, Calva 2.0.234
The text was updated successfully, but these errors were encountered: