Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#4,215 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
活発
技術スタック
ruby
領域
devtools

調査の方向性

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 の本文から書いたものです。

説明

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.

主要言語
Ruby
スター
2k
フォーク
284
平均マージ
11時間 11分
マージ済み PR(30日)
10

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Shopify/ruby-lsp のほかの issue

Shopify/ruby-lsp の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。