-
Notifications
You must be signed in to change notification settings - Fork 119
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
Graphviz interpreter fails on syntax error? #76
Comments
why is this closed if it still does not work? |
Has this happened to you in the latest version, @guylando? Could you please point me to a code example where I could reproduce this crash? |
@GNSPS |
But do you happen to have the source for "MyContract.sol"? 😊 If you call it with an inexistent file as a parameter it should error out automatically and not output any Graphviz DAG. |
"If you call it with an inexistent file as a parameter it should error out automatically and not output any Graphviz DAG.", oh really?! surprising! |
So the "MyContract.sol" is actually a placeholder for the name of the contract whose inheritance you want to graph! Surya is actually working with your example contract. What I did: And it outputs a Graphviz valid file. There are other options to run Surya on your codebase, though. Some examples are:
|
This being said I don't think there actually is a bug here! 😄 But let me know if you still have troubles and I'll reopen the issue. |
this line is typical of other lines in graphviz generated files that begin with
subgraph
,except that the naming convention isn't maintained.
instead of:
we have
so it violates the observed naming convention in this autogenerated file, which returns a syntax error when run through
dot -Tpng
The text was updated successfully, but these errors were encountered: