You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Tomáš Poledný (Jira)" <ji...@apache.org> on 2020/02/17 11:27:00 UTC
[jira] [Updated] (NETBEANS-3887) Yaml with only opening {{ is
stucked.
[ https://issues.apache.org/jira/browse/NETBEANS-3887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tomáš Poledný updated NETBEANS-3887:
------------------------------------
Attachment: newEmptyYAML.yaml
> Yaml with only opening {{ is stucked.
> -------------------------------------
>
> Key: NETBEANS-3887
> URL: https://issues.apache.org/jira/browse/NETBEANS-3887
> Project: NetBeans
> Issue Type: Bug
> Components: yaml - Editor
> Affects Versions: 11.3
> Reporter: Tomáš Poledný
> Priority: Major
> Attachments: newEmptyYAML.yaml
>
>
> The new mustache support brokes opening my yaml. I have openapi.yaml where is code in comment like *{{xxx}* so there is missing one closing bracket but it is not mustache it is only comment and I think it doesn't matter. I am not able to scroll lower than few lines bellow this tag. Here is stacktrace:
> {noformat}
> SEVERE [global]
> java.lang.IllegalStateException: Lexer org.netbeans.modules.languages.yaml.YamlLexer@167670b0
> returned null token but lexerInput.readLength()=62399
> lexer-state: 13
> tokenStartOffset=6298, readOffset=68697, lookaheadOffset=68698
> Chars: *REMOVED TEXT*
> Fix the lexer to not return null token in this state.
> at org.netbeans.lib.lexer.LexerInputOperation.checkLexerInputFinished(LexerInputOperation.java:435)
> at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:193)
> at org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbeddingImpl(IncTokenList.java:170)
> at org.netbeans.lib.lexer.inc.IncTokenList.tokenOrEmbedding(IncTokenList.java:165)
> at org.netbeans.api.lexer.TokenSequence.moveNext(TokenSequence.java:463)
> at org.netbeans.modules.languages.yaml.EmbeddedSectionsHighlighting$Highlights.moveNext(EmbeddedSectionsHighlighting.java:162)
> at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.fetchNextHighlight(DirectMergeContainer.java:600)
> at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.init(DirectMergeContainer.java:509)
> at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.<init>(DirectMergeContainer.java:211)
> at org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer.getHighlights(DirectMergeContainer.java:96)
> at org.netbeans.modules.editor.lib2.highlighting.HighlightsReader.<init>(HighlightsReader.java:42)
> at org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.restart(HighlightsViewFactory.java:167)
> at org.netbeans.modules.editor.lib2.view.ViewBuilder$FactoryState.init(ViewBuilder.java:1299)
> at org.netbeans.modules.editor.lib2.view.ViewBuilder.createViews(ViewBuilder.java:699)
> at org.netbeans.modules.editor.lib2.view.ViewBuilder.createReplaceRepaintViews(ViewBuilder.java:660)
> at org.netbeans.modules.editor.lib2.view.ViewUpdates.initParagraphs(ViewUpdates.java:206)
> at org.netbeans.modules.editor.lib2.view.DocumentViewOp.initParagraphs(DocumentViewOp.java:634)
> at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.ensureParagraphsChildrenAndLayoutValid(DocumentViewChildren.java:512)
> at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.ensureParagraphViewChildrenValid(DocumentViewChildren.java:268)
> at org.netbeans.modules.editor.lib2.view.DocumentViewChildren.viewToModelChecked(DocumentViewChildren.java:316)
> at org.netbeans.modules.editor.lib2.view.DocumentView.viewToModelNeedsLock(DocumentView.java:819)
> at org.netbeans.modules.editor.lib2.view.DocumentView.viewToModelChecked(DocumentView.java:806)
> at org.netbeans.modules.editor.lib2.view.EditorView.viewToModel(EditorView.java:316)
> at java.desktop/javax.swing.plaf.basic.BasicTextUI$RootView.viewToModel(BasicTextUI.java:1651)
> at java.desktop/javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1187)
> at java.desktop/javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1167)
> at java.desktop/javax.swing.plaf.basic.BasicTextUI.viewToModel(BasicTextUI.java:1144)
> at java.desktop/javax.swing.text.JTextComponent.viewToModel(JTextComponent.java:1436)
> at org.netbeans.modules.editor.hints.AnnotationHolder$4$1.run(AnnotationHolder.java:587)
> at org.netbeans.editor.BaseDocument.render(BaseDocument.java:1402)
> at org.netbeans.modules.editor.hints.AnnotationHolder$4.run(AnnotationHolder.java:571)
> at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:313)
> at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
> 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.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
> 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)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists