Owen Savill created NETBEANS-5279: ------------------------------------- Summary: Assertions being continually thrown when editing HTML files Key: NETBEANS-5279 URL: https://issues.apache.org/jira/browse/NETBEANS-5279 Project: NetBeans Issue Type: Bug Affects Versions: 12.2 Reporter: Owen Savill
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 2 tokens: *[0]: "<" F(1) TAG_OPEN_SYMBOL[18] FlyT, la=1, st=HLS(hc=83771563,s=8), @39606b82 T[1]: "script" F(6) TAG_OPEN[5] FlyT, la=1, st=HLS(hc=1834408872,s=9,es=1,tag=script), @7b99526f text/html, LH: org.netbeans.api.html.lexer.HTMLTokenId$1 at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:258) at org.netbeans.modules.web.indent.api.LexUtilities$1.compare(LexUtilities.java:255) at java.base/java.util.TimSort.gallopRight(TimSort.java:660) at java.base/java.util.TimSort.mergeAt(TimSort.java:500) at java.base/java.util.TimSort.mergeForceCollapse(TimSort.java:461) at java.base/java.util.TimSort.sort(TimSort.java:254) at java.base/java.util.Arrays.sort(Arrays.java:1515) at java.base/java.util.ArrayList.sort(ArrayList.java:1750) at java.base/java.util.Collections.sort(Collections.java:179) at org.netbeans.modules.web.indent.api.LexUtilities.getEmbeddedTokenSequences(LexUtilities.java:255) at org.netbeans.modules.web.indent.api.LexUtilities.createCodeBlocks(LexUtilities.java:305) at org.netbeans.modules.web.indent.api.support.AbstractIndenter.calculateIndentation(AbstractIndenter.java:283) at org.netbeans.modules.web.indent.api.support.AbstractIndenter.reindent(AbstractIndenter.java:210) at org.netbeans.modules.html.editor.indent.HtmlIndentTask.reindent(HtmlIndentTask.java:49) at org.netbeans.modules.editor.indent.TaskHandler$MimeItem.runTask(TaskHandler.java:548) at org.netbeans.modules.editor.indent.TaskHandler.runTasks(TaskHandler.java:309) at org.netbeans.modules.editor.indent.IndentImpl.reindent(IndentImpl.java:282) at org.netbeans.modules.editor.indent.api.Indent.reindent(Indent.java:146) at org.netbeans.modules.html.editor.typinghooks.HtmlTypedTextInterceptor$1$1.run(HtmlTypedTextInterceptor.java:168) at org.netbeans.editor.GuardedDocument.runAtomic(GuardedDocument.java:296) at org.netbeans.modules.html.editor.typinghooks.HtmlTypedTextInterceptor$1.run(HtmlTypedTextInterceptor.java:164) at org.netbeans.modules.html.editor.typinghooks.HtmlTypedTextInterceptor.indentLineAfterTagClosingSymbol(HtmlTypedTextInterceptor.java:180) at org.netbeans.modules.html.editor.typinghooks.HtmlTypedTextInterceptor.insert(HtmlTypedTextInterceptor.java:112) at org.netbeans.modules.editor.lib2.typinghooks.TypedTextInterceptorsManager$Transaction.textTyped(TypedTextInterceptorsManager.java:91) at org.netbeans.editor.BaseKit$DefaultKeyTypedAction$3.run(BaseKit.java:1250) at org.netbeans.editor.GuardedDocument.runAtomicAsUser(GuardedDocument.java:333) at org.netbeans.editor.BaseKit$DefaultKeyTypedAction.actionPerformed(BaseKit.java:1231) at org.netbeans.editor.ext.ExtKit$ExtDefaultKeyTypedAction.actionPerformed(ExtKit.java:1055) at org.netbeans.modules.csl.core.CslEditorKit$GsfDefaultKeyTypedAction.actionPerformed(CslEditorKit.java:231) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:322) at java.desktop/javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1810) at java.desktop/javax.swing.JComponent.processKeyBinding(JComponent.java:2900) at java.desktop/javax.swing.JComponent.processKeyBindings(JComponent.java:2948) at java.desktop/javax.swing.JComponent.processKeyEvent(JComponent.java:2862) at java.desktop/java.awt.Component.processEvent(Component.java:6412) at java.desktop/java.awt.Container.processEvent(Container.java:2263) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5011) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843) at java.desktop/java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1950) at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:870) at java.desktop/java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1139) at java.desktop/java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:1009) at java.desktop/java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:835) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:4892) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2321) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2772) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4843) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:772) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:95) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:745) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:743) at java.base/java.security.AccessController.doPrivileged(Native Method) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:742) at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136) [catch] at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists