Closed owst closed 3 years ago
I think I have the same issue. Well, I'm trying to use the gem 'spirit_hands', the installation is ok, but when I run 'rails console' this happens...
../.rbenv/versions/2.6.5/lib/ruby/gems/2.6.0/gems/pry-coolline-0.2.5/lib/pry-coolline/wrapper.rb:35:in
block in make_coolline': undefined method file' for #<Pry::History:0x00007f59bc6dbc40> Did you mean? filter (NoMethodError)
And I still don't understand why
I'm seeing the same issue in an unrelated project. Do we know why this breaking change is not mentioned in the pry changelog?
I find @owst fix to be the correct approach since there's no way around the API change for the file history in the config (while keeping it backwards compatible).
@SamZapata I used his fork on Gemfile before any gems that might require it (such as spirit_hands
):
gem 'pry-coolline', github: 'owst/pry-coolline', branch: 'support_new_pry_config_api'
Thanks @owst ! 😄
Attempting to use
pry-coolline
withpry 0.13.1
gives:undefined method 'file' for #<Pry::History:0x00007fc0d148a578> (NoMethodError)
Reproduction
Save the following in
foo.rb
:Running
ruby foo.rb
gives: