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
Since PR #2119 removed autoloading of plugins, the method Pry.locate_plugins was also removed.
The command pry --plugins still uses this method, which causes Pry to crash.
Stacktrace:
$ pry --plugins
Installed Plugins:
--
Traceback (most recent call last):
11: from /Users/thomas/.rbenv/versions/2.7.2/bin/pry:23:in `<main>'
10: from /Users/thomas/.rbenv/versions/2.7.2/bin/pry:23:in `load'
9: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/bin/pry:12:in `<top (required)>'
8: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/cli.rb:68:in `parse_options'
7: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/slop.rb:69:in `parse!'
6: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/slop.rb:229:in `parse!'
5: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/slop.rb:229:in `each_with_index'
4: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/slop.rb:229:in `each'
3: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/slop.rb:232:in `block in parse!'
2: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/slop.rb:503:in `process_item'
1: from /Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/slop/option.rb:85:in `call'
/Users/thomas/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/pry-0.13.1/lib/pry/cli.rb:169:in `block (2 levels) in <top (required)>': undefined method `locate_plugins' for Pry:Class (NoMethodError)
The question is whether to remove the command altogether or to implement a different way of listing plugins.
(maybe looking for every require in .pryrc?)
The text was updated successfully, but these errors were encountered:
thomaswuensche
changed the title
pry --plugins causes pry to crash
pry --plugins causes Pry to crash
Jan 18, 2021
Sorry, I released a new version and forgot about this issue. I would probably remove it altogether. You can achieve the same thing with gem list pry-. No need to keep --plugins. Are you willing to contribute a PR? :)
Since PR #2119 removed autoloading of plugins, the method
Pry.locate_plugins
was also removed.The command
pry --plugins
still uses this method, which causes Pry to crash.Stacktrace:
The question is whether to remove the command altogether or to implement a different way of listing plugins.
(maybe looking for every
require
in .pryrc?)The text was updated successfully, but these errors were encountered: