-
Notifications
You must be signed in to change notification settings - Fork 23
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
VSCode Solargraph + RVM using wrong Ruby framework #243
Comments
I have the same issue. Using macOS 11.6.5. VSCode
Ruby setup
|
It's now working and the solution is to use " VSCode "solargraph.transport": "stdio",
"solargraph.formatting": true,
"solargraph.diagnostics": true,
"solargraph.commandPath": "/Users/alan/.rvm/wrappers/default/solargraph", |
Nice find! I'll give that a shot when I have a chance and see if that resolves my issue. I had bit the bullet and was using RubyMine in the short-term, rather than fiddle with this too much. |
Huge thanks @alanwilter! I've spend more than an hour trying to wrap my head around it... |
I have what seems like a regression of an older bug when using RVM: #63
I can see that in all terminals, windows (including VS term), ruby is properly set to 2.7.5, and solargraph is working.
I've tried:
solargraph socket
runs successfullycode .
rvm use 2.7.5 --default
before aboveI have (according to VS terminal):
0.44.3
ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [x86_64-darwin21]
/Users/phuff/.rvm/rubies/ruby-2.7.5/bin/ruby
I just get a message along the lines of (without using bundler)
Clearly it's hitting the correct solargraph executable and then immediately using the Ruby.framework 2.6 activate_bin_path. My workspace also has
.ruby-version
which is correctly set to 2.7.5.Not sure where to go from here because the linked original ticket involves making a change to a utils file in node_modules, but I don't see that anymore (also it's been more than 3 years since that ticket).
The text was updated successfully, but these errors were encountered: