Open DominikAlberski opened 3 years ago
I had the same issue and after searching I found this: in your ~/.irbrc file add the following lines.. require 'awesome_print' AwesomePrint.irb!
and don't forget to do one of the following: 1- gem install awesome_print 2- add gem 'awesome_print' in the project's Gemfile as per the Installation guide
Doing what I mentioned solved this issue for me at least. I hope it does for your too.
Adding AwesomePrint.irb!
to ~/.irbrc
fixed this issue for me, although it had to be near the end of the file due to an IRB::Irb.class_eval
I had in there which relied on being executed first.
Hey all! I have the gem installed in my gemfile, and the two lines in ~/.irbrc
but im still getting this error when assigning to a variable. any advice?
I had to patch the gem locally. This fixed it https://github.com/awesome-print/awesome_print/pull/390/files I'm migrating to amazing_print later.
After adding AwesomePrint.irb! to .irbrc I got that error on every variable assignment inside rails console:
I've also added proper line to .pryrc but when switched to pry I got the same error as in #404