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 222778 - IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previous() or it returned false (no more tokens) TokenSequence for text/x-latte-template at tokenIndex=0. TokenList contains 31 t
Summary: IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previo...
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-26 16:57 UTC by david541
Modified: 2012-12-03 16:06 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 180063


Attachments
stacktrace (1.61 KB, text/plain)
2012-11-26 16:57 UTC, david541
Details

Note You need to log in before you can comment on or make changes to this bug.
Description david541 2012-11-26 16:57:03 UTC
Build: NetBeans IDE 7.3 Beta 2 (Build 201211062253)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.5-b02, Java(TM) SE Runtime Environment, 1.7.0_09-b05
OS: Windows 8

Stacktrace: 
java.lang.IllegalStateException: Caller of TokenSequence forgot to call moveNext/Previous() or it returned false (no more tokens)
TokenSequence for text/x-latte-template at tokenIndex=0. TokenList contains 31 tokens:
*[ 0]: "{/**\n * @author YouCan.cz\n * @copyright (c) 2012, YouCan.cz\n * @package EuroShare.eu\n */\n\n{block content}" <0,105> LATTE[0] ProT, IHC=1728169507
T[ 1]: "\n\n" <105,107> HTML[2] ProT, IHC=296143626
T[ 2]: "<h" <107,109> HTML_TAG[3] ProT, IHC=1566312083
T[ 3]: "1" <109,110> HTML[2] ProT, IHC=1152634055
T[ 4]: ">" <110,111> HTML[2] ProT, IHC=2018066445
T[ 5]: "{block #title}" <111,125> LATTE[0] ProT, IHC=286020397
T[ 6]: "Aktuality" <125,134> HTML[2] ProT, IHC=1076410393
T[ 7]: "{/block}" <134,142> LATTE[0] ProT, IHC=827232823
T[ 8]: "</h" <142,145> HTML_TAG[3] ProT, IHC=492925483
T[ 9]: "1" <145,146> HTML[2] ProT, IHC=1754166302
T[10]: ">" <146,147> HTML[2] ProT, IHC=1617531698
T[11]: "\n" <147,148> HTML[2] ProT, IHC=859760913
T[12]: "{foreach $aktuality_a as $item}" <148,179> LATTE[0
   at org.netbeans.api.lexer.TokenSequence.checkTokenNotNull(TokenSequence.java:739)
   at org.netbeans.api.lexer.TokenSequence.offset(TokenSequence.java:254)
   at org.netbeans.modules.php.nette.editor.LatteBracesMatching.findMatches(LatteBracesMatching.java:198)
   at org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result._run(MasterMatcher.java:665)
   at org.netbeans.modules.editor.bracesmatching.MasterMatcher$Result.run(MasterMatcher.java:606)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1454)
Comment 1 david541 2012-11-26 16:57:15 UTC
Created attachment 128412 [details]
stacktrace
Comment 2 Miloslav Metelka 2012-12-03 16:06:49 UTC
This has to be fixed in LatteBracesMatching.