Closed vittominacori closed 10 months ago
I can't see a problem with the mdreport
command, runs fine for me:
About the graph command, yes! Absolutely! I fucked up by leaving some variables being logged into the output for testing. Pushing a fix right now.
Should be fixed now! Pushed a hot fix into master moments ago! Sorry about that.
Thanks.
Graph solved after upgrading to 0.4.8 but still have issue with mdreport file hash.
I'm on MacOS with node v18.18.0 and npm 9.8.1.
Just tried with node v18.18 and it still works fine on my side. No idea why this is happening, probably something with your setup? Maybe the way you're passing in arguments in your scripts?
Did you try just running that command on your machine, instead of using your scripts?
Yes. If I force use v0.4.6 it works but not for v0.4.7 or v0.4.8.
hmmm, I really don't know what's happening 🤷
Will try to understand. I have this issue in all my repos with 0.4.8.
Updating to 0.4.7 solve my issue with solidity parser but I have now other issues.
As you can see in this commit it doesn't produce graph because I receive the following error
Error: <stdin>: syntax error in line 1 near '{'
and in mdreport it changed the file hash with[object Promise]
.To reproduce run
npx surya graph dist/SampleContract.dist.sol | dot -Tpng > analysis/control-flow/SampleContract.png
npx surya mdreport analysis/description-table/SampleContract.md dist/SampleContract.dist.sol