java.lang.AssertionError: FormatToken{kind=BEFORE_RIGHT_PARENTHESIS, offset=-1, text=null, id=null} at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:433) at jdk.nashorn.internal.ir.CallNode.accept(CallNode.java:212) at jdk.nashorn.internal.ir.VarNode.accept(VarNode.java:144) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleBlockContent(FormatVisitor.java:925) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleStandardBlock(FormatVisitor.java:777) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:125) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:331) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:291) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleBlockContent(FormatVisitor.java:884) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleStandardBlock(FormatVisitor.java:777) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:125) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:331) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:291) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleBlockContent(FormatVisitor.java:884) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleStandardBlock(FormatVisitor.java:777) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:125) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:331) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:291) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.handleBlockContent(FormatVisitor.java:884) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:123) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.enter(FormatVisitor.java:331) at jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:291) at org.netbeans.modules.javascript2.editor.formatter.JsFormatter$1.run(JsFormatter.java:147) at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:321) at org.netbeans.modules.javascript2.editor.formatter.JsFormatter.reformat(JsFormatter.java:121) at org.netbeans.modules.csl.core.GsfReformatTask$1.run(GsfReformatTask.java:105) at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:593) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:155) at org.netbeans.modules.parsing.api.ParserManager$UserTaskAction.run(ParserManager.java:139) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:206) at org.netbeans.modules.parsing.impl.TaskProcessor$2.call(TaskProcessor.java:203) at org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176) at org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360) at org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:74) at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:203) at org.netbeans.modules.parsing.api.ParserManager.parse(ParserManager.java:106) at org.netbeans.modules.csl.core.GsfReformatTask.reformat(GsfReformatTask.java:95) at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:548) at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:316) at org.netbeans.modules.editor.indent.IndentImpl.reformat(IndentImpl.java:357) at org.netbeans.modules.editor.indent.api.Reformat.reformat(Reformat.java:154) at org.netbeans.editor.ActionFactory$FormatAction$1$1.run(ActionFactory.java:1683) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:351) at org.netbeans.editor.ActionFactory$FormatAction$1.run(ActionFactory.java:1662) at org.netbeans.modules.progress.ui.RunOffEDTImpl$1.run(RunOffEDTImpl.java:150) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033) Caused: org.openide.util.RequestProcessor$SlowItem: task failed due to: java.lang.AssertionError: FormatToken{kind=BEFORE_RIGHT_PARENTHESIS, offset=-1, text=null, id=null} at org.openide.util.RequestProcessor.post(RequestProcessor.java:419) at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventDispatchThreadImpl(RunOffEDTImpl.java:143) at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventDispatchThread(RunOffEDTImpl.java:105) at org.netbeans.api.progress.ProgressUtils.runOffEventDispatchThread(ProgressUtils.java:91) at org.netbeans.editor.ActionFactory$FormatAction.actionPerformed(ActionFactory.java:1650) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:337) at org.netbeans.spi.editor.AbstractEditorAction.actionPerformed(AbstractEditorAction.java:462) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1662) at javax.swing.JComponent.processKeyBinding(JComponent.java:2878) at javax.swing.JComponent.processKeyBindings(JComponent.java:2925) at javax.swing.JComponent.processKeyEvent(JComponent.java:2841) at java.awt.Component.processEvent(Component.java:6282) at java.awt.Container.processEvent(Container.java:2229) at java.awt.Component.dispatchEventImpl(Component.java:4861) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895) at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762) at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027) at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899) at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727) at java.awt.Component.dispatchEventImpl(Component.java:4731) at java.awt.Container.dispatchEventImpl(Container.java:2287) at java.awt.Window.dispatchEventImpl(Window.java:2719) at java.awt.Component.dispatchEvent(Component.java:4687) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735) at java.awt.EventQueue.access$200(EventQueue.java:103) at java.awt.EventQueue$3.run(EventQueue.java:694) at java.awt.EventQueue$3.run(EventQueue.java:692) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87) at java.awt.EventQueue$4.run(EventQueue.java:708) at java.awt.EventQueue$4.run(EventQueue.java:706) at java.security.AccessController.doPrivileged(AccessController.java:0) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76) at java.awt.EventQueue.dispatchEvent(EventQueue.java:705) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138) at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)