-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Describe the problem as clearly as you can
bundle console was undeprecated in #8218. Unfortunatly, in Ruby 3.4 requiring irb raises a warning when it is not part of the lockfile.
It also seems to double-load some parts of rdoc, causing in a bunch of redefined constants.
Did you try upgrading rubygems & bundler?
Yes
Post steps to reproduce the problem
On Ruby 3.4:
bundle initbundle console
What were you expecting to happen?
No deprecation warnings
What actually happened?
$ bundle console
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/bundler-2.6.2/lib/bundler/cli/console.rb:20: warning: irb was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add irb to your Gemfile or gemspec to silence this warning.
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/irb/input-method.rb:278: warning: rdoc was loaded from the standard library, but will no longer be part of the default gems starting from Ruby 3.5.0.
You can add rdoc to your Gemfile or gemspec to silence this warning.
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/rdoc/version.rb:8: warning: already initialized constant RDoc::VERSION
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/rdoc-6.10.0/lib/rdoc/version.rb:8: warning: previous definition of VERSION was here
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/rdoc.rb:68: warning: already initialized constant RDoc::VISIBILITIES
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/rdoc-6.10.0/lib/rdoc.rb:68: warning: previous definition of VISIBILITIES was here
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/rdoc.rb:74: warning: already initialized constant RDoc::DOT_DOC_FILENAME
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/rdoc-6.10.0/lib/rdoc.rb:74: warning: previous definition of DOT_DOC_FILENAME was here
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/rdoc.rb:79: warning: already initialized constant RDoc::GENERAL_MODIFIERS
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/rdoc-6.10.0/lib/rdoc.rb:79: warning: previous definition of GENERAL_MODIFIERS was here
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/rdoc.rb:84: warning: already initialized constant RDoc::CLASS_MODIFIERS
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/rdoc-6.10.0/lib/rdoc.rb:84: warning: previous definition of CLASS_MODIFIERS was here
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/rdoc.rb:89: warning: already initialized constant RDoc::ATTR_MODIFIERS
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/rdoc-6.10.0/lib/rdoc.rb:89: warning: previous definition of ATTR_MODIFIERS was here
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/rdoc.rb:94: warning: already initialized constant RDoc::CONSTANT_MODIFIERS
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/rdoc-6.10.0/lib/rdoc.rb:94: warning: previous definition of CONSTANT_MODIFIERS was here
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/3.4.0/rdoc.rb:99: warning: already initialized constant RDoc::METHOD_MODIFIERS
/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0/gems/rdoc-6.10.0/lib/rdoc.rb:99: warning: previous definition of METHOD_MODIFIERS was here
Environment
Details
## Environment
Bundler 2.6.2
Platforms ruby, x86_64-linux
Ruby 3.4.1p0 (2024-12-25 revision 48d4efcb85000e1ebae42004e963b5d0cedddcf2) [x86_64-linux]
Full Path /home/earlopain/.rbenv/versions/3.4.1/bin/ruby
Config Dir /home/earlopain/.rbenv/versions/3.4.1/etc
RubyGems 3.6.2
Gem Home /home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0
Gem Path /home/earlopain/.gem/ruby/3.4.0:/home/earlopain/.rbenv/versions/3.4.1/lib/ruby/gems/3.4.0
User Home /home/earlopain
User Path /home/earlopain/.gem/ruby/3.4.0
Bin Dir /home/earlopain/.rbenv/versions/3.4.1/bin
Tools
Git 2.47.1
RVM not installed
rbenv rbenv 1.3.0
chruby not installed
## Bundler Build Metadata
Built At 2024-12-23
Git SHA 90ebd47
Released Version true
## Bundler settings
gem.changelog
Set for the current user (/home/earlopain/.bundle/config): false
gem.ci
Set for the current user (/home/earlopain/.bundle/config): "github"
gem.coc
Set for the current user (/home/earlopain/.bundle/config): false
gem.linter
Set for the current user (/home/earlopain/.bundle/config): "rubocop"
gem.mit
Set for the current user (/home/earlopain/.bundle/config): true
gem.test
Set for the current user (/home/earlopain/.bundle/config): "rspec"
## Gemfile
### Gemfile
```ruby
# frozen_string_literal: true
source "https://rubygems.org"
# gem "rails"
Gemfile.lock
GEM
remote: https://rubygems.org/
specs:
PLATFORMS
ruby
x86_64-linux
DEPENDENCIES
BUNDLED WITH
2.6.2
</p>
</details>