-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning in generated javascript code when using node 14 #2834
Comments
I can confirm the issue. And, it is not just only a warning, node express stops serving. So, this is critical issue. |
I believe this is already fixed in the latest master. |
Indeed this was fixed as part of the ES6 migration. |
Sure. Is ES6 is a big change? |
created milestone. Closing. Fixed by #2749 |
Yes, it changes the generated code, and is a major step towards an official Typescript version |
Hey folks, thanks for this! I cloned the repo, built it locally from the master branch, and then used the generated JAR to re-generate my parser. But there were no changes at all. Am I missing something here? |
It is fixed with #2931 |
great! when's this going to be released? in 4.9 or before? |
Hey folks, just as a data point for you: I tried this again and now it seems to work fine! I had to do some changes:
And some other things. But I guess all that will be documented in the release. Thanks for fixing this! |
Steps to reproduce:
Install node
v14.2.0
Download antlr 4.8
Create a basic grammar:
Generate javascript:
java -jar antlr4.jar -Dlanguage=JavaScript Grammar.g4 -o src
cd src && npm install antlr4
Require the lexer file:
node --trace-warnings -e 'require("./GrammarLexer")'
This does work, but shows a warning:
A similar error happens if you require
RuleContext
directly:node --trace-warnings -e 'require("antlr4/RuleContext")'
The text was updated successfully, but these errors were encountered: