-
Notifications
You must be signed in to change notification settings - Fork 84
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
[Bug-Candidate]: crytic_compile.platform.exceptions.InvalidCompilation: Unknown file #585
Comments
Hi, can you share the codebase causing this? Otherwise it's difficult to debug it |
https://github.com/golemfoundation/octant-strategy-foundry-mix It contains private git submodule |
I cannot reproduce the issue. I'm running |
Please try this branch, but as I mentioned it contains private git submodule |
I see. I can't check it given that it's private and cannot build but it could be the same issue as in #572 and foundry-rs/foundry#7591. Basically check if in the build-info there is a file multiple times with different paths. In this case it should be about the src/errors.sol file. |
Thanks for your advice, I already checked them, but can't find solution there. |
The problem is in foundry generating multiple paths for the same file in the artifacts leading to crytic-compile crashing. It's an issue in foundry and for what i know there is not a real solution, you could try to move around the file or the way you import it but i'm not sure. To check if you are affected you should follow the description in the open foundry issue and see if you have multiple src/errors.sol paths. |
4a4dadc8e1f19b972069963e7e7a45e2.json |
Yes it's that issue.
|
How can I handle this issue? there is no solution? |
Describe the issue:
I got this error while running slither.
Also CI is failing with this error
Code example to reproduce the issue:
Version:
0.10.4
Relevant log output:
The text was updated successfully, but these errors were encountered: