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 268542 - AssertionError: T_INLINE_HTML
Summary: AssertionError: T_INLINE_HTML
Status: RESOLVED WORKSFORME
Alias: None
Product: php
Classification: Unclassified
Component: Editor (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-16 07:10 UTC by amobilia
Modified: 2016-10-20 06:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 225037


Attachments
stacktrace (7.84 KB, text/plain)
2016-10-16 07:10 UTC, amobilia
Details

Note You need to log in before you can comment on or make changes to this bug.
Description amobilia 2016-10-16 07:10:50 UTC
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)
Comment 1 amobilia 2016-10-16 07:10:53 UTC
Created attachment 162517 [details]
stacktrace
Comment 2 Tomas Mysik 2016-10-17 05:42:08 UTC
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!
Comment 3 junichi11 2016-10-17 05:59:07 UTC
(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.
Comment 4 junichi11 2016-10-18 04:32:26 UTC
@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.
Comment 5 junichi11 2016-10-19 05:45:48 UTC
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;
Comment 6 amobilia 2016-10-20 00:44:11 UTC
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
Comment 7 Tomas Mysik 2016-10-20 06:00:21 UTC
Based on the last comment, closing as WORKSFORME.

Thanks.