Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

'Kernel#require': cannot load such file -- bundler (LoadError)

Đang mở
#4,215 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Công nghệ
ruby
Lĩnh vực
devtools

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ả

bug
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
  1. Start the Ruby LSP using a certain editor
  2. Open a Ruby file
  3. Get an error from the Neovim LSP client.
  4. Check the log and I get the below error (It also does this if I just invoke ruby-lsp from 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

Mở trong Codespaces

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.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Shopify/ruby-lsp

Tất cả issue của Shopify/ruby-lsp

Issue tương tự

Thêm issue về Ruby

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.