-
Notifications
You must be signed in to change notification settings - Fork 183
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
Hanging on "running 'Ruby LSP' formatter" #3108
Comments
Thank you for the report. When the formatting dialog never goes away, it means the server got stuck or crashed. This might be the problem reported in #2446, which I hope was fixed by #2976. When you say that sometimes it happens a lot and sometimes barely at all, is that across projects? If so, then it could be that some of the projects aren't on the latest Ruby LSP with the fixes. |
I'll keep an eye out for CPU usage if it hangs again. It is an issue across multiple projects, I just did a search for what versions of the gems were installed and uninstalled them all then restarted vs code. I opened up one project and after the extension had initialised I had:
I opened another project and then after extension initialised I have:
Why would opening the second project mean I have 0.23.7 installed? I haven't got it defined as a dependency and they're both on ruby 3.2.6. |
Whenever the Ruby LSP is launched, there are always two gem versions. The first one is what you have globally installed (since we invoke The version locked in We auto-upgrade both the global installations and the one locked in the composed bundle, but this happens gradually and for the second one, your dependencies may constrain the updates. We also only auto-upgrade if your bundle is already satisfied. For example, if you git pull and there's a commit upgrading a gem, we will run |
This keeps being a problem for me. I'm on VS Code Insiders. The extension info is:
|
Description
I've been having this issue on and off for some time now, some days it happens multiple times in quick succession and I have to quit VS Code (which then instantly crashes on re-open) some days it barely happens, all in the same project.
In December I completely removed my VS Code install and the Ruby LSP gem but that hasn't resolved it.
Ruby LSP Information
VS Code Version
1.96.4
Ruby LSP Extension Version
0.8.19
Ruby LSP Server Version
0.23.7
Ruby LSP Add-ons
Ruby Version
3.2.6
Ruby Version Manager
rbenv
Installed Extensions
Click to expand
Ruby LSP Settings
Click to expand
Workspace
User
Reproduction steps
No idea, like I say sometimes it happens a lot, sometimes barely at all. All I am doing is editing a Ruby file and saving it.
The text was updated successfully, but these errors were encountered: