PHPParser 1.2.0 glitch (interfaces?)
Submitted by Friday, 14 October, 2005 - 13:36
on
Got the following. I think the first section of [error] reportage may be irrelevant, but the second section reflects a glitch that hit as I was creating an interface.
I had
interface Name {
}
and was filling in function signatures when it hit. Aout the tenth or eleventh function, it highlighted "public" as wrong and reported an internal error when I hovered the mouse to read what was wrong.
Activity log entries that might be useful in a bug report:
Log file created on Fri Oct 14 05:46:41 EDT 2005
IMPORTANT:
Because updating this file after every log message would kill
performance, it will be *incomplete* unless you invoke the
Utilities->Troubleshooting->Update Activity Log on Disk command!
[message] Log: When reporting bugs, please include the following information:
[message] Log: java.version=1.5.0_02
[message] Log: java.vm.version=1.5.0_02-b09
[message] Log: java.runtime.version=1.5.0_02-b09
[notice] jEdit: jEdit version 4.2final
[message] jEdit: Settings directory is C:\Documents and Settings\Austin Hastings\.jedit
[message] jEdit: jEdit home directory is C:\Program Files\jEdit
[notice] jEdit: Loading plugins from C:\Program Files\jEdit\jars
[notice] jEdit: Loading plugins from C:\Documents and Settings\Austin Hastings\.jedit\jars
[message] jEdit: Loading mode catalog file C:\Program Files\jEdit\modes\catalog
[message] jEdit: Loading mode catalog file C:\Documents and Settings\Austin Hastings\.jedit\modes\catalog
[message] jEdit: Startup complete
[error] WorkThread: Exception in work thread:
[error] WorkThread: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
[error] WorkThread: at org.gjt.sp.jedit.Buffer.getLineStartOffset(Buffer.java:907)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildNode(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildChildNodes(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildNode(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildChildNodes(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.parse(Unknown Source)
[error] WorkThread: at sidekick.SideKick$ParseRequest.run(SideKick.java:406)
[error] WorkThread: at org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:194)
[error] WorkThread: at org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:161)
[error] WorkThread: at org.gjt.sp.util.WorkThread.run(WorkThread.java:135)
[debug] WorkThread: Running in work thread: [id=811,run=sidekick.SideKick$ParseRequest@1f97846]
[error] PHPSideKickParser: gatchan.phpparser.parser.ParseException: Encountered "}" at line 58, column 1.
[error] PHPSideKickParser: Was expecting:
[error] PHPSideKickParser: "function" ...
[error] PHPSideKickParser:
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.generateParseException(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.jj_consume_token(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.interfaceMethodDeclaration(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.interfaceDeclaration(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.BlockStatement(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.Php(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.PhpBlock(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.phpFile(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.parse(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.parse(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.parse(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.sidekick.PHPSideKickParser.parse(Unknown Source)
[error] PHPSideKickParser: at sidekick.SideKick$ParseRequest.run(SideKick.java:406)
[error] PHPSideKickParser: at org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:194)
[error] PHPSideKickParser: at org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:161)
[error] PHPSideKickParser: at org.gjt.sp.util.WorkThread.run(WorkThread.java:135)
[debug] SideKick$ParseAWTRequest: ParseAWTRequest
[debug] EditBus: ErrorSourceUpdate[source=null,what=ERROR_SOURCE_REMOVED,errorSource=errorlist.DefaultErrorSource[SideKick],error=null]
[debug] EditBus: ErrorSourceUpdate[source=null,what=ERROR_SOURCE_ADDED,errorSource=errorlist.DefaultErrorSource[SideKick],error=null]
[debug] SideKickParsedData: Setting parsed data of org.gjt.sp.jedit.View[active] to null
[debug] EditBus: SideKickUpdate[source=null]
[debug] WorkThread: Running in work thread: [id=813,run=org.gjt.sp.jedit.buffer.BufferIORequest[type=AUTOSAVE,buffer=IRecordHierarchy.php (C:\www\localhost\php_trees\)]]
I had
interface Name {
}
and was filling in function signatures when it hit. Aout the tenth or eleventh function, it highlighted "public" as wrong and reported an internal error when I hovered the mouse to read what was wrong.
Activity log entries that might be useful in a bug report:
Log file created on Fri Oct 14 05:46:41 EDT 2005
IMPORTANT:
Because updating this file after every log message would kill
performance, it will be *incomplete* unless you invoke the
Utilities->Troubleshooting->Update Activity Log on Disk command!
[message] Log: When reporting bugs, please include the following information:
[message] Log: java.version=1.5.0_02
[message] Log: java.vm.version=1.5.0_02-b09
[message] Log: java.runtime.version=1.5.0_02-b09
[notice] jEdit: jEdit version 4.2final
[message] jEdit: Settings directory is C:\Documents and Settings\Austin Hastings\.jedit
[message] jEdit: jEdit home directory is C:\Program Files\jEdit
[notice] jEdit: Loading plugins from C:\Program Files\jEdit\jars
[notice] jEdit: Loading plugins from C:\Documents and Settings\Austin Hastings\.jedit\jars
[message] jEdit: Loading mode catalog file C:\Program Files\jEdit\modes\catalog
[message] jEdit: Loading mode catalog file C:\Documents and Settings\Austin Hastings\.jedit\modes\catalog
[message] jEdit: Startup complete
[error] WorkThread: Exception in work thread:
[error] WorkThread: java.lang.ArrayIndexOutOfBoundsException: Array index out of range: -1
[error] WorkThread: at org.gjt.sp.jedit.Buffer.getLineStartOffset(Buffer.java:907)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildNode(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildChildNodes(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildNode(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.buildChildNodes(Unknown Source)
[error] WorkThread: at gatchan.phpparser.sidekick.PHPSideKickParser.parse(Unknown Source)
[error] WorkThread: at sidekick.SideKick$ParseRequest.run(SideKick.java:406)
[error] WorkThread: at org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:194)
[error] WorkThread: at org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:161)
[error] WorkThread: at org.gjt.sp.util.WorkThread.run(WorkThread.java:135)
[debug] WorkThread: Running in work thread: [id=811,run=sidekick.SideKick$ParseRequest@1f97846]
[error] PHPSideKickParser: gatchan.phpparser.parser.ParseException: Encountered "}" at line 58, column 1.
[error] PHPSideKickParser: Was expecting:
[error] PHPSideKickParser: "function" ...
[error] PHPSideKickParser:
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.generateParseException(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.jj_consume_token(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.interfaceMethodDeclaration(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.interfaceDeclaration(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.BlockStatement(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.Php(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.PhpBlock(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.phpFile(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.parse(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.parse(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.parser.PHPParser.parse(Unknown Source)
[error] PHPSideKickParser: at gatchan.phpparser.sidekick.PHPSideKickParser.parse(Unknown Source)
[error] PHPSideKickParser: at sidekick.SideKick$ParseRequest.run(SideKick.java:406)
[error] PHPSideKickParser: at org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:194)
[error] PHPSideKickParser: at org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:161)
[error] PHPSideKickParser: at org.gjt.sp.util.WorkThread.run(WorkThread.java:135)
[debug] SideKick$ParseAWTRequest: ParseAWTRequest
[debug] EditBus: ErrorSourceUpdate[source=null,what=ERROR_SOURCE_REMOVED,errorSource=errorlist.DefaultErrorSource[SideKick],error=null]
[debug] EditBus: ErrorSourceUpdate[source=null,what=ERROR_SOURCE_ADDED,errorSource=errorlist.DefaultErrorSource[SideKick],error=null]
[debug] SideKickParsedData: Setting parsed data of org.gjt.sp.jedit.View[active] to null
[debug] EditBus: SideKickUpdate[source=null]
[debug] WorkThread: Running in work thread: [id=813,run=org.gjt.sp.jedit.buffer.BufferIORequest[type=AUTOSAVE,buffer=IRecordHierarchy.php (C:\www\localhost\php_trees\)]]