New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling Term::ANSIColor::color when coloured is disabled #112
Comments
Hi @mjegh! Thank you for the report.
Could you please let us know what version of Term::ANSIColor you have installed? Currently, we require 3.0 or greater, but maybe there is an issue there that we are able to track down and fix. Anything else you can provide to help us track down and fix the issue would be greatly appreciated. Thank you! |
It could just as easily be argued it isn't printing an colour because it is core dumping but I'll take your point as I believe you intended it. perl -MTerm::ANSIColor -le 'print $Term::ANSIColor::VERSION;' I reported this almost a year ago and I don't believe I can even reproduce it now. When we got nowhere with it I believe we hacked Term::ANSIColor to be one big NOOP. I had forgotten about this issue and we eventually made it go away so you can probably close it now. |
Thank you for the quick reply! I'll look into it, and I'm also refactoring the code so it will require Term::ANSIColor on runtime and only if you actually requested a colored output. |
A big ++ for using require. |
Hey @mjegh! The new version on github master (dev release 0.99_X on CPAN, soon to be 1.00) has dropped Term::ANSIColor entirely and now the entire coloring process - or lack thereof - should be much more robust. Thanks again for the report and let me know if you bump into any issues. Cheers! |
I am getting an occasional use of uninitialized variable:
followed by a core dump. I've tracked it down to calls from Data::Printer to color(). I have specifically disabled colored output in my .dataprinter. I have also set colored => 0 when I import Data::Printer. However, it seems Data::Printer calls color no matter in
Data::Printer seems to be sprinkled with calls to color (e.g., _escape_chars) which get called even though colored => 0.
Could you please make colored => 0 actually do what it is documented as doing and not call color.
The text was updated successfully, but these errors were encountered: