-
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
Graph generation fails #190
Comments
Can you post the test Solidity file here so I can test locally, please? 🙏 |
now suddenly I got logs from the
@GNSPS I tired to write minimal test for this case but it apparently worked with mapping now. I have trouble providing the minimal sample of when code fails, so I can provide link to my repo. From where the |
From the error logs, I suspect the bug might be with the using for declaration and not with mappings. But I'll take a look, thanks! 🙏 |
Ahhh LOL, figured out quickly. I am not allowing using for declarations outside of contracts! 🙈 Back then it was not permitted in the grammar. I'll fix this. |
Done! 😄 👍 Thank you for reporting it! |
You can try v0.4.9 |
Thank you so much! 🎉 |
I am still not able to generate graphs on contracts with named mappings. I tried all the solutions on different threads but nothing seems to work. Back to manual graphs i guess |
Can you post here a Solidity snippet that fails? 🙏 |
As mentioned in #137 there is an issue generating graphs for contracts that has mappings declared. Using SolidityAuditor extension I was able to generate graph for file without mappings however using cmd not.
surya grap Test.sol | dot -Tpng > Test.png
output produces empty Test.png file.I am using MacOS.
Surya version:
0.4.8
Graphviz:
9.0.0
The text was updated successfully, but these errors were encountered: