Skip to content

Instantly share code, notes, and snippets.

@atton
Last active March 29, 2020 02:45
Show Gist options
  • Save atton/9ac15fafb66fc0cc9971784f0afc9bc8 to your computer and use it in GitHub Desktop.
Save atton/9ac15fafb66fc0cc9971784f0afc9bc8 to your computer and use it in GitHub Desktop.
Error loading /root/.config/pry/pryrc: undefined method `file=' for #<Pry::History:0x00005624d9ce6298>
Did you mean? filter
/root/.config/pry/pryrc:1:in `__pry__'
@history_path = File.expand_path('path/to/history')
if Pry.config.respond_to?(:history_file=)
Pry.config.history_file = @history_path.clone
else
Pry.config.history.file = @history_path.clone
end
remove_instance_variable(:@history_path)
Pry.config.history.file = File.expand_path('path/to/history')
<main>:1: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
/usr/local/bundle/gems/pry-0.12.2/lib/pry/commands/whereami.rb:40: warning: in `eval'
<main>:1: warning: __LINE__ in eval may not return location in binding; use Binding#source_location instead
/usr/local/bundle/gems/pry-0.12.2/lib/pry/commands/whereami.rb:41: warning: in `eval'
<main>:1: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
/usr/local/bundle/gems/pry-0.12.2/lib/pry/method/weird_method_locator.rb:88: warning: in `eval'
<main>:1: warning: __FILE__ in eval may not return location in binding; use Binding#source_location instead
/usr/local/bundle/gems/pry-0.12.2/lib/pry/method/weird_method_locator.rb:80: warning: in `eval'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment