Subject: | Flymake warnings not displayed with latest Perl::Critic |
Date: | Tue, 27 Jan 2009 13:44:03 +0100 |
To: | JOHANL via RT <bug-Devel-PerlySense [...] rt.cpan.org> |
From: | Jan Tatarik <Jan.Tatarik [...] mbalance.com> |
After upgrading to Perl-Critic-1.094001 and Devel-PerlySense-0.0177 at
the same time, emacs will not display perlcritic warnings any more.
'perly_sense flymake_file' now produces messages whose format is not
recognized by flymake. This is due (I guess) a new way the warning
format is specified in Perl::Critic::Violation.
Changing line 561 of Project.pm from
local $Perl::Critic::Violation::FORMAT = "%m near '%r' (%e, %p) at %f line %l.\n";
to
Perl::Critic::Violation::set_format("%m near '%r' (%e, %p) at %f line %l.\n");
fixes the problem for me.
Thanks,
Jan