This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Build: NetBeans IDE Dev (Build 2009-01-26_12-37-36) VM: Java HotSpot(TM) Server VM, 10.0-b23, Java(TM) SE Runtime Environment, 1.6.0_07-b06 OS: Windows XP, 5.1, x86 User Comments: markdavidphipps: moving about a file GUEST: loading new site from existing directory GUEST: Open project markdavidphipps: moving about a file Stacktrace: java.lang.AssertionError: class org.netbeans.modules.php.editor.parser.astnodes.ReflectionVariable at org.netbeans.modules.php.editor.CodeUtils.extractVariableName(CodeUtils.java:145) at org.netbeans.modules.php.editor.model.impl.ModelVisitor.visit(ModelVisitor.java:333) at org.netbeans.modules.php.editor.parser.astnodes.Variable.accept(Variable.java:107) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:51) at org.netbeans.modules.php.editor.model.impl.ModelVisitor.scan(ModelVisitor.java:143) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:58)
Created attachment 76242 [details] stacktrace
This issue has already 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145541
This issue has already 50 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=145541
I have found what causes this error! See the code sample below. // $db is an ADODB connection - any object causes the failure though // works $query=" update budgets set title = ".$db->qstr($this->$titles).", "; // crashes after save or switching tab - even after -> in some cases :( $query=" update budgets set title = {$db->qstr($this->$titles)} "; It looks like the parser is having trouble with this code in a double quoted string: {$db->qstr($this->$titles)} Hopefully it can get resolved now that the cause is known.
reproducible
fixed in trunk http://hg.netbeans.org/main/rev/c413e415740c
*** Issue 158584 has been marked as a duplicate of this issue. ***
*** Issue 158572 has been marked as a duplicate of this issue. ***
*** Issue 157887 has been marked as a duplicate of this issue. ***
Integrated into 'main-golden', will be available in build *200902180201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/c413e415740c User: Tomasz Slota <tslota@netbeans.org> Log: #157454: AssertionError: class org.netbeans.modules.php.editor.parser.astnodes.ReflectionVariable
For me it's still not fixed with Build 200903031401. See also: http://statistics.netbeans.org/analytics/exception.do?id=171924
phpmyforum: this was a little bit different problem reproducible in very different situations. Anyways, I have just replaced the assertion with a debug message so nothing similar should occur in the future. http://hg.netbeans.org/web-main/rev/189779d6167b
Integrated into 'main-golden', will be available in build *200903170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/189779d6167b User: Tomasz Slota <tslota@netbeans.org> Log: #157454: AssertionError: class org.netbeans.modules.php.editor.parser.astnodes.ReflectionVariable
*** Issue 159109 has been marked as a duplicate of this issue. ***
*** Issue 161808 has been marked as a duplicate of this issue. ***
*** Issue 157661 has been marked as a duplicate of this issue. ***
verified on Product Version: NetBeans IDE 6.7 Beta (Build 200904192254) Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02
*** Issue 164136 has been marked as a duplicate of this issue. ***
*** Issue 166286 has been marked as a duplicate of this issue. ***