NoMethodError in pry-stack_explorer when using rails console

I use pry for rails console.

Whenever I evaluate some value in the console, it NoMethodErroroccurs in bindings_equal?, this is the pry-stack_explorergem method . Entrance and exit are as follows.

This is not harmful, but unpleasant. I want to delete it.

Can anyone help?

> bundle exec rails console

Loading development environment (Rails 4.1.5)

Frame number: 0/21
[1] pry(main)> 
[2] pry(main)> 
[3] pry(main)> 1
when_started hook failed: NoMethodError: private method `eval' called for nil:NilClass
{My Bundle Directory}/ruby/2.1.0/gems/pry-stack_explorer-0.4.9.1/lib/pry-stack_explorer.rb:109:in `bindings_equal?'
(see _pry_.hooks.errors to debug)
=> 1
[4] pry(main)> 

I use these pry gemstones:

gem 'pry-rails'
gem 'pry-remote'
gem 'pry-byebug'

Thank.

+4
source share
2 answers

I do not use the same gems as you, but I encountered the same error.

I ran a problem in a github project

+2
source

I had to add

require 'awesome_print'
AwesomePrint.pry!

~/.pryrc ( AwesomePrint docs), .

Pry.config.print ~/.pryrc, ~/.pryrc, , , , awesome_print pry .

+2

All Articles