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

Summary: AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatContext.updateJsxPath
Product: javascript Reporter: Ralph Ruijs <ralphbenjamin>
Component: EditorAssignee: Petr Pisl <ppisl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 227206
Attachments: stacktrace

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!