-
Notifications
You must be signed in to change notification settings - Fork 172
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
MacOS system Ruby version (2.6) being used and prevents the extension from working #2921
Comments
Was Mise installed via Homebrew? #2878 |
Yes it was, I will try your suggestion |
Let's centralize the discussion in that other issue. |
@andyw8 Looks like Mise is detected fine if I use {
"rubyLsp.rubyVersionManager": {
"identifier": "custom"
},
"rubyLsp.customRubyCommand": "/opt/homebrew/bin/mise"
} And even auto-detection with {
"rubyLsp.rubyVersionManager": {
"identifier": "mise"
}
} But in both instances, actually running the LSP fails with the error
which probably refers to |
We currently only support the default installation path for Mise advertise on their documentation, which is To workaround that issue for now you need to point to your Mise installation through the settings. Do not use custom. {
"rubyLsp.rubyVersionManager": {
"identifier": "mise",
"miseExecutablePath": "/opt/homebrew/bin/mise" // I think this is the path, but double check
}
} |
Yes, but we call If you check your |
That's it, no other output. |
I'm going to re-open this issue. You are surely impacted by #2878, but it seems there's something else happening here, which is quite odd. If you take these steps
/Users/pawel/.local/share/mise/installs/ruby/3.2.5/bin/ruby -W0 -rjson -e 'STDERR.print("RUBY_LSP_ACTIVATION_SEPARATOR" + { env: ENV.to_h, yjit: !!defined?(RubyVM::YJIT), version: RUBY_VERSION, gemPath: Gem.path }.to_json + "RUBY_LSP_ACTIVATION_SEPARATOR")'
My suspicion is that something is failing during activation and, even though we find the correct Ruby version to run the activation script, the exported environment has the wrong |
Description
Ruby LSP Information
Ruby LSP Information
VS Code Version
1.95.3
Ruby LSP Extension Version
0.8.14
Ruby LSP Server Version
0.21.3
Ruby LSP Addons
Ruby Version
3.2.5
Ruby Version Manager
mise
Installed Extensions
Click to expand
Ruby LSP Settings
Click to expand
Workspace
User
Reproduction steps
code .
from your terminalBasically it looks like
asyncExec
invscode/src/workspace.ts:271
uses the MacOS built-in 2.6 Ruby version by default to rungem list
. But when I run VSC from my terminal, it correctly loads the 3.2.5 Ruby version from Mise.The text was updated successfully, but these errors were encountered: