Menu

#1072 Eclipse plugin doesn't check selected file

Eclipse-Plugin
more-info-needed
eclipse (3)
Eclipse
3-Major
Bug
2013-08-22
2013-03-06
No

Environment:
Eclipse Juno
PMD Eclipse plugin version 4.0.0.201211080927

When I select a file in the package explorer in Eclipse and choose the 'right click menu'->'PMD'->'Check Code' the file is not checked. I get the following output in the error log:

!ENTRY net.sourceforge.pmd.eclipse.plugin 1 0 2013-03-06 12:48:01.211
!MESSAGE 0 markers applied on 0 files in 0ms.

!ENTRY net.sourceforge.pmd.eclipse.plugin 1 0 2013-03-06 12:48:01.212
!MESSAGE Review code command terminated. 228 rules were executed against 0 files. PMD was not executed.

!ENTRY net.sourceforge.pmd.eclipse.plugin 1 0 2013-03-06 12:48:01.213
!MESSAGE Command ReviewCode excecuted in 157ms

The file I try to check is 'JenkinsLastBuildXmlParserTest.java'. If I select 'JenkinsProjectStatusTest.java' and try to check that it works.

If I select the package instead and check that so all three files should be checked only one is checked according to the log output:

!ENTRY net.sourceforge.pmd.eclipse.plugin 1 0 2013-03-06 13:00:07.262
!MESSAGE 3 markers applied on 1 files in 0ms.

!ENTRY net.sourceforge.pmd.eclipse.plugin 1 0 2013-03-06 13:00:07.429
!MESSAGE Review code command terminated. 228 rules were executed against 1 files. Actual PMD duration is about 33ms, that is about 33.0 ms/file, 0.14473684 ms/rule, 0.14473684 ms/filerule

!ENTRY net.sourceforge.pmd.eclipse.plugin 1 0 2013-03-06 13:00:07.431
!MESSAGE Command ReviewCode excecuted in 452ms

1 Attachments

Discussion

  • Bo98

    Bo98 - 2013-05-05

    Same thing just happened to one of my files.

     
  • Bo98

    Bo98 - 2013-05-05
    Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(String.java:658)
        at net.sourceforge.pmd.lang.java.rule.comments.AbstractCommentRule.multiLinesIn(AbstractCommentRule.java:98)
        at net.sourceforge.pmd.lang.java.rule.comments.AbstractCommentRule.filteredCommentIn(AbstractCommentRule.java:56)
        at net.sourceforge.pmd.lang.java.rule.comments.CommentContentRule.illegalTermsIn(CommentContentRule.java:95)
        at net.sourceforge.pmd.lang.java.rule.comments.CommentContentRule.visit(CommentContentRule.java:133)
        at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.visitAll(AbstractJavaRule.java:30)
        at net.sourceforge.pmd.lang.java.rule.AbstractJavaRule.apply(AbstractJavaRule.java:24)
        at net.sourceforge.pmd.lang.rule.AbstractDelegateRule.apply(AbstractDelegateRule.java:215)
        at net.sourceforge.pmd.RuleSet.apply(RuleSet.java:211)
        at net.sourceforge.pmd.RuleSets.apply(RuleSets.java:122)
        at net.sourceforge.pmd.SourceCodeProcessor.processSource(SourceCodeProcessor.java:144)
        at net.sourceforge.pmd.SourceCodeProcessor.processSourceCode(SourceCodeProcessor.java:75)
        ... 15 more
    
     
  • Andreas Dangel

    Andreas Dangel - 2013-08-11
    • status: open --> more-info-needed
    • assigned_to: Andreas Dangel
    • Module: PMD --> Eclipse
     
  • Andreas Dangel

    Andreas Dangel - 2013-08-11

    Hi,
    could you check this problem again with the latest eclipse version released just now?

    -> https://sourceforge.net/projects/pmd/files/pmd-eclipse/update-site/

    Thanks,
    Andreas

     
  • Manfred Koch

    Manfred Koch - 2013-08-22

    Tested successfully with latest version on 22-Aug-2013.

    Eclipse Kelper with PMD Plug-in 4.0.1.v20130811-0001

    Thanks,
    Manfred

     

Log in to post a comment.