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

bundler-cache feature breaks ruby-lsp and other default gem behavior

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ruby

調査の方向性

Reproduce the issue by running rails and ruby-lsp with and without the bundler-cache feature in the described Ruby 3.3.5 devcontainer environment. Inspect how the bundler-cache feature configures gem paths and command availability; done means both commands run successfully while bundler-cache remains enabled.

索引モデルが issue の本文から書いたものです。

説明

Love the boot time saves provided by bundler-cache but it breaks most default external gem behavior.

rails and other gems are not available on the command line after enabling bundler-cache as a feature

this prevents ruby-lsp and other common IDE add-ons from running correctly.

without bundler-cache feature:

vscode ➜ /workspaces/myapp (ad6c9fe7) $ rails
Beginning in Rails 4.....

vscode ➜ /workspaces/myapp (ad6c9fe7) $ ruby-lsp
server starts and everything works

with bundler-cache feature:

vscode ➜ /workspaces/myapp (ad6c9fe7) $ rails
bash: rails: command not found

vscode ➜ /workspaces/myapp (ad6c9fe7) $ ruby-lsp
Ruby LSP> Skipping custom bundle setup since /workspaces/myapp/.ruby-lsp/Gemfile.lock already exists and is up to date
Ruby LSP> Running bundle install for the custom bundle. This may take a while...
Ruby LSP> Command: (bundle check || bundle install) 1>&2
The Gemfile's dependencies are satisfied
bundler: failed to load command: ruby-lsp (/bundle/vendor/ruby/3.3.0/bin/ruby-lsp)
/bundle/vendor/ruby/3.3.0/gems/bundler-2.4.10/lib/bundler/rubygems_integration.rb:308:in `block in replace_bin_path': can't find executable ruby-lsp for gem ruby-lsp. ruby-lsp is not currently included in the bundle, perhaps you meant to add it to your Gemfile?

I'm not enough of a smarty to know the right fix for this. I'm assuming a modification of the gem paths needs to be done but I'm unsure of the best way to implement that change within this feature bundle.

Would love if anyone has and ideas or pointers on the right direction of a fix. Thank you all <3

environment: unchanged Dockerfile for ruby 3.3.5, activestorage, postgres-client, github-cli & node devcontainer features

主要言語
Ruby
スター
107
フォーク
38
平均マージ
7分
マージ済み PR(30日)
2

環境構築

Codespaces で開く

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

はじめの一歩

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

rails/devcontainer のほかの issue

rails/devcontainer の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

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

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