You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running chamber show executes PP.pp(...). The constant PP is not found. Instead the user receives an uninitialized constant error.
▶ chamber show
/Users/ttilberg/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/chamber-3.1.0/lib/chamber/commands/show.rb:22:in `call': uninitialized constant Chamber::Commands::Show::PP (NameError)
PP
^^
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/chamber-3.1.0/lib/chamber/commands/base.rb:15:in `call'
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/chamber-3.1.0/lib/chamber/binary/runner.rb:78:in `show'
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/command.rb:28:in `run'
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/invocation.rb:127:in `invoke_command'
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor.rb:538:in `dispatch'
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/thor-1.3.2/lib/thor/base.rb:584:in `start'
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/lib/ruby/gems/3.3.0/gems/chamber-3.1.0/bin/chamber:7:in `<top (required)>'
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/bin/chamber:25:in `load'
from /Users/ttilberg/.asdf/installs/ruby/3.3.5/bin/chamber:25:in `<main>'
At first I thought this may be related to recent changes to Ruby's standard lib/default gems, but I've tried running chamber show from a variety of older ruby versions across a variety of OSs. I've tested using macos with the following ruby versions:
2.7.5
3.0.6
3.1.2
3.2.4
3.3.5
and Ubuntu 24.04 with Ruby 3.0.3.
I don't think this is related to recent changes related to default gems. It is currently a default gem and hasn't moved recently from what I can tell. https://stdgems.org/pp/
Adding require 'pp' to the top of the show file fixes the constant lookup.
The text was updated successfully, but these errors were encountered:
Very odd. I use this all the time and have never run into this. But you seem to be correct here. The only reason it was removed is due to the Rubocop cop so seeing as how that cop is now marked as "unsafe", I'm happy to add it back in :) Thanks for the PR!
Running
chamber show
executesPP.pp(...)
. The constant PP is not found. Instead the user receives an uninitialized constant error.At first I thought this may be related to recent changes to Ruby's standard lib/default gems, but I've tried running
chamber show
from a variety of older ruby versions across a variety of OSs. I've tested using macos with the following ruby versions:and Ubuntu 24.04 with Ruby 3.0.3.
I don't think this is related to recent changes related to default gems. It is currently a default gem and hasn't moved recently from what I can tell. https://stdgems.org/pp/
Adding
require 'pp'
to the top of the show file fixes the constant lookup.The text was updated successfully, but these errors were encountered: