[ 
https://issues.apache.org/jira/browse/NETBEANS-3344?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Vincenzo Luongo updated NETBEANS-3344:
--------------------------------------
    Attachment: image-2019-11-05-15-19-57-841.png

> Crash editor php (blade laravel) index=5 >= size()=5
> ----------------------------------------------------
>
>                 Key: NETBEANS-3344
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-3344
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 11.2
>         Environment: fedora 30 x64
>            Reporter: Vincenzo Luongo
>            Priority: Major
>         Attachments: IDELOG, UILOG, image-2019-11-05-15-03-25-406.png, 
> image-2019-11-05-15-19-57-841.png
>
>
> Hi,
> i edit the blade file (php laravel file), this part
> {code:java}
> {{--@isAdmin
>  <li class="nav-item nav-text dropdown dropdown-menu-md pt-2">
>  <span style='color:white'> Language</span>
>  <select class="select2Init topSelectWholesallers" id="allLanguages">
>  @foreach($allLanguages as $language)
>  <option value="{{$language->id}}" @if($language->id==$currentLanguage) 
> selected @endif>{{$language->code}}</option>
>  @endforeach
>  </select>
>  </li>
>  @endisAdmin--}}{code}
> specifically, as soon as I add the first clip "{" before "{--"
> Crash
>  
>  
> {code:java}
> java.lang.IndexOutOfBoundsException: index=5 >= 
> size()=5java.lang.IndexOutOfBoundsException: index=5 >= size()=5 at 
> org.netbeans.lib.lexer.JoinTokenList.tokenList(JoinTokenList.java:170) at 
> org.netbeans.lib.lexer.JoinLexerInputOperation.tokenList(JoinLexerInputOperation.java:190)
>  at 
> org.netbeans.lib.lexer.JoinLexerInputOperation.fetchActiveTokenList(JoinLexerInputOperation.java:183)
>  at 
> org.netbeans.lib.lexer.JoinLexerInputOperation.createJoinToken(JoinLexerInputOperation.java:247)
>  at 
> org.netbeans.lib.lexer.JoinLexerInputOperation.createDefaultTokenInstance(JoinLexerInputOperation.java:212)
>  at 
> org.netbeans.lib.lexer.LexerInputOperation.createToken(LexerInputOperation.java:294)
>  at org.netbeans.spi.lexer.TokenFactory.createToken(TokenFactory.java:80) at 
> org.netbeans.spi.lexer.TokenFactory.createToken(TokenFactory.java:64) at 
> org.netbeans.lib.html.lexer.HtmlLexer.token(HtmlLexer.java:1543) at 
> org.netbeans.lib.html.lexer.HtmlLexer.token(HtmlLexer.java:1481) at 
> org.netbeans.lib.html.lexer.HtmlLexer.resolveValueToken(HtmlLexer.java:1464) 
> at org.netbeans.lib.html.lexer.HtmlLexer.nextToken(HtmlLexer.java:1392) at 
> org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:191)
>  at org.netbeans.lib.lexer.JoinTokenList.init(JoinTokenList.java:666) at 
> org.netbeans.lib.lexer.JoinTokenList.create(JoinTokenList.java:74) at 
> org.netbeans.lib.lexer.TokenListList.checkCreateJoinTokenList(TokenListList.java:147)
>  at org.netbeans.lib.lexer.TokenListList.<init>(TokenListList.java:106) at 
> org.netbeans.lib.lexer.TokenHierarchyOperation.tokenListList(TokenHierarchyOperation.java:478)
>  at 
> org.netbeans.lib.lexer.EmbeddingOperation.embeddedTokenList(EmbeddingOperation.java:174)
>  at org.netbeans.api.lexer.TokenSequence.embeddedImpl(TokenSequence.java:348) 
> at org.netbeans.api.lexer.TokenSequence.embedded(TokenSequence.java:295) at 
> org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveTheSequence(SyntaxHighlighting.java:438)
>  at 
> org.netbeans.modules.editor.lib2.highlighting.SyntaxHighlighting$HSImpl.moveNext(SyntaxHighlighting.java:416)
>  at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$Wrapper.fetchNextHighlight(DirectMergeContainer.java:600)
>  at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.updateMergeVars(DirectMergeContainer.java:337)
>  at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.nextMerge(DirectMergeContainer.java:303)
>  at 
> org.netbeans.modules.editor.lib2.highlighting.DirectMergeContainer$HlSequence.moveNext(DirectMergeContainer.java:234)
>  at 
> org.netbeans.modules.editor.lib2.highlighting.HighlightsReader.readUntil(HighlightsReader.java:59)
>  at 
> org.netbeans.modules.editor.lib2.view.HighlightsViewFactory.restart(HighlightsViewFactory.java:168)
>  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.paint(DocumentViewChildren.java:570)
>  at 
> org.netbeans.modules.editor.lib2.view.DocumentView.paint(DocumentView.java:695)
>  at 
> org.netbeans.modules.editor.lib2.view.EditorView.paint(EditorView.java:135) 
> at javax.swing.plaf.basic.BasicTextUI$RootView.paint(BasicTextUI.java:1434) 
> at javax.swing.plaf.basic.BasicTextUI.paintSafely(BasicTextUI.java:737) at 
> javax.swing.plaf.basic.BasicTextUI.paint(BasicTextUI.java:881) at 
> javax.swing.plaf.basic.BasicTextUI.update(BasicTextUI.java:860) at 
> javax.swing.JComponent.paintComponent(JComponent.java:780) at 
> javax.swing.JComponent.paint(JComponent.java:1056) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JViewport.paint(JViewport.java:728) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JLayer.paint(JLayer.java:433) at 
> javax.swing.plaf.LayerUI.paint(LayerUI.java:79) at 
> org.netbeans.core.multiview.SplitLayerUI.paint(SplitLayerUI.java:134) at 
> javax.swing.plaf.ComponentUI.update(ComponentUI.java:161) at 
> javax.swing.JComponent.paintComponent(JComponent.java:780) at 
> javax.swing.JLayer.paint(JLayer.java:428) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> org.netbeans.swing.tabcontrol.TabbedContainer.paint(TabbedContainer.java:969) 
> at javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> org.netbeans.core.windows.view.ui.MainWindow$1.paint(MainWindow.java:166) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JLayeredPane.paint(JLayeredPane.java:586) at 
> javax.swing.JComponent.paintChildren(JComponent.java:889) at 
> javax.swing.JComponent.paint(JComponent.java:1065) at 
> javax.swing.JComponent.paintToOffscreen(JComponent.java:5210) at 
> javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1579)
>  at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1502) 
> at 
> javax.swing.BufferStrategyPaintManager.paint(BufferStrategyPaintManager.java:306)
>  at javax.swing.RepaintManager.paint(RepaintManager.java:1272) at 
> javax.swing.JComponent._paintImmediately(JComponent.java:5158) at 
> javax.swing.JComponent.paintImmediately(JComponent.java:4969) at 
> javax.swing.RepaintManager$4.run(RepaintManager.java:831) at 
> javax.swing.RepaintManager$4.run(RepaintManager.java:814) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
>  at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:814) at 
> javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:789) at 
> javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:738) at 
> javax.swing.RepaintManager.access$1200(RepaintManager.java:64) at 
> javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1732) 
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at 
> java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758) at 
> java.awt.EventQueue.access$500(EventQueue.java:97) at 
> java.awt.EventQueue$3.run(EventQueue.java:709) at 
> java.awt.EventQueue$3.run(EventQueue.java:703) at 
> java.security.AccessController.doPrivileged(Native Method) at 
> java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74)
>  at java.awt.EventQueue.dispatchEvent(EventQueue.java:728) at 
> org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:136)[catch]
>  at 
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
>  at 
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
>  at 
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
>  at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at 
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at 
> java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
> {code}
>  



--
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

Reply via email to