Closed debashish2014 closed 6 years ago
Nice catch. Actually, if you use version 4.7.1 this shouldn't happen, as I contributed a patch to ANTLR4 that fixes this.
Can you check if this solves your problem?
Thank you @oranoran. Will verify and let you know.
Hi @oranoran, I have verified it. It works properly with antlr4 v 4.7.1. Thank you 👍
Hi @oranoran,
There is an issue with below function of TokenSuggester. The atn property is not available in lexer file which is auto-generated by antlr4 ( v 4.7). It appears that in your project the lexer files in testGrammars folder currently have atn property defined which I believe is manually added, so the test cases are not failing.
If we use 'this._lexer._interp.atn.ruleToStartState' instead of 'this._lexer.atn.ruleToStartState' then it should work properly in all the cases.
Same applies to below function as well.