bundle exec rake setup_ai_gateway fails with "Could not find gems in locally installed gems" error
Overview
@ck3g reported that when running bundle exec rake setup_ai_gateway, it fails with the following error:
/Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler/definition.rb:683:in 'Bundler::Definition#materialize': Could not find json-2.7.2, byebug-11.1.3, prism-1.3.0, rbs-3.8.1, racc-1.8.0, psych-5.1.2, io-console-0.7.2, strscan-3.1.0, stringio-3.1.1 in locally installed gems (Bundler::GemNotFound)
from /Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler/definition.rb:237:in 'Bundler::Definition#specs'
from /Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler/definition.rb:304:in 'Bundler::Definition#specs_for'
from /Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler/runtime.rb:18:in 'Bundler::Runtime#setup'
from /Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler.rb:167:in 'Bundler.setup'
from /Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler/setup.rb:32:in 'block in <top (required)>'
from /Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler/ui/shell.rb:173:in 'Bundler::UI::Shell#with_level'
from /Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler/ui/shell.rb:119:in 'Bundler::UI::Shell#silence'
from /Users/foo/.local/share/mise/installs/ruby/3.3.7/lib/ruby/gems/3.3.0/gems/bundler-2.6.5/lib/bundler/setup.rb:32:in '<top (required)>'
from <internal:/Users/foo/.local/share/mise/installs/ruby/3.4.3/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from <internal:/Users/foo/.local/share/mise/installs/ruby/3.4.3/lib/ruby/3.4.0/rubygems/core_ext/kernel_require.rb>:136:in 'Kernel#require'
from /Users/foo/.local/share/mise/installs/ruby/3.4.3/lib/ruby/3.4.0/rubygems.rb:1417:in '<top (required)>'
from <internal:gem_prelude>:2:in 'Kernel#require'
from <internal:gem_prelude>:2:in '<internal:gem_prelude>'
Impacted categories
The following categories relate to this issue:
-
gdk-reliability - e.g. When a GDK action fails to complete. -
gdk-usability - e.g. Improvements or suggestions around how the GDK functions. -
gdk-performance - e.g. When a GDK action is slow or times out.
Steps to replicate (optional)
Proposal (optional)
Environment (optional)
- Operating system name:
<!-- output of `uname -a` command --> - Architecture:
<!-- output of `arch` or `uname -m` command --> - The contents of your
gdk.yml(if any) - Ruby version:
<!-- output of `ruby --version` command --> - GDK version:
<!-- output of `git rev-parse --short HEAD` command -->
Edited by Nao Hashizume