Skip to content

customRubyCommand functionality is not portable #3862

@lgarron

Description

@lgarron

Description

I'm trying to use rv with ruby-lsp: #3861

https://shopify.github.io/ruby-lsp/version-managers.html#custom-activation seems… misguided. For example, trying to do something like PATH=/path/to/ruby/bin:$PATH results in an error for me because I use fish. I'd like to configure .vscode/settings.json inside a repo to set up the correct ruby, and I don't see a way to do this without overly clever workarounds to account for different shell configurations.

Contrast this with https://github.com/rubocop/vscode-rubocop , for which I was able to specify a way to run Ruby that instantly worked:

{
  //
  "rubocop.commandPath": "./script/ruby-wrapper.ts -S rubocop",
  "rubocop.bundleCommandPath": "./script/ruby-wrapper.ts -S bundle",
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions