jEdit Community - Resources for users of the jEdit Text Editor
PHPParser 1.2.0 glitch (interfaces?)
Submitted by Austin_Hastings on Friday, 14 October, 2005 - 13:36
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\)]]
User login
Browse archives
« September 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   96034
Context Free Art (*.cfdg)   0.31   46061
BBEdit scheme   1.0   18600
JBuilder scheme   .001   18501
ColdFusion scheme   1.0   18030
R Edit Mode - extensive version   0.1   17480
Advanced HTML edit mode   1.0   16212
Matlab Edit Mode   1.0   16074
jEdit XP icons   1.0   15235
XP icons for jEdit   1.1   14299