-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Description
Describe the problem as clearly as you can
I cannot run "bundle exec" within ruby anymore. It give as superclass mismatch for class Command (TypeError) error.
To reproduce:
touch Gemfile
ruby -e 'require "bundler/setup"; `bundle exec abc`'/Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/vendor/thor/lib/thor/command.rb:2:in '<class:Thor>': superclass mismatch for class Command (TypeError)
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/vendor/thor/lib/thor/command.rb:1:in '<top (required)>'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/vendor/thor/lib/thor/base.rb:1:in 'Kernel#require_relative'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/vendor/thor/lib/thor/base.rb:1:in '<top (required)>'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/vendor/thor/lib/thor.rb:1:in 'Kernel#require_relative'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/vendor/thor/lib/thor.rb:1:in '<top (required)>'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/vendored_thor.rb:8:in 'Kernel#require_relative'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/vendored_thor.rb:8:in '<top (required)>'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/friendly_errors.rb:3:in 'Kernel#require_relative'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/lib/bundler/friendly_errors.rb:3:in '<top (required)>'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/3.4.0/bundled_gems.rb:82:in 'Kernel.require'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/3.4.0/bundled_gems.rb:82:in 'block (2 levels) in Kernel#replace_require'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0/gems/bundler-4.0.0/exe/bundle:18:in '<top (required)>'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/site_ruby/3.4.0/rubygems.rb:303:in 'Kernel#load'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/site_ruby/3.4.0/rubygems.rb:303:in 'Gem.activate_and_load_bin_path'
from /Users/user/.local/share/mise/installs/ruby/3.4.7/bin/bundle:25:in '<main>'
Did you try upgrading rubygems & bundler?
Yes
If not included with the output of your command, run bundle env and paste the output below
Bundler 4.0.0
Platforms ruby, arm64-darwin-25
Ruby 3.4.7p58 (2025-10-08 revision 7a5688e2a27668e48f8d6ff4af5b2208b98a2f5e) [arm64-darwin-25]
Full Path /Users/user/.local/share/mise/installs/ruby/3.4.7/bin/ruby
Config Dir /Users/user/.local/share/mise/installs/ruby/3.4.7/etc
RubyGems 4.0.0
Gem Home /Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0
Gem Path /Users/user/.gem/ruby/3.4.0:/Users/user/.local/share/mise/installs/ruby/3.4.7/lib/ruby/gems/3.4.0
User Home /Users/user
User Path /Users/user/.gem/ruby/3.4.0
Bin Dir /Users/user/.local/share/mise/installs/ruby/3.4.7/bin
Tools
Git 2.52.0
RVM not installed
rbenv rbenv 1.3.2
chruby not installed
Bundler Build Metadata
Timestamp 2025-12-03
Git SHA 64d0dfe695
Bundler settings
build.mysql2
Set for your local app (/Users/user/.bundle/config): "--with-mysql-lib=/opt/homebrew/opt/mysql-client/lib --with-mysql-dir=/opt/homebrew/opt/mysql-client --with-mysql-config=/opt/homebrew/opt/mysql-client/bin/mysql_config \\ --with-mysql-include=/opt/homebrew/opt/mysql-client/include --with-ldflags=-L/opt/homebrew/opt/zlib/lib"
Set for the current user (/Users/user/.bundle/config): "--with-mysql-lib=/opt/homebrew/opt/mysql-client/lib --with-mysql-dir=/opt/homebrew/opt/mysql-client --with-mysql-config=/opt/homebrew/opt/mysql-client/bin/mysql_config \\ --with-mysql-include=/opt/homebrew/opt/mysql-client/include --with-ldflags=-L/opt/homebrew/opt/zlib/lib"
build.pg
Set for your local app (/Users/user/.bundle/config): "--with-pg-config=/opt/homebrew/opt/libpq/bin/pg_config"
Set for the current user (/Users/user/.bundle/config): "--with-pg-config=/opt/homebrew/opt/libpq/bin/pg_config"
build.sqlite3
Set for your local app (/Users/user/.bundle/config): "--with-sqlite3-lib=/opt/homebrew/opt/sqlite/lib"
Set for the current user (/Users/user/.bundle/config): "--with-sqlite3-lib=/opt/homebrew/opt/sqlite/lib"
Gemfile
Gemfile
Gemfile.lock
GEM
specs:
PLATFORMS
arm64-darwin-25
ruby
DEPENDENCIES
CHECKSUMS
BUNDLED WITH
4.0.0
rmm5t