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.
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)
Created attachment 153203 [details] stacktrace
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
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"
Thanks a lot, I can reproduce it.
Inclreasing priority. When you open such file, the ide starts to be unusable.
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.
Another problem in this: mixin clever-name The mixin name should not contain minus char.
Fixed in web-main. Will be available in the next dev build.
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