#1785 PHPParser doesn't work for some php files

None
pending-works-for-me
nobody
phpparser (1)
5
2014-11-06
2014-04-26
Jojaba
No

PHPParser Plugin 2.0.2
jEdit 5.1.0

No php file sidekick parsing.

Error displayed :
java.lang.ArrayIndexOutOfBoundsException: -1
at gatchan.phpparser.parser.PHPParser.ElseIfStatementColon(PHPParser.java:9015)
at gatchan.phpparser.parser.PHPParser.ifStatementAction(PHPParser.java:8740)
at gatchan.phpparser.parser.PHPParser.IfStatement(PHPParser.java:8552)
at gatchan.phpparser.parser.PHPParser.StatementNoBreak(PHPParser.java:6311)
at gatchan.phpparser.parser.PHPParser.Statement(PHPParser.java:6778)
at gatchan.phpparser.parser.PHPParser.BlockStatement(PHPParser.java:7715)
at gatchan.phpparser.parser.PHPParser.Php(PHPParser.java:782)
at gatchan.phpparser.parser.PHPParser.PhpBlock(PHPParser.java:568)
at gatchan.phpparser.parser.PHPParser.phpFile(PHPParser.java:437)
at gatchan.phpparser.parser.PHPParser.parse(PHPParser.java:261)
at gatchan.phpparser.parser.PHPParser.parse(PHPParser.java:285)
at gatchan.phpparser.parser.PHPParser.parse(PHPParser.java:267)
at gatchan.phpparser.sidekick.PHPSideKickParser.parse(PHPSideKickParser.java:119)
at sidekick.SideKick$ParseRequestWorker.doInBackground(SideKick.java:550)
at sidekick.SideKick$ParseRequestWorker.doInBackground(SideKick.java:526)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

In attachment a file that isn't parsed...

Thanks in advance

1 Attachments

Discussion

  • Jojaba
    Jojaba
    2014-04-26

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,8 +1,9 @@
     PHPParser Plugin 2.0.2
     jEdit 5.1.0
    
    -No php file sidekick parsing. Error displayed :
    -====================
    +No php file sidekick parsing.
    +
    +Error displayed :
     java.lang.ArrayIndexOutOfBoundsException: -1
        at gatchan.phpparser.parser.PHPParser.ElseIfStatementColon(PHPParser.java:9015)
        at gatchan.phpparser.parser.PHPParser.ifStatementAction(PHPParser.java:8740)
    @@ -25,7 +26,7 @@
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)
    -====================
    +
     In attachment a file that isn't parsed...
    
     Thanks in advance
    
    • Group: -->
     
    • status: open --> pending-works-for-me
     
  • Is it still an issue ? I cannot reproduce it with latest release