#344 Perlcritic causes internal error

v0.5.x
closed-out-of-date
nobody
Editor (234)
5
2016-05-12
2006-11-24
mdykierek
No

Tested on following code:
#use strict;

my $var = 0;
print $var;

When execute Source | Perl::Critic or Ctrl+Shift+C I get Internal error occurred during: "Executing Perl::Critic against test.pl.
The error disappears when I remove # from the first line (but no criticism shows up ;)).

Win2K. Sun Java Runtime 1.5 Update 9
Eclipse SDK
Version: 3.2.1
Build id: M20060921-0945
EPIC 0.5.22

!ENTRY org.eclipse.core.jobs 4 2 2006-11-24 15:17:47.921
!MESSAGE An internal error occurred during: "Executing Perl::Critic against test.pl".
!STACK 0
java.lang.ArrayIndexOutOfBoundsException: 1
at org.epic.perleditor.editors.util.SourceCritic.parseLine(SourceCritic.java:123)
at org.epic.perleditor.editors.util.SourceCritic.parseViolations(SourceCritic.java:146)
at org.epic.perleditor.editors.util.SourceCritic.critique(SourceCritic.java:58)
at org.epic.perleditor.actions.PerlCriticAction.doJob(PerlCriticAction.java:67)
at org.epic.perleditor.actions.PerlUserJobAction$1.run(PerlUserJobAction.java:99)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

Is there anything I could provide you with to help more?

Discussion

  • Oliver Trosien

    Oliver Trosien - 2016-05-12
    • status: open --> closed-out-of-date
     
  • Oliver Trosien

    Oliver Trosien - 2016-05-12

    Not reproducable with 0.7.0.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks