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.
Build: NetBeans IDE Dev (Build EaselCSS-601-on-20120829) VM: Java HotSpot(TM) Client VM, 23.2-b09, Java(TM) SE Runtime Environment, 1.7.0_06-b24 OS: Linux User Comments: vriha: completing via code completion in js file Stacktrace: java.lang.AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:541) at com.oracle.nashorn.ir.UnaryNode.accept(UnaryNode.java:123) at com.oracle.nashorn.ir.BinaryNode.accept(BinaryNode.java:123) at com.oracle.nashorn.ir.BinaryNode.accept(BinaryNode.java:122) at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit(FormatVisitor.java:239) at com.oracle.nashorn.ir.IfNode.accept(IfNode.java:79)
Created attachment 123723 [details] stacktrace
Vlado do you have a test case for this?
I'm afraid I don't. I'll try to reproduce it and attach sample file if possible
Created attachment 123903 [details] stacktrace Selected part of a javascript function and pressed ALT-SHIFT-F
(In reply to comment #4) > Created attachment 123903 [details] > stacktrace > > Selected part of a javascript function and pressed ALT-SHIFT-F Please provide the test case. It always required for formatting issues.
Created attachment 123904 [details] Example source
Fixed in web-main ccde0267fd41. Thanks for the report.
Integrated into 'main-golden', will be available in build *201209060001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/ccde0267fd41 User: Petr Hejl <phejl@netbeans.org> Log: #217607 - AssertionError at org.netbeans.modules.javascript2.editor.formatter.FormatVisitor.visit
no exception on given sample => verified. Thanks Product Version: NetBeans IDE Dev (Build 201209060001) Java: 1.7.0_07; Java HotSpot(TM) Client VM 23.3-b01 System: Linux version 3.2.0-29-generic-pae running on i386; UTF-8; en_US (nb)
*** Bug 217463 has been marked as a duplicate of this bug. ***
*** Bug 215920 has been marked as a duplicate of this bug. ***