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 270535

Summary: AssertionError: should never have two equal TokenSequence TokenSequence for text/x-twig/text/html/text/javascript/text/html at tokenIndex=0. TokenList contains 49 tokens: *[ 0]: """ <2190,2191> VALUE[
Product: web Reporter: Exceptions Reporter <exceptions_reporter>
Component: Editing infrastructureAssignee: Milutin Kristofic <mkristofic>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: Dev   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 229021
Attachments: stacktrace

Description Exceptions Reporter 2017-05-02 13:19:33 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 201705020001)
VM: OpenJDK 64-Bit Server VM, 25.121-b13, OpenJDK Runtime Environment, 1.8.0_121-8u121-b13-0ubuntu1.16.04.2-b13
OS: Linux

User Comments:
GUEST: by auto format code




Stacktrace: 
java.lang.AssertionError: should never have two equal TokenSequence TokenSequence for text/x-twig/text/html/text/javascript/text/html at tokenIndex=0. TokenList contains 49 tokens:
*[ 0]: """ <2190,2191> VALUE[9] ParT[4/4], st=HLS(hc=85276590,s=9,ss=1,tag=a), @6a698a66
T[ 1]: " " <2191,2192> WS[3] DefT, la=1, st=HLS(hc=85276590,s=9,ss=1,tag=a), @6633392d
T[ 2]: "class" <2192,2197> ARGUMENT[7] DefT, la=1, st=HLS(hc=1700431641,s=12,ss=1,tag=a,attribute=class), @2bcef16e
T[ 3]: "=" F(1) OPERATOR[8] FlyT, st=HLS(hc=1703271355,s=14,ss=1,tag=a,attribute=class), @637e5b72
T[ 4]: ""email-button"" <2198,2212> VALUE_CSS[11] ProT, st=HLS(hc=85276590,s=9,ss=1,tag=a), @42fac010
      Embedding[0]: "text/x-twig/text/html/text/javascript/text/html/text/css", @712de216
    T[0]: "email-button" <2199,2211> IDENT[14] ParT[1/2], @ea8474f

T[ 5]: " " <2212,2213> WS[3] DefT, la=1, st=HLS(hc=85276590,s=9,ss=1,tag=a), @52b18275
T[ 6]: "style" F(5) ARGUMENT[7] FlyT, la=1, st=HLS(hc=1751300978,s=12,ss=1,tag=a,attribute=style), @465f3
   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.gallopLeft(TimSort.java:542)
   at java.util.TimSort.mergeAt(TimSort.java:507)
   at java.util.TimSort.mergeForceCollapse(TimSort.java:457)
   at java.util.TimSort.sort(TimSort.java:254)
Comment 1 Exceptions Reporter 2017-05-02 13:19:36 UTC
Created attachment 164223 [details]
stacktrace