-
Notifications
You must be signed in to change notification settings - Fork 121
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
Parse error with named mapping #179
Comments
Hey @chalex-eth can you please try to uninstall surya and install again?
The reason why I suggest this is because there is a floating dependency on the parser and it might just be an old parser version. |
This doesn't work unfortunately |
Same error using OpenZeppelin v5 ERC20 implementation that uses named mapping.
|
ref: Consensys/vscode-solidity-auditor#137 @GNSPS might require a parser update to v0.16.x |
Updated! 🙏 Closing! |
did not work for me on first install. cleaning cache currently. we'll see if that helps
|
ah, was a new version not published @GNSPS ? |
yup. 2 years ago: https://www.npmjs.com/package/surya new pkg needs to be published to link it to solidity metrics and beyond |
Yep, sorry, was waiting for a PR fix from myself for Published a new "patch" version: v0.4.7, can you try now? 🙏 |
works! 🎉 |
Hello,
When running some surya function such as inheritance or graph on solidity code (> 0.8.18) that implement mapping we get a parse error.
Let's say the following mapping
Will result in
The text was updated successfully, but these errors were encountered: