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

forge coverage fails with Stack too deep while build is successful #3873

Closed
2 tasks done
gaspardthrl opened this issue Dec 11, 2022 · 3 comments
Closed
2 tasks done
Labels
C-forge Command: forge Cmd-forge-coverage Command: forge coverage T-bug Type: bug

Comments

@gaspardthrl
Copy link

Component

Forge

Have you ensured that all of these are up to date?

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.2.0 (e9f274d 2022-12-11T00:04:59.790449Z)

What command(s) is the bug in?

forge coverage

Operating System

macOS (Apple Silicon)

Describe the bug

Hi, I am facing an issue when running forge coverage as it tells me the following "CompilerError: Stack too deep".
I already checked #3527 and doesn't really help this case.
Indeed --via-ir doesn't help because of the AST.

The weird part is that when I run forge build everything works fine.

Does anyone have an idea of how to solve this issue ?

@gaspardthrl gaspardthrl added the T-bug Type: bug label Dec 11, 2022
@AlbertoCentonze
Copy link
Contributor

Same issue here, I would suggest updating the title since it doesn't describe the problem

@rkrasiuk rkrasiuk changed the title Projects builds correctly but forge coverage fails with Stack too deep while build is successful Dec 22, 2022
@rkrasiuk rkrasiuk added C-forge Command: forge Cmd-forge-coverage Command: forge coverage labels Dec 22, 2022
@PaulRBerg
Copy link
Contributor

Duplicate of #3357.

@onbjerg
Copy link
Member

onbjerg commented Feb 25, 2023

Closing as per above

@onbjerg onbjerg closed this as completed Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-forge Command: forge Cmd-forge-coverage Command: forge coverage T-bug Type: bug
Projects
None yet
Development

No branches or pull requests

5 participants