Skip to content

bundle version of gem not detected #152

@babelian

Description

@babelian

Hi, I've searched through all the issues here and in the main zed repo and can't see a sign of anybody having this issue.

The feature that detects bundler version of a gem doesn't seem to be working, it will always go for the rbenv shim version.

I've tried "use_bundler": true though that doesn't appear nessary from docs/rs src.

Is the shim logic in rbenv an issue? Is there a way to manually prepend bundle exec ?

Thanks

Version

Zed 0.196.6
Ruby extension: 0.12.0
Mac / rbenv

which rubocop
/Users/zach/.rbenv/shims/rubocop

bundle exec rubocop -v
1.71.2

rubocop -v
1.75.5

the Gemfile in the working dir contains rubocop inside the group :development section.

Settings

  "lsp": {
    "rubocop": {
      "binary": {
        "arguments": ["--lsp", "--ignore-parent-exclusion"]
      }
    }
  },

Logs

2025-07-24T15:47:13-04:00 INFO  [project::lsp_store] attempting to start language server "rubocop", path: "/Users/zach/Sites/public-api", id: 5
2025-07-24T15:47:14-04:00 INFO  [lsp] starting language server process. binary path: "/Users/zach/.rbenv/shims/rubocop", working directory: "/Users/zach/Sites/public-api", args: ["--lsp", "--ignore-parent-exclusion"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions