-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
I am using "mise" to manage my ruby versions and have it configured in Zed as:
"lsp": {
"ruby-lsp": {
"settings": {
"use_bundler": true
}
}
}some projects don't have ruby-lsp listed in their gems, and I don't have it in my PATH, so assuming I understand the activation sequence correctly (https://zed.dev/docs/languages/ruby#language-server-activation ) it should try to install it.
My expectation is that it would use the current project environment which would result in installing it in ~/.local/share/mise/installs/ruby/4.0.1. Instead it appears to be running the version from ~/.local/share/mise/installs/ruby/3.3.0 which then results in a conflict with bundler versions:
/Users/andre.martins/.local/share/mise/installs/ruby/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/resolver/installer_set.rb:263:in `ensure_required_rubygems_version_met': bundler-4.0.3 requires RubyGems version >= 3.4.1. The current RubyGems version is 3.3.26. Try 'gem update --system' to update RubyGems itself. (Gem::RuntimeRequirementNotMetError)
from /Users/andre.martins/.local/share/mise/installs/ruby/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/resolver/installer_set.rb:92:in `add_always_install'
from /Users/andre.martins/.local/share/mise/installs/ruby/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/dependency_installer.rb:322:in `resolve_dependencies'
from /Users/andre.martins/.local/share/mise/installs/ruby/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems/dependency_installer.rb:228:in `install'
from /Users/andre.martins/.local/share/mise/installs/ruby/3.3.0/lib/ruby/site_ruby/3.3.0/rubygems.rb:552:in `install'
from /Users/andre.martins/Library/Application Support/Zed/extensions/work/ruby/gems/bc35a32d072fb09e/gems/ruby-lsp-0.26.8/lib/ruby_lsp/setup_bundler.rb:451:in `install_bundler_if_needed'
from /Users/andre.martins/Library/Application Support/Zed/extensions/work/ruby/gems/bc35a32d072fb09e/gems/ruby-lsp-0.26.8/lib/ruby_lsp/setup_bundler.rb:241:in `run_bundle_install'
from /Users/andre.martins/Library/Application Support/Zed/extensions/work/ruby/gems/bc35a32d072fb09e/gems/ruby-lsp-0.26.8/lib/ruby_lsp/setup_bundler.rb:134:in `setup!'
from /Users/andre.martins/Library/Application Support/Zed/extensions/work/ruby/gems/bc35a32d072fb09e/gems/ruby-lsp-0.26.8/exe/ruby-lsp:80:in `<top (required)>'
from /Users/andre.martins/Library/Application Support/Zed/extensions/work/ruby/gems/bc35a32d072fb09e/bin/ruby-lsp:25:in `load'
from /Users/andre.martins/Library/Application Support/Zed/extensions/work/ruby/gems/bc35a32d072fb09e/bin/ruby-lsp:25:in `<main>'
Is this a bug, or are my expectations incorrect?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels