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 251837 - Error: Error: could not match input
Summary: Error: Error: could not match input
Status: RESOLVED FIXED
Alias: None
Product: javascript
Classification: Unclassified
Component: Jade (show other bugs)
Version: 8.1
Hardware: All All
: P1 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-15 08:01 UTC by terje7601
Modified: 2015-04-16 06:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216759


Attachments
stacktrace (5.73 KB, text/plain)
2015-04-15 08:01 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2015-04-15 08:01:31 UTC
This bug was originally marked as duplicate of bug 250538, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201504150001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b25
OS: Windows 7

User Comments:
terje7601: Opened a JavaScript file




Stacktrace: 
java.lang.Error: Error: could not match input
   at org.netbeans.modules.javascript2.jade.editor.lexer.JadeColoringLexer.zzScanError(JadeColoringLexer.java:1093)
   at org.netbeans.modules.javascript2.jade.editor.lexer.JadeColoringLexer.yylex(JadeColoringLexer.java:2063)
   at org.netbeans.modules.javascript2.jade.editor.lexer.JadeColoringLexer.nextToken(JadeColoringLexer.java:793)
   at org.netbeans.modules.javascript2.jade.editor.lexer.JadeLexer.nextToken(JadeLexer.java:77)
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:215)
   at org.netbeans.lib.lexer.BatchTokenList.tokenOrEmbeddingImpl(BatchTokenList.java:196)
Comment 1 terje7601 2015-04-15 08:01:33 UTC
Created attachment 153203 [details]
stacktrace
Comment 2 Petr Pisl 2015-04-15 08:11:57 UTC
Strange, this lexer should be used only for files with .jade extension. Do you have a .jade file in your project? If yes, could you try to open it, whether it caused this exception? Thanks
Comment 3 terje7601 2015-04-15 08:50:59 UTC
Yes, thanks for the hint. To reproduce:

- create a new Node.js Application
- add the following in "dependencies" of package.json:
"commonmark": "^0.18.1"
- do npm install
- there are 4 .jade files under node_modules now:
commonmark/dingus/bower_components/ace/demo/kitchen-sink/docs/jade.jade
commonmark/dingus/bower_components/ace/doc/template/jade/common_layout.jade
commonmark/dingus/bower_components/ace/doc/template/jade/layout.jade
commonmark/dingus/bower_components/ace/doc/template/jade/lib.jade

The error occurs in the last file: "lib.jade"
Comment 4 Petr Pisl 2015-04-15 09:14:20 UTC
Thanks a lot, I can reproduce it.
Comment 5 Petr Pisl 2015-04-15 09:23:33 UTC
Inclreasing priority. When you open such file, the ide starts to be unusable.
Comment 6 Petr Pisl 2015-04-15 09:30:42 UTC
It's cased by this line:

mixin short_description_list(collection)

where are used underscores in the name of mixin. The underscores are not handled.
Comment 7 Petr Pisl 2015-04-15 09:44:43 UTC
Another problem in this:

mixin clever-name

The mixin name should not contain minus char.
Comment 8 Petr Pisl 2015-04-15 11:30:36 UTC
Fixed in web-main. Will be available in the next dev build.
Comment 9 Quality Engineering 2015-04-16 06:36:48 UTC
Integrated into 'main-silver', will be available in build *201504160452* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/429503619d68
User: Petr Pisl <ppisl@netbeans.org>
Log: #251837 - Error: Error: could not match input