Skip to content

Conversation

vitallium
Copy link
Collaborator

@vitallium vitallium commented Aug 23, 2025

On Linux, for some reason, it's not enough to set the GEM_HOME environment variable to isolate the extensions gemset:

  - GEM PATHS:
     -
/home/vslobodin/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0
     - /home/vslobodin/.local/share/zed/extensions/work/ruby

The above snippet is the result of running mise and gem env. The user installed gemset is taken into account, which breaks the installation of extension gems. Setting the GEM_PATH env variable seems to fix the issue.

On Linux, for some reason, it's not enough
to set `GEM_HOME` env variable to isolate the
extension gemset:

```
  - GEM PATHS:
     -
/home/vslobodin/.local/share/mise/installs/ruby/3.4.5/lib/ruby/gems/3.4.0
     - /home/vslobodin/.local/share/zed/extensions/work/ruby
```

The above snippet is the result from running `mise` and `gem env`.
User installed gemset is taken into account
which breaks installation of extension gems.
Setting the `GEM_PATH` env var seems to fix that issue.
@vitallium vitallium merged commit 630cc4e into main Aug 23, 2025
4 checks passed
@vitallium vitallium deleted the vs/linux-gem-path branch August 23, 2025 08:15
vitallium added a commit that referenced this pull request Aug 24, 2025
## v0.13.1

### Bug Fixes

- *(deps)* Update rust crate serde_json to v1.0.141 (#151)
- *(deps)* Update rust crate serde_json to v1.0.143 (#155)
- *(ruby)* Resolve precedence issue with import keyword detection (#163)
- *(gemset)* Pass `GEM_PATH` env variable to commands (#164)
- *(rdbg)* Ensure we always have current dir (#165)

### Styling

- Allow conventional commits that start with a lowercase letter

### Testing

- Add tests for `root_path` and `shell_env` (#159)

### Miscellaneous Tasks

- Enable semantic commits for renovate
- *(deps)* Update pnpm to v10.14.0 (#156)
- *(deps)* Update pnpm to v10.15.0 (#161)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant