Subject: | Flymake not showing Perl::Critic warnings |
Date: | Fri, 16 Nov 2007 11:43:36 +0100 |
To: | bug-Devel-PerlySense [...] rt.cpan.org |
From: | Jan Tatarik <Jan.Tatarik [...] mBalance.com> |
Devel-PerlySense-0.01_25
perl v5.8.8 on gentoo
After configuring PerlySense project to run syntax and critics checks,
only syntax errors are highlighted in emacs buffer.
Running 'perly_sense flymake_file --file=myfile.pl' produces no
Perl::Critic warnings either.
Running Perl::Critic manually on the same file produces several warnings
(with the same perlcritic configuration).
The problem was fixed by changing line 424 of
lib/Devel/PerlySense/Project.pm from
warn "Warning: $violation";
to
print STDERR "Warning: $violation";
This error was probably caused by perly_sense installing __WARN__ signal
handler. This particular message should really go to STDERR and not to a
log file...
Cheers,
Jan Tatarik