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.

Bug 241364

Summary: [80cat] AssertionError: FormatToken{kind=BEFORE_RIGHT_PARENTHESIS, offset=-1, text=null, id=null}
Product: javascript Reporter: kosmonaffft
Component: Formatting & IndentationAssignee: Petr Hejl <phejl>
Status: CLOSED INCOMPLETE    
Severity: normal CC: kosmonaffft
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 207257
Attachments: stacktrace
stacktrace

Description kosmonaffft 2014-02-04 07:28:31 UTC
Build: NetBeans IDE Dev (Build 201402020001)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 8

User Comments:
kosmonaFFFt: Select JS code and format it...




Stacktrace: 
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)
Comment 1 kosmonaffft 2014-02-04 07:28:33 UTC
Created attachment 144757 [details]
stacktrace
Comment 2 kosmonaffft 2014-02-09 08:25:25 UTC
Created attachment 144954 [details]
stacktrace

Format code...
Comment 3 Petr Hejl 2014-02-14 10:09:05 UTC
We always need a sample file to reproduce the issue. Please provide one.
Comment 4 Petr Hejl 2014-02-17 13:02:16 UTC
Might be duplicate of issue #240402.