Open
Description
Description
Ruby LSP Information
VS Code Version
1.98.1
Ruby LSP Extension Version
0.9.7
Ruby LSP Server Version
0.23.11
Ruby LSP Add-ons
- Ruby LSP Rails
- RuboCop
Ruby Version
3.1.4
Ruby Version Manager
rbenv
Installed Extensions
Click to expand
- code-spell-checker (4.0.40)
- code-spell-checker-russian (2.2.2)
- code-spell-checker-ukrainian (1.2.4)
- copilot (1.282.0)
- copilot-chat (0.25.0)
- gitlens (16.3.2)
- rainbow-csv (3.18.0)
- ruby-extensions-pack (0.1.13)
- ruby-lsp (0.9.7)
- sorbet-vscode-extension (0.3.40)
- sqltools (0.28.4)
- sqltools-driver-pg (0.5.5)
- test-adapter-converter (0.2.1)
- todo-tree (0.0.226)
- vscode-rdbg (0.2.2)
- vscode-ruby-test-adapter (0.9.2)
- vscode-tailwindcss (0.14.8)
- vscode-test-explorer (2.22.1)
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": "rbenv"
},
"customRubyCommand": "",
"formatter": "rubocop",
"linters": null,
"bundleGemfile": "",
"testTimeout": 30,
"branch": "",
"pullDiagnosticsOn": "save",
"useBundlerCompose": false,
"bypassTypechecker": false,
"rubyExecutablePath": "/home/merof/.rbenv/shims/ruby",
"indexing": {},
"erbSupport": true,
"featureFlags": {
"all": true
},
"sigOpacityLevel": "1"
}
WSL2 Ubuntu 22.04.5 LTS
Reproduction steps
Not exactly sure.
1.have .ruby-verions in project
It gets stuck on the very first log entry,
2025-03-11 15:12:38.189 [info] (p977) Running command: `/home/merof/Work/Programming/Ruby/p977/.ruby-version -EUTF-8:UTF-8 '/home/merof/.vscode-server/extensions/shopify.ruby-lsp-0.9.7/activation.rb'` in /home/merof/Work/Programming/Ruby/p977 using shell: /bin/bash
trying to use .ruby-verions with rbenv and just hangs there.
If one is to run the command, it will return
>/home/merof/Work/Programming/Ruby/p977/.ruby-version -EUTF-8:UTF-8 '/home/merof/.vscode-server/extensions/shopify.ruby-lsp-0.9.7/activation.rb'
bash: /home/merof/Work/Programming/Ruby/p977/.ruby-version: Permission denied
> sudo /home/merof/Work/Programming/Ruby/p977/.ruby-version -EUTF-8:UTF-8 '/home/merof/.vscode-server/extensions/shopify.ruby-lsp-0.9.7/activation.rb'
sudo: /home/merof/Work/Programming/Ruby/p977/.ruby-version: command not found
the .ruby-version is at /home/merof/Work/Programming/Ruby/p977/.ruby-version
Changing it to auto, didn't help, had to manually set:
"rubyLsp.rubyExecutablePath": "/home/merof/.rbenv/shims/ruby"