-
Notifications
You must be signed in to change notification settings - Fork 277
0% coverage when using hardhat-foundry & foundry.toml is present #853
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
Comments
@jd1900 Am actively working on a patch that will let you use viaIR without any special config. If it works (fingers crossed) will ping this issue shortly (within next 2 days) to ask you to trial a beta of it. |
@jd1900 The patch is published at the
You should remove all the |
I've just tried it. It doesn't crash or complains about the stack too deep. |
@jd1900 I ran it against 1inch's solidity-utilities locally and it worked. Could you try running Also ... to make sure you've installed the correct version, you can check the version info at the top of your coverage run: Am happy to debug this if you can provide a public repo link or invite me to private repo. |
@jd1900 I've just opened a PR showing how I installed and ran on a fork of 1inch/solidity-utils here: It's passing and its coverage is identical to their master branch using 0.8.6. Could you compare what you are doing locally to this repo and find the relevant difference? |
That's what I did, the instructions you gave. But it just doesn't work, as shown above. |
@jd1900 Why is it working in solidity-utils and not in your project?
|
Closing via #854 because just published 0.8.7. If you can provide me with a reproduction case very happy to look into it though. |
@jd1900 Let's continue this discussion in this issue ... I don't want the other thread to become a chat for people who are unfamiliar with how github / providing reproduction cases work - sorry. Am going to delete that conversation so other people can quickly report what they see. You need to provide a simple of WAY OF REPRODUCING THE PROBLEM. A working repository with clear steps to reproduce the bug you're reporting. Otherwise it's impossible to debug. |
I've finally found the issue @cgewecke . When using foundry plugin and a "foundry.toml" exists, it leaves all as uncovered except for the interfaces. After removing this, it worked. |
@jd1900 Oh!! Very interesting, thanks so much for debugging this. (Am going to edit your issue title to reflect this discovery) |
This has been patched via #866 and should be fixed in v0.8.8. |
Great, I can confirm it's working now on my end. Thank you! |
After checking the new FAQ options on https://github.com/sc-forks/solidity-coverage/blob/master/docs/faq.md#running-out-of-stack I'm still having the same issue.
With Work-arounds #1 and #2 it compiles, but only the interfaces are covered. The rest at 0%.
With Work-around #3 I'm getting this error:
The text was updated successfully, but these errors were encountered: