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.
Summary: | AssertionError: WHITESPACE | ||
---|---|---|---|
Product: | php | Reporter: | twifty |
Component: | Editor | Assignee: | junichi11 |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | junichi11, tmysik |
Priority: | P2 | ||
Version: | Dev | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 229215 |
Attachments: | stacktrace |
Description
twifty
2017-07-08 23:10:52 UTC
Created attachment 164725 [details]
stacktrace
With a lot of commenting out code, I found the culprit. To reproduce, add the following to a php class. public function testFailsOnExistingFile() { $tmp = new class(0, $a ? 1 : 2) { public function __construct($a, $b) { } }; // <-- Start typing '$this' here } So long as the anonymous class exists in the source, the autocomplete will throw the exception (it doesn't matter from which line). Reporting of this error can be easily avoided by disabling assertions (which is the default in final versions of NetBeans so this error will not occur in NB 9.0 Final). Simply remove "-J-ea" from NB config file [1]. Thanks. [1] <netbeans-directory>/etc/netbeans.conf Thanks for reporting! I'll look at it. @junichi11, did you manage to reproduce the problem with the code I gave? (In reply to twifty from comment #5) > @junichi11, did you manage to reproduce the problem with the code I gave? Yes, reproducible. Thanks for providing it. This is a formatter's problem. I've already fixed it in my local environment. I'll push my changes tonight since I cannot watch build machines now. Fixed. http://hg.netbeans.org/web-main/rev/b56505c2dfc3 Thanks. Integrated into 'main-silver', will be available in build *201707201608* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/b56505c2dfc3 User: Junichi Yamamoto <junichi11@netbeans.org> Log: #271062 - AssertionError: WHITESPACE |