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 201609210002) VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13 OS: Windows 10 User Comments: amobilia: modifying php / javascript double quote / single quote GUEST: exaclty as before GUEST: Pressed ctrl+s to save document GUEST: just pressed enter after autocomplete has found matching static method name GUEST: Pressed ctrl+s to save document GUEST: editing source file, the error occurred right after autocompleting "var_export()" GUEST: Pressed ctrl+s to save document GUEST: Cut a piece of code, and pasted it in a different location in the same file Stacktrace: java.lang.AssertionError: T_INLINE_HTML at org.netbeans.modules.php.editor.indent.FormatVisitor.visitConditionalExpression(FormatVisitor.java:813) at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:720) at org.netbeans.modules.php.editor.parser.astnodes.ConditionalExpression.accept(ConditionalExpression.java:167) at org.netbeans.modules.php.editor.parser.astnodes.visitors.DefaultVisitor.scan(DefaultVisitor.java:150) at org.netbeans.modules.php.editor.indent.FormatVisitor.scan(FormatVisitor.java:230) at org.netbeans.modules.php.editor.indent.FormatVisitor.visit(FormatVisitor.java:399)
Created attachment 162517 [details] stacktrace
Junichi, could you please look at it? Perhaps not so important issue, it happens only in dev builds where assertions are enabled. Thanks a lot!
(In reply to Tomas Mysik from comment #2) > Junichi, could you please look at it? Perhaps not so important issue, it > happens only in dev builds where assertions are enabled. Sure :) I'll try it later. Thanks.
@amobilia Could you provide your simple reproducible code? I guess that it contains HTML code and conditional expressions(e.g. $a > 0 ? "foo" : "bar";). Thanks.
It seems that you have a code like the following from your log: function test($b) { $a = $b ? "test1" : "test2"; } But I cannot reproduce this error in a development version. So, we need a reproducible example. Thanks. my environment: Product Version: NetBeans IDE Dev (Build 20161019-dccae1d847b6) Java: 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM 25.101-b13 Runtime: Java(TM) SE Runtime Environment 1.8.0_101-b13 System: Linux version 4.4.0-42-generic running on amd64; UTF-8;
Hello, unable to reproduce the bug on the last dev build. I was making these modifications if never this bug occurs always another day. Thansk ! Anael
Based on the last comment, closing as WORKSFORME. Thanks.