-
-
Notifications
You must be signed in to change notification settings - Fork 7
VSCode does not pick up stree
#341
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
Comments
Same here |
This is a little outside my control unfortunately, so it's mostly dependent on how you set up your system. If it's within a project, clearly it's picking it up correctly. If it's not within a project, then it's going to be dependent on how |
For any passers-by, I found a solution for this. Set up the Ruby LSP extension for VS Code, and then configure it to use the Ruby version manager of your choice. Once that is done, you will still see the same warnings as in the OP, but the Restart button works, it will load |
Hi, I'm trying to set up our project to use
syntax_tree
for Ruby code formatting, and I'm having some trouble getting the VSCode extension to consistently pick up thestree
executable. If I launch VSCode using the CLI tool (eg.code .
) or using the.code-workspace
file in our project it all works correctly.However, if I just launch VSCode directly from the OS (macOS Ventura in this case), I get the following error messages and code formatting does not work.
syntax_tree
is installed in the bundle for the application and also globally. I useasdf
for managing Ruby versions on my machine.If I click on the "Install Gem" button I get an error about permissions:
This suggests that it's trying to install the gem for the system Ruby version rather than the version of Ruby selected by
asdf
.The text was updated successfully, but these errors were encountered: