'Kernel#require': cannot load such file -- bundler (LoadError)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Ruby
- Star
- 2k
- Fork
- 284
- Merge trung bình
- 11 giờ 11 phút
- Pull request đã merge (30 ngày)
- 10
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Shopify/ruby-lsp
-
Multi-line `<%# %>` ERB comments are parsed as Ruby, so semantic highlighting colors the prose as method callsCó thể đã có người làm @Pybsama đã nhận 71 ngày trước. Đang mởbug Stale
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Shopify/ruby-lsp#4181 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Linux file system with square brackets in the directory/filename are failing to be indexedCó thể đã có người làm @andriytyurnikov đã nhận 203 ngày trước. Đang mởbug help-wanted pinned
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Shopify/ruby-lsp#3503 · 8 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Rename of a class moves its file and leaves require_relative on the old pathCó thể đã có người làm @efegokdemir đã nhận hôm nay. Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 22/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Paths need to be escapedCó thể đã có người làm @Vraiment đã nhận 4 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
Maintainer thường phản hồi trong vòng 1 ngày
-
check-labels intermittently fails due to the organization IP allow listCó thể đã có người làm @soutaro đã nhận 7 ngày trước. Đang mở
Shopify/ruby-lsp#4219 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Shopify/ruby-lsp
Issue tương tự
-
ActionText::Content#to_markdown: <br> in a table cell and empty <tr> produce malformed Markdown tablesCó thể đã có người làm @azmi2409 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
kotlin-lsp is missingĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
JetBrains/homebrew-utils#21 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
ublue-os/homebrew-experimental-tap#774 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
r-uby-dev/llm#251 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
accessibility
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
slovensko-digital/ops-portal#212 ·
Maintainer thường phản hồi trong vòng 1 ngày