Upgrade to chevrotain 7
See original GitHub issueWhy ?
We should try to have latest versions of our libs to include easily their improvements (bugs, enhancements, etc.)
What ?
I tried to upgrade, but ran into an error:
jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js:184
throw e;
^
TypeError: Cannot read property 'location' of undefined
at JavaParser.TreeBuilder.cstPostNonTerminal (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/tree_builder.js:160:73)
at JavaParser.cstPostNonTerminal (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/packages/java-parser/src/parser.js:81:11)
at JavaParser.RecognizerEngine.subruleInternal (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js:423:18)
at JavaParser.RecognizerApi.SUBRULE (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_api.js:72:21)
at JavaParser.<anonymous> (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/packages/java-parser/src/productions/interfaces.js:241:7)
at JavaParser.invokeRuleWithTry (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js:117:33)
at JavaParser.wrappedGrammarRule [as annotation] (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js:131:38)
at JavaParser.RecognizerEngine.doSingleRepetition (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js:385:16)
at JavaParser.RecognizerEngine.manyInternalLogic (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js:318:29)
at JavaParser.RecognizerEngine.manyInternal (/Users/clementdessoude/Documents/dev/jhipster/prettier-java/node_modules/chevrotain/lib/src/parse/parser/traits/recognizer_engine.js:295:21)
Issue Analytics
- State:
- Created 3 years ago
- Comments:22 (22 by maintainers)
Top Results From Across the Web
How to upgrade Chevrotain in VRMLLoader - Stack Overflow
I've filed a PR at GitHub in order to upgrade chevrotain to the latest version 9.0.1 , see https://github.com/mrdoob/three.js/pull/21694.
Read more >chevrotain - npm
Chevrotain is a high performance fault tolerant javascript parsing DSL for building recursive decent parsers. Latest version: 10.3.0, last published: a ...
Read more >changes/CHANGELOG.md - Chevrotain
7.1.2 (2-23-2021). Patch release after migration to new github org with updated metadata in package.json ... 7.0.0 (4-18-2020). # Breaking Changes.
Read more >Pull requests · Chevrotain/chevrotain - GitHub
dependencies Pull requests that update a dependency file. #1864 opened in 7 hours by renovate bot. Loading… 1 task. chore(deps): update dependency ...
Read more >chevrotain - UNPKG
... "Chevrotain is a high performance fault tolerant javascript parsing DSL for building recursive decent parsers",. 5, "keywords": [. 6, "parser",. 7 ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
There was a conditional inside the
cstPostNonTerminal
method. It seems to have been removed in newer versionsTry putting the
super
call inside the conditional check in the override of the JavaParserStarting with 200, which can be increased if it’s a lot of work