-
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
System ruby fails to start LSP #3002
Comments
Thank you for the bug report!
Can you point to where we say that? If we say it like that, then it's a mistake. You don't have to add Regarding the issue you're experiencing, I suspect it's related to the fact that you are not using a version manager and the VS Code NodeJS process likely doesn't know about the Ruby you installed manually. How did you install Ruby? And how do you add the Ruby installation to your |
https://shopify.github.io/ruby-lsp/editors.html
I might have interpreted this sentence incorrectly. I was trying to use the system installed Ruby, which is under |
Do you need sudo to install gems with that system Ruby? If so, the Ruby LSP will unfortunately not work as the process doesn't run with sudo permissions and we need to be able to install gems. We do offer options to point to a specific Ruby executable, but it will only work if sudo is not required. |
I need sudo to install ruby-lsp. |
We have some instructions on how to configure RubyGems and Bundler to install gems in specific places and to use user-install to avoid permission issues. Do those options work for you? |
Description
Note that the FAQ specifically says that vscode doesn't need a local gem installation of ruby-lsp.
Ruby LSP Information
VS Code Version
1.96.2
Ruby LSP Extension Version
0.8.16
Ruby LSP Server Version
Unknown
Ruby LSP Addons
Ruby Version
3.2.5
Ruby Version Manager
none
Installed Extensions
Click to expand
Ruby LSP Settings
Click to expand
Workspace
User
Reproduction steps
Gemfile
bundle install
Ruby LSP client: couldn't create connection to server.
Example Gemfile:
Code snippet or error message
The text was updated successfully, but these errors were encountered: