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
Solargraph gem not found #41
Comments
What OS are you using? Did you change any of the Try opening VSCode's integrated terminal and running Does your project have a Gemfile? Are you using a Ruby installation manager like rbenv or rvm? Solargraph uses your open workspace folder as its working directory, so whatever version of Ruby is configured to run in that directory needs to have the gem installed. |
|
|
Thanks. One other thing I forgot to ask, do you get any errors in the developer console? (Help -> Toggle Developer Tools) Adding solargraph to the Gemfile shouldn't be necessary, but it might fix the problem. Alternatively, you can try setting the |
And I tried to use |
The next thing I'd try is adding it to the Gemfile. If that works, it might indicate a bug. Solargraph shouldn't require it as long as the gem is in your path; it should just start without using the bundler. |
I tried that but same error |
|
That could be the problem. Solargraph will try to use your current shell or switch to Where did you go to check |
Its part of the log:
And then in the Developer Tools:
|
Okay, thanks. That shell is getting set upstream somewhere, but I might be able to fix the problem from the extension. In the meantime, you might be able to work around it by starting VSCode by running |
It's kind of weird, but my system preferences have |
Thanks for the info. Based on a cursory Google search, it looks like |
I seem to get this error too, if my workspace has a Gemfile. |
Version 0.16.0 is published. It only attempts to use an explicit login shell when no other shell is specified or the shell is |
Okay, so far so good. |
I'm also seeing this. Windows 10, Ruby 2.4.
|
Hmm.... my issue appear to be with solargraph itself.... I get the same error message from the system terminal. |
@thomthom EventMachine has an issue with Ruby 2.4 on Windows. More information and a possible workaround |
Hi
Also, I noticed that the latest gem version in 0.21, but the VS code extension shows 0.17.1 |
@bgmat The gem and extension versions are fine. (Extension 0.17.2 was released this morning, but it doesn't directly affect this issue.) What OS and Ruby version are you using? I fixed it on Windows 10 with these commands:
|
@castwide I'm using Windows 7 and ruby 2.4.2p198 (2017-09-14 revision 59899) [x64-mingw32] Installing eventmachine doesn't work for me with these params
|
@bgmat Do you have DevKit installed? The closest environment I've been able to confirm works is Windows 10 and Ruby 2.4.4. If the problem persists, I can try to troubleshoot it on a VM later. |
@castwide I don't have DevKit. Is it a must have? I installed Ruby 2.4.4-1 (RubyInstaller), then I run |
@bgmat As far as I know, DevKit is required in order to compile native dependencies. The other option would be pure Ruby versions of all the gems, which I'm not sure is possible. 2.4.4-1 is the version that worked for me on Windows 10. I'll try to troubleshoot on a Windows 7 VM when I can. |
Experienced this issue in 2.5.1 in Windows 10 as well. @castwide 's suggestion worked for me with the flags mentioned.
|
FIXED I have a similar problem wiht "Solargraph gem not found". However the root of the issue is different according to Developer Tools:
I use I also use It seems like ext is looking for solargraph using bash which is unaware of rbenv instead of zsh.
I tried setting Is there a way to force vscode-solargraph to use zsh??? Thanks |
I can confirm that starting vscode via |
As of extension version 0.19.0, issues with If anyone still has problems, please feel free to open a new issue. Possibly related: #74 |
I found the solution you should gem install solargraph If not work and get this error ERROR: Loading command: install (ArgumentError) Try to execute by administrator in CMD chcp 1252 Then try to install gem again Enjoy! |
This problem still persists in Flatpak using asdf-vm. |
In my case, i use a Macbook and Rbenv to install dependencies. Than, when i set the global version, like |
I was using the same setting as you, and installing the gem manually did the job, thanks! |
With yesterday's update, I'm getting this error:
Solargraph gem not found. Run
gem install solargraph
or update your Gemfile.I have solargraph installed as a global gem, so I don't understand why I'm having this error. When I click on
Install Now
nothing happens.The text was updated successfully, but these errors were encountered: