rack-console icon indicating copy to clipboard operation
rack-console copied to clipboard

irb error: cannot load such file -- pry

Open vol1ura opened this issue 9 months ago • 0 comments

In production environment I have no pry and in case of any exception I get also LoadError from rack console:

irb(main):001:0> raise
<internal:/usr/local/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require': cannot load such file -- pry (LoadError)
Did you mean?  pty                                            
        from <internal:/usr/local/rbenv/versions/3.2.2/lib/ruby/3.2.0/rubygems/core_ext/kernel_require.rb>:37:in `require'
        from /home/demo/myapp/shared/bundle/ruby/3.2.0/gems/rack-console-1.3.1/lib/rack/console.rb:33:in `start'

This error appeared after updating to Ruby 3.2.2. On Ruby 2.7 all was ok. This is most likely due to the irb update in new ruby.

vol1ura avatar May 24 '24 08:05 vol1ura