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 268971 - AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatContext.updateJsxPath
Summary: AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatCon...
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-11-14 12:31 UTC by Ralph Ruijs
Modified: 2017-01-19 12:21 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 227206


Attachments
stacktrace (2.73 KB, text/plain)
2016-11-14 12:31 UTC, Ralph Ruijs
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ralph Ruijs 2016-11-14 12:31:46 UTC
Build: NetBeans IDE Dev (Build 20161111-503503a8abf2)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b15, Java(TM) SE Runtime Environment, 1.8.0_112-b15
OS: Linux

User Comments:
ralphbenjamin: Format selection of code




Stacktrace: 
java.lang.AssertionError
   at org.netbeans.modules.javascript2.editor.formatter.FormatContext.updateJsxPath(FormatContext.java:276)
   at org.netbeans.modules.javascript2.editor.formatter.JsFormatter.formatJsx(JsFormatter.java:852)
   at org.netbeans.modules.javascript2.editor.formatter.JsFormatter.access$900(JsFormatter.java:83)
   at org.netbeans.modules.javascript2.editor.formatter.JsFormatter$1.run(JsFormatter.java:276)
   at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:323)
   at org.netbeans.modules.javascript2.editor.formatter.JsFormatter.reformat(JsFormatter.java:131)
Comment 1 Ralph Ruijs 2016-11-14 12:31:48 UTC
Created attachment 162905 [details]
stacktrace
Comment 2 Milutin Kristofic 2017-01-19 12:16:02 UTC
Hi Ralph,

can you paste a code that is triggering this assert? I made small fix in http://hg.netbeans.org/jet-main/rev/cca2fa64fb7d but I need your code to check, if this assert is still thrown.
Comment 3 Ralph Ruijs 2017-01-19 12:21:19 UTC
Hi Mito !

Sorry, I can't recall what I was working on at that time. Thanks for the fix though!