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 268750 - AssertionError: should never have two equal TokenSequence TokenSequence for text/x-php5/text/html/text/javascript/text/html at tokenIndex=0. TokenList contains 3 tokens: *[0]: "</option>';\n" <19913,1
Summary: AssertionError: should never have two equal TokenSequence TokenSequence for t...
Status: RESOLVED DUPLICATE of bug 268403
Alias: None
Product: web
Classification: Unclassified
Component: Editing infrastructure (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-31 08:01 UTC by Exceptions Reporter
Modified: 2016-11-02 14:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227023


Attachments
stacktrace (5.11 KB, text/plain)
2016-10-31 08:01 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2016-10-31 08:01:45 UTC
This bug was originally marked as duplicate of bug 268097, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201610260002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.101-b13, Java(TM) SE Runtime Environment, 1.8.0_101-b13
OS: Linux

User Comments:
GUEST: java.lang.AssertionError
	at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:281)
	at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:278)
	at java.util.TimSort.mergeHi(TimSort.java:837)
	at java.util.TimSort.mergeAt(TimSort.java:516)
	at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
	at java.util.TimSort.sort(TimSort.java:254)
	at java.util.Arrays.sort(Arrays.java:1512)
	at java.util.ArrayList.sort(ArrayList.java:1454)
	at java.util.Collections.sort(Collections.java:175)
	at org.netbeans.modules.web.indent.api.LexUtilities.getEmbeddedTokenSequences(LexUtilities.java:278)
	at org.netbeans.modules.web.indent.api.LexUtilities.createCodeBlocks(LexUtilities.java:328)
	at org.netbeans.modules.web.indent.api.support.AbstractIndenter.calculateIndentation(AbstractIndenter.java:306)
	at org.netbeans.modules.web.indent.api.support.AbstractIndenter.reindent(AbstractIndenter.java:233)
	at org.netbeans.modules.html.editor.indent.Htm

alias: ru - ???????? ????????? ??? ???????? ?? ????? ?????? ?? ????????? ??????? enter
en - Problem detected when click enter for new line

GUEST: I open tpl file with html and php instructions in editor and try to edit it's content.




Stacktrace: 
java.lang.AssertionError: should never have two equal TokenSequence TokenSequence for text/x-php5/text/html/text/javascript/text/html at tokenIndex=0. TokenList contains 3 tokens:
*[0]: "</option>';\n" <19913,19925> BLOCK_COMMENT[12] ParT[2/2], st=HLS(hc=102229704,s=21), @5159d524
T[1]: "\n" <19925,19926> BLOCK_COMMENT[12] DefT, st=HLS(hc=102229704,s=21), @77f37523
T[2]: "\t\t\t\tif (json['zone'] != '') {" <19926,19955> BLOCK_COMMENT[12] ParT[1/2], @db646fc

 text/html, LH: org.netbeans.api.html.lexer.HTMLTokenId$1
   at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:281)
   at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:278)
   at java.util.TimSort.mergeHi(TimSort.java:837)
   at java.util.TimSort.mergeAt(TimSort.java:516)
   at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
   at java.util.TimSort.sort(TimSort.java:254)
Comment 1 Exceptions Reporter 2016-10-31 08:01:48 UTC
Created attachment 162696 [details]
stacktrace
Comment 2 Milutin Kristofic 2016-11-02 14:22:45 UTC

*** This bug has been marked as a duplicate of bug 268403 ***