ruby-lsp: Hanging on "running 'Ruby LSP' formatter"
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 LSP Rails
- RuboCop
Ruby Version
3.2.6
Ruby Version Manager
rbenv
Installed Extensions
Click to expand
- LiveServer (5.7.9)
- atom-keybindings (3.3.0)
- coffeesense (1.15.0)
- copilot (1.260.0)
- copilot-chat (0.23.2)
- cucumberautocomplete (3.0.5)
- errorlens (3.22.1)
- even-better-toml (0.21.2)
- gitlens (16.2.1)
- incrementor (1.0.3)
- material-icon-theme (5.19.0)
- multi-cursor-case-preserve (1.0.5)
- rails (0.22.0)
- rainbow-csv (3.15.1)
- regex (0.5.1)
- remote-containers (0.394.0)
- ruby-extensions-pack (0.1.12)
- ruby-lsp (0.8.19)
- sorbet-vscode-extension (0.3.37)
- stimulus-lsp (1.0.4)
- string-converter (0.1.2)
- template-string-converter (0.6.1)
- visible-whitespace (0.0.6)
- vscode-docker (1.29.4)
- vscode-eslint (3.0.10)
- vscode-github-actions (0.27.0)
- vscode-import-cost (3.3.0)
- vscode-mdx (1.8.13)
- vscode-open-in-github (1.18.0)
- vscode-rdbg (0.2.2)
- vscode-stylelint (1.4.0)
- vscode-todo-plus (4.19.1)
- vsliveshare (1.0.5948)
Ruby LSP Settings
Click to expand
Workspace
{}
User
{
"enabledFeatures": {
"codeActions": true,
"diagnostics": true,
"documentHighlights": true,
"documentLink": true,
"documentSymbols": true,
"foldingRanges": true,
"formatting": true,
"hover": true,
"inlayHint": true,
"onTypeFormatting": true,
"selectionRanges": true,
"semanticHighlighting": true,
"completion": true,
"codeLens": true,
"definition": true,
"workspaceSymbol": true,
"signatureHelp": true,
"typeHierarchy": true
},
"featuresConfiguration": {},
"addonSettings": {},
"rubyVersionManager": {
"identifier": "auto"
},
"customRubyCommand": "",
"formatter": "auto",
"linters": null,
"bundleGemfile": "",
"testTimeout": 30,
"branch": "",
"pullDiagnosticsOn": "both",
"useBundlerCompose": false,
"bypassTypechecker": false,
"rubyExecutablePath": "",
"indexing": {},
"erbSupport": true,
"featureFlags": {}
}
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.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 12
- Comments: 38 (12 by maintainers)
Is everyone who is having this issue using this Rails extension? VS Code extensions share the same extension host, so if any of them are using 100% CPU, all others will hang. There isn’t anything we can do from our end, this has to be fixed in the Rails extension.
If this happens to someone without that extension installed, then hopefully the profile steps I mentioned can shed some light into where we’re getting stuck.
In vscode: ctrl-shift-p, then type “Ruby LSP: Diagnose language server state” (autocompletes)