Skip to content
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

error: unexpected argument '--ast' found #265

Closed
RensR opened this issue Mar 29, 2024 · 5 comments
Closed

error: unexpected argument '--ast' found #265

RensR opened this issue Mar 29, 2024 · 5 comments

Comments

@RensR
Copy link
Contributor

RensR commented Mar 29, 2024

Error unexpected argument '--ast' found when running aderyn without any modificatons or arguments. Fresh install of aderyn 0.0.18

➜  contracts git:(golf) ✗ aderyn                     
Detecting framework...
Framework detected: Foundry mode engaged.
Foundry root path: "."
error: unexpected argument '--ast' found
@TilakMaddy
Copy link
Collaborator

Please run foundryup

@RensR
Copy link
Contributor Author

RensR commented Mar 29, 2024

This error appears to be resolved in later versions of Foundry. Sadly, I cannot always run the latest due to Foundry's non-existent version management. Latest will be purged after a few days, and to maintain consistent results between CI and local we have it set to a frozen version which we update periodically. Do you know what the minimum Foundry version is, then I can update us to some long lives version after that point (if it even exists)

@TilakMaddy
Copy link
Collaborator

It was introduced here foundry-rs/foundry#7197

@TilakMaddy
Copy link
Collaborator

TilakMaddy commented Mar 29, 2024

I think this is the minimum version https://github.com/foundry-rs/foundry/releases/tag/nightly-de33b6af53005037b463318d2628b5cfcaf39916 (purely guessing because this was the immediate release following the merge foundry-rs/foundry#7197 )

@RensR RensR closed this as completed Mar 29, 2024
@TilakMaddy
Copy link
Collaborator

@RensR you could also set ADERYN_SKIP_BUILD=1 in env . Then aderyn will assume that the out folder with all the AST json files are ready so it will skip running the forge command.

(But I don't think it is going to help you yet because all the foundry profile stuff is not in place as things like out folder are still the defaults)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants