-
Notifications
You must be signed in to change notification settings - Fork 182
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
Add a documentation section explaining the custom bundle #1717
Comments
I think the problem here is that the name of the setting, By just reading the name of the property, I assumed I had to set it to the path of my ruby executable (in my case is Then when I
I tried to pass the directory instead Eventually, when I read the full description, I understood that I had to pass a command that makes It would be nice if:
|
I am currently in the "confused realm". I am trying to use |
@cmolina thank you for the report. I should mention that this issue is to document the custom bundle, not the custom activation command, which are different things. Regarding your points
What do you mean by setting up Ruby? Simply pointing to a Ruby installation is often not enough and might not work on every setup. Version managers activate multiple environment variables, so that the NodeJS process knows where to look for Ruby, Bundler and where gems are installed. For example: # Asking for where gems are installed using Ruby 2.7.6
/opt/rubies/2.7.6/bin/ruby -rbundler -e "puts Bundler.bundle_path"
# If a version manager previously activated environment variables such as `GEM_HOME`, then
# this actually prints
~/.gem/ruby/3.2.2
# If nothing was activated by any version manager, then this may print the system Ruby
/Library/Ruby/Gems/2.6.0
# And both paths are incorrect Without adequate activation of gem paths, launching the server won't work. And you are using an environment manager, it's
Yeah, the name may not be the clearest indeed. The |
The custom bundle is sometimes a source of confusion. Users don't always realize why it's necessary or how it is supposed to work.
The fact that we hide the
.ruby-lsp
directory automatically in VS Code, makes it even more obscure if something is not working right.Let's add a new README section explaining what the custom bundle is and how it works. And let's mention that the extension automatically hides the directory.
The text was updated successfully, but these errors were encountered: