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 240543 - Error: Error: could not match input
Summary: Error: Error: could not match input
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Latte (show other bugs)
Version: 8.0
Hardware: All All
: P2 normal (vote)
Assignee: Ondrej Brejla
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-16 13:31 UTC by Martin Fousek
Modified: 2014-01-18 04:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206618


Attachments
stacktrace (6.56 KB, text/plain)
2014-01-16 13:31 UTC, Martin Fousek
Details
stacktrace (6.56 KB, text/plain)
2014-01-16 19:00 UTC, Martin Fousek
Details
file for reproducing (5.69 KB, application/octet-stream)
2014-01-17 08:14 UTC, Martin Fousek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2014-01-16 13:31:02 UTC
Build: NetBeans IDE Dev (Build 20140116-a359222bb565)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.45-b08, Java(TM) SE Runtime Environment, 1.7.0_45-b18
OS: Linux

User Comments:
marfous: into <a href="|"
on the caret position I wanted to write '${'




Stacktrace: 
java.lang.Error: Error: could not match input
   at org.netbeans.modules.php.latte.lexer.LatteMarkupColoringLexer.zzScanError(LatteMarkupColoringLexer.java:758)
   at org.netbeans.modules.php.latte.lexer.LatteMarkupColoringLexer.findNextToken(LatteMarkupColoringLexer.java:937)
   at org.netbeans.modules.php.latte.lexer.LatteMarkupLexer.nextToken(LatteMarkupLexer.java:68)
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:215)
   at org.netbeans.lib.lexer.EmbeddedTokenList.initAllTokens(EmbeddedTokenList.java:188)
   at org.netbeans.lib.lexer.EmbeddingOperation.embeddedTokenList(EmbeddingOperation.java:206)
Comment 1 Martin Fousek 2014-01-16 13:31:04 UTC
Created attachment 144031 [details]
stacktrace
Comment 2 Martin Fousek 2014-01-16 18:59:26 UTC
I'm afraid that amount of duplicated will increase pretty fast. It's quite blocker -> P2, sorry.
Comment 3 Martin Fousek 2014-01-16 19:00:48 UTC
Created attachment 144041 [details]
stacktrace

write '{' into latte
Comment 4 Martin Fousek 2014-01-17 08:14:09 UTC
Created attachment 144061 [details]
file for reproducing

I'm posting source where it happens to me. Several positions I marked with the '|' char. On all these places the '{' invokes this issue. Thanks in advance.
Comment 5 Ondrej Brejla 2014-01-17 16:07:07 UTC
Fixed in web-main #715112096d8e

Martine you can try it ;)
Comment 6 Martin Fousek 2014-01-17 16:34:46 UTC
(In reply to Ondrej Brejla from comment #5)
> Fixed in web-main #715112096d8e
> 
> Martine you can try it ;)

Great, I just rebuilt the module and I think that I will give it pretty extensive testing during the weekend. :)
Comment 7 Martin Fousek 2014-01-17 19:22:26 UTC
Looks great, no error appeared. Thanks.
Comment 8 Quality Engineering 2014-01-18 04:51:47 UTC
Integrated into 'main-silver', will be available in build *201401180001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/715112096d8e
User: Ondrej Brejla <obrejla@netbeans.org>
Log: #240543 - Error: Error: could not match input