Term::ANSIColor Issue

127 views
Skip to first unread message

ylluminate

unread,
Mar 8, 2012, 8:31:42 PM3/8/12
to ack-...@googlegroups.com
On a linux (Ubuntu 11.10) server I'm seeing that the bright_ are evoking an error: Invalid attribute name bright_black at /usr/share/perl5/App/Ack.pm line 1155 

What may be at play here?


Thanks,

-George

Bill Ricker

unread,
Mar 8, 2012, 11:06:16 PM3/8/12
to ack-...@googlegroups.com
On Thu, Mar 8, 2012 at 8:31 PM, ylluminate <yllum...@gmail.com> wrote:
On a linux (Ubuntu 11.10) server I'm seeing that the bright_ are evoking an error: Invalid attribute name bright_black at /usr/share/perl5/App/Ack.pm line 1155 

What may be at play here?

Strange ! 

Are you using the Ubuntu Perl or a custom build? 
Ubuntu app-ack package or download/build ack from CPAN? 
From your message, i expect Ubuntu both?

   which perl; perl -v

Check if getting matching ANSI or picking up an odd one that came with something else 

   perl -MTerm::ANSIColor -le 'print $INC{"Term/ANSIColor.pm"}'
 
I may have an 11.10 to check on ... Both Ubuntu's packaged 'ack-grep' and my own built ack are working for me under Ubuntu 10.04. 

Bill
@n1vux bill....@gmail.com

yllum...@gmail.com

unread,
Mar 8, 2012, 11:58:17 PM3/8/12
to ack-...@googlegroups.com
Hi Bill, thanks for the note.  I'm running stock Ubuntu 11.10 config on this box (it's just a log drain server for various other servers).  On my output I'm getting for `which perl; perl -v`:
/usr/bin/perl

This is perl 5, version 12, subversion 4 (v5.12.4) built for x86_64-linux-gnu-thread-multi
(with 45 registered patches, see perl -V for more detail)

`perl -MTerm::ANSIColor -le 'print $INC{"Term/ANSIColor.pm"}'` yields:
/usr/share/perl/5.12/Term/ANSIColor.pm

I did install with `aptitude install ack-grep`.


-George



--
You received this message because you are subscribed to the Google Groups "ack dev/users" group.
To post to this group, send email to ack-...@googlegroups.com.
To unsubscribe from this group, send email to ack-users+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/ack-users?hl=en.

Bill Ricker

unread,
Mar 10, 2012, 12:34:03 AM3/10/12
to ack-...@googlegroups.com
Hmm.  Interesting.

Your Perl 5.12 includes Term/ANSIColor.pm 2.02   (vs 5.8.*, 1.9.*; 5.10 2.00;  5.13/5.14, 3.00 )
I see bright_ definitions in 3.00+ only.
 http://cpansearch.perl.org/src/RRA/Term-ANSIColor-3.01/ChangeLog 
But Ack uses 'bold green', not bright_green by default, so where is use of bright_* coming from.

Are you putting bright_black in $ENV{ACK_COLOR_FILENAME}  , or ackrc ? 

If so, you'll need to update Term::ANSIColor to 3.00 or better, either by building Perl 5.14 or fetching it from CPAN  and putting it in a lib ahead of the built-in.

 
bill
--
Bill
@n1vux bill....@gmail.com
Reply all
Reply to author
Forward
0 new messages