PHPParser : abstract class parsed in structure browser, but not interface?
Submitted by Friday, 2 June, 2006 - 20:49
on
Hi,
I would like to know if it was normal (or planned) that the structure browser does not show the structure of file containing interface ?
if I have this :
class X {
function f() {}
}
It works. But I have an interface just after :
interface Y {
function f();
}
It fails ("not parsed")
Since it seems to be bound to the folding model, I suppose the interface does not create a structure? Also, the folding behave in a strange way : (+ denote a fold)
+ class X {
|+ function foo() {
||
|| }
|| function poo() {
||
|| }
}
Note : I also had this exception :
[debug] WorkThread: Running in work thread: [id=870,run=sidekick.SideKick$ParseRequest@6a60d5]
[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.JEditBuffer.getLineStartOffset(JEditBuffer.java:327)
[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)
(anyway I can't reproduce the error)
I would like to know if it was normal (or planned) that the structure browser does not show the structure of file containing interface ?
if I have this :
class X {
function f() {}
}
It works. But I have an interface just after :
interface Y {
function f();
}
It fails ("not parsed")
Since it seems to be bound to the folding model, I suppose the interface does not create a structure? Also, the folding behave in a strange way : (+ denote a fold)
+ class X {
|+ function foo() {
||
|| }
|| function poo() {
||
|| }
}
Note : I also had this exception :
[debug] WorkThread: Running in work thread: [id=870,run=sidekick.SideKick$ParseRequest@6a60d5]
[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.JEditBuffer.getLineStartOffset(JEditBuffer.java:327)
[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)
(anyway I can't reproduce the error)