-
Notifications
You must be signed in to change notification settings - Fork 263
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
Cannot parse some solc 0.6.x language features. #464
Comments
From this comment, it looks like Consensys Dillegence took up maintenance of the antlr parser in their own fork. It'd be great for coverage to upgrade and support 0.6, since migrating to this version is a complex process that could easily introduce errors (see the PR for the OpenZeppelin Contracts initial migration). |
Ok, yes - will do this now and publish over the weekend. Was waiting a bit to see how things unfolded in parser-antlr but it looks like the diligence fork is the simplest way forward atm. Is there a Zeppelin branch where you are no longer using the rotcivegaf fork of solidity-coverage? |
No, in the end we never got around to migrating to v7, sorry about that. The I suspect it wouldn't be too hard to support coverage in that scenario, the issues we found come up when we try to generalize the solution for any Test Environment setup, particularly those with parallel tests. |
Oh no worries - I will just run the new parser over the contracts in |
Cross-ref note: Looks like diligence resolved all the syntax issues listed in the initial comment. There's a problem parsing PR to resolve at consensys/solidity-antlr4 3 |
With the caveat about |
Contracts which use new syntax crash the parser:
leave
Fixing this will require updates to the antlr grammar and solidity-parser-antlr.
Example error reported in gitter by cyril lapinte
The text was updated successfully, but these errors were encountered: