Closed febeling closed 3 years ago
This is fixed in the fork AmazingPrint: https://github.com/amazing-print/amazing_print/pull/57/files
Maybe it's time to switch to this maintained alternative. The fix is exactly the same.
PR will be merged once checks complete
Some expressions in irb result in an ArgumentError.
Consider this example:
This is a distinct problem from #330, because it's in the context of using irb.
This commit https://github.com/ruby/irb/commit/c5ea79d5cecea9cae6ad0c1f31703a98cd329431 in IRB changed the signature of IRB::Irb#output_value to add one default argument.
When overriding same method in awesome_print https://github.com/awesome-print/awesome_print/blob/master/lib/awesome_print/custom_defaults.rb#L30 without this default parameter, the error is raised.