-
Notifications
You must be signed in to change notification settings - Fork 171
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
Failed to activate Ruby environment: spawn /bin/sh ENOENT #1887
Comments
I also got the same issue. After I install an older version (0.2.2), and then reinstall the newest one, the issue has gone. |
@thuandohoang What do you mean by version 0.2.2? Afaik the most recent version of the ruby-lsp extension is |
I also tried the |
@CermakM I mean downgrade version of the extension. You can see the steps here |
@thuandohoang That's interesting! I downgraded it to 0.2.2 and it indeed works! However, when I upgrade it back, I get a different issue when starting Ruby LSP 😆 🤷
|
haha, i have no idea with this issue 😄 |
Same with me.. suddenly it stopped working after the latest update of the extension in VSC. Getting:
|
On your settings.json on VScode. This was updated from string to object. // Previous
"rubyLsp.rubyVersionManager": "asdf"
// New
"rubyLsp.rubyVersionManager": { "identifier": "auto" } |
If I just delete this line, it works again! |
Closing this for now. If the issue is still occurring in v0.7.1, please let us know. |
Description
Hi!
I am new to ruby and I am trying to run ruby-lsp in VSCode. However, I am unable to do that, ending up with the following error:
I am pretty sure my SHELL env is set to
/bin/zsh
. I tried checking the codebase and executingthe
SHELL
is set correctly.I have
.ruby-version
file in the repo containing3.3.0
.When running
ruby-lsp
in the terminal, I am not sure if the output is correct:Even when waiting for quite some time, this is the only output I get.
BIG thanks for any help! ❤️
Reproduction steps
The only thing I did is installing rbenv and installing the ruby-lsp VScode extension.
I am running the latest version of VScode on MacOS M3. Tried to switch even to the pre-release version of the extension but the issue stays the same.
Code snippet or error message
The text was updated successfully, but these errors were encountered: