-
Notifications
You must be signed in to change notification settings - Fork 128
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
Visual Studio Code 0.7.4 appears to be unable to initialize rbenv #2202
Comments
Thank you for the bug report! We recently pushed changes to decouple Ruby environment activation from shells as much as possible because it caused headaches for a number of users. I suspect the reason for not finding If you source |
I appreciate y'alls work here. It's tough dealing with all of the different configurations out there. It looks like moving it to the Per these docs, that file is sourced very early in the initialization, and appears to work! Would y'all be open to me updating the troubleshooting guide to indicate this solution? |
Yes, definitely! We should include that in the documentation. |
I see similar issues activating |
@xeron that's a bit surprising to me since we search for the Do you want to create a separate issue for that and describe your exact setup? It seems like a different issue related only to ASDF integration. |
I think you're right, I created a new issue – #2247 |
Description
When I attempt to load a codebase with ruby LSP and the Visual Studio Code integration (at version
0.7.4
), the extension fails to load.It works when using the extension at
0.7.2
Error
VS Code error popup
Output error
Debugging
Here's the output from running the intialization command from the shell directly
Reproduction steps
Configuration
Processor: Apple M2 Max
ruby version: 3.3.0 & 3.0.3
rbenv version: 1.2.0 (installed via brew and configured per usual method)
shell: zsh
editor: VS Code 1.90.1
No vs code configuration
Project setup
Any ruby project with a Gemfile that has the ruby-lsp gem
If it helps, here's a snippet of my
.zshrc
The text was updated successfully, but these errors were encountered: