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 - [80cat] AssertionError: FormatToken{kind=BEFORE_RIGHT_PARENTHESIS, offset=-1, text=null, id=null}
Summary: [80cat] AssertionError: FormatToken{kind=BEFORE_RIGHT_PARENTHESIS, offset=-1,...
Status: CLOSED INCOMPLETE
Alias: None
Product: javascript
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-04 07:28 UTC by kosmonaffft
Modified: 2014-04-08 17:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 207257


Attachments
stacktrace (7.87 KB, text/plain)
2014-02-04 07:28 UTC, kosmonaffft
Details
stacktrace (7.74 KB, text/plain)
2014-02-09 08:25 UTC, kosmonaffft
Details

Note You need to log in before you can comment on or make changes to this bug.
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.