'Kernel#require': cannot load such file -- bundler (LoadError)
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
Reproduce the failure using LazyVim, Mason, mise, and Ruby 3.4, then inspect ruby_lsp/setup_bundler.rb and the ruby-lsp executable at the stack-trace locations. Compare the Ruby and gem environments used by ruby-lsp with those selected by mise. Done means the reported setup starts Ruby LSP without the bundler LoadError, with the cause and verification recorded.
由索引模型根据 Issue 内容生成。
描述
Description
Ruby LSP Information
I am running LazyVim (A supercharged Neovim config) using the default Ruby language extra. I also use mise as my version manager. When you install Ruby with mise it automatically sets up both the gem and bundler executables. I'm running on the latest Arch Linux as of Friday September 25th 2026 at 3pm.
Reproduction steps
- Start the Ruby LSP using a certain editor
- Open a Ruby file
- Get an error from the Neovim LSP client.
- Check the log and I get the below error (It also does this if I just invoke
ruby-lspfrom where Mason installs it.
Code snippet or error message
<internal:/usr/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require': cannot load such file -- bundler (LoadError)
Did you mean? bundled_gems
from <internal:/usr/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from /home/gvqz/.local/share/nvim/mason/packages/ruby-lsp/gems/ruby-lsp-0.26.11/lib/ruby_lsp/setup_bundler.rb:4:in '<top (required)>'
from /home/gvqz/.local/share/nvim/mason/packages/ruby-lsp/gems/ruby-lsp-0.26.11/exe/ruby-lsp:69:in 'Kernel#require_relative'
from /home/gvqz/.local/share/nvim/mason/packages/ruby-lsp/gems/ruby-lsp-0.26.11/exe/ruby-lsp:69:in '<top (required)>'
from /home/gvqz/.local/share/nvim/mason/packages/ruby-lsp/bin/ruby-lsp:25:in 'Kernel#load'
from /home/gvqz/.local/share/nvim/mason/packages/ruby-lsp/bin/ruby-lsp:25:in '<main>'
It seems like it is defaulting to the system ruby version that gets used by my systems package manager, and not the mise version manager.
I am also very new to Ruby, but not coding. So I have a feeling there is some weird environment mismatch, I'd love to be pointed in the right direction.
- 主要语言
- Ruby
- 星标
- 2k
- 派生
- 284
- 平均合并
- 11 小时 11 分钟
- 30 天内合并 PR
- 10
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Shopify/ruby-lsp 的其他 Issue
-
Multi-line `<%# %>` ERB comments are parsed as Ruby, so semantic highlighting colors the prose as method calls可能已有人在做 @Pybsama 于 71 天前认领。 未关闭bug Stale
难度 2/5 1-3 小时 新手友好度 76/100
Shopify/ruby-lsp#4181 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
Linux file system with square brackets in the directory/filename are failing to be indexed可能已有人在做 @andriytyurnikov 于 203 天前认领。 未关闭bug help-wanted pinned
难度 2/5 1-3 小时 新手友好度 68/100
Shopify/ruby-lsp#3503 · 8 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
Rename of a class moves its file and leaves require_relative on the old path可能已有人在做 @efegokdemir 于 1 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 22/100
维护者通常 1 天内回复
-
Paths need to be escaped可能已有人在做 @Vraiment 于 4 天前认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 25/100
维护者通常 1 天内回复
-
check-labels intermittently fails due to the organization IP allow list可能已有人在做 @soutaro 于 7 天前认领。 未关闭
Shopify/ruby-lsp#4219 · 已指派 1 人 ·
维护者通常 1 天内回复
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 72/100
Homebrew/homebrew-cask#293134 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
notch8/iiif_print#430 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
维护者通常 1 天内回复
-
ActionText::Content#to_markdown: <br> in a table cell and empty <tr> produce malformed Markdown tables可能已有人在做 @azmi2409 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 2 天内回复