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.
This bug was originally marked as duplicate of bug 245896, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related. Build: NetBeans IDE Dev (Build 20150816-1eb2682dcaed) VM: Java HotSpot(TM) 64-Bit Server VM, 25.5-b02, Java(TM) SE Runtime Environment, 1.8.0_05-b13 OS: Linux User Comments: marfous: This piece of code introduced the AE: LayoutManager.prototype.loadTemplate = function(callback) { if (!this._loadedLayoutSetup || this._loadedLayoutSetup !== this.getLayoutSetup() this._loadTemplateAsync.getResult(callback); }; Stacktrace: java.lang.AssertionError: FormatToken{kind=TEXT, offset=4099, text=(, id=BRACKET_LEFT_PAREN} at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.markSpacesWithinParentheses(FormatVisitor.java:1023) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:267) at jdk.nashorn.internal.ir.IfNode.accept(IfNode.java:78) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleBlockContent(FormatVisitor.java:924) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleStandardBlock(FormatVisitor.java:797) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:126)
Created attachment 155572 [details] stacktrace
Keeping assertions there. It should format good enough with assertions disabled. web-main b6047fd83b76