awesome-print / awesome_print

Pretty print your Ruby objects with style -- in full color and with proper indentation
http://github.com/michaeldv/awesome_print
MIT License
4.08k stars 454 forks source link

Stack Error Too Deep in Rails 5.0.0.1 #269

Closed SylarRuby closed 8 years ago

SylarRuby commented 8 years ago

Was this meant to be used with Rails? In my Gemfile, in the development block, I have

gem 'awesome_print', :require => 'ap'

Now in the rails console:

BigDecimal.new("2.11") #=> stack error too deep
gerrywastaken commented 8 years ago

I haven't been able to replicate the issue you mentioned.

> bundle exec rails c
Loading development environment (Rails 4.2.5.2)
irb(main):001:0> BigDecimal.new("2.11")
=> #<BigDecimal:7f9fc85fa658,'0.211E1',18(18)>
irb(main):003:0> AwesomePrint::version
=> "1.7.0"
irb(main):004:0> exit
> grep awesome_print Gemfile
  gem 'awesome_print', :require => 'ap'

Btw, you should need to specify :require => 'ap'

SylarRuby commented 8 years ago

Hey @gerrywastaken! Sorry. Digging further, the culprit was caused by another gem. Thanks for your response!

gerrywastaken commented 8 years ago

@SylarRuby no worries at all and cheers for the update :)