-
Notifications
You must be signed in to change notification settings - Fork 277
Stack too deep error without viaIR and 0% coverage #760
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
I had same issue. I solved this by using these options + solidity-coverage doesn't seems to support viaIR pipline |
Im having this problem too. No other optimizer options work. Without enabling viaIR i get "stack too deep", so i dont have a choice. |
Same problem here, see my comment on #715 (comment) |
I had same issue. It seems to me that turning off the inliner should not affect the coverage so much that the internal libraries are no longer inlined. In normal tests, I could not reproduce such logic, so it is probably the coverage that affects this case. |
same issue here. |
Same problem here... |
same here |
Could not check this answer, but hope it solves such a problem |
It doesn't @vladikopl01. ViaIR is necessary to compile due to Stack too deep errors. Then we lose the coverage. |
There is a proposed workaround here, but it seems it only worked for one user, certainly not for me. :/ |
Same issue here |
We were able to resolve our need for Once our workspace was imported into remix, we manually compiled each contract and monitored the output of the compiler. We identified a single mock file causing the issue. When the mock was removed and we disabled It would be awesome if errors and warnings are isolated to the individual file(s) causing them. That would have saved us a lot of time. I hope this helps! |
Closing this as duplicate, there's ongoing discussion at #715 |
Hello, need some help. Had the same problems with
stack too deep
error andviaIR
set istrue
as someone already reported. Done everything as you suggested but nothing helps.My
solcover.js
fileMy
hardhat.config.ts
fileI had solidity version 0.8.15 as you can see, hardhat version is ^2.11.2 and solidity-coverage version is ^0.8.2. Also, I have installed a typychain package with version ^8.1.0.
With such configuration I ran into such errors:
When
viaIR
is turned to true it has this output:Then I tried to find a workaround for this and set
yul
to true insolcOptimizerDetails
property insolcover.js
file and had this result:The text was updated successfully, but these errors were encountered: