-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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: --decode-internal
(and related flags --flamechart
/ --flamegraph
) only work when optimizer is explicitly turned off
#8986
Comments
--decode-internal
(and related flags --flamechart
/ --flamegraph
) only work when optimizer is explicitly turned off
Hi @akshatmittal thanks for your report Would you be able to provide a minimal reproduction that throws It will help us greatly narrow down the issue |
@zerosnacks Sure, here you go: https://github.com/uniswapfoundation/v4-template (I am working on a different codebase, but this starter repo has the same error)
|
cc @klkvr |
Error location: foundry/crates/evm/traces/src/debug/sources.rs Lines 85 to 111 in df2e91b
|
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (9a0f66e 2024-09-26T00:22:17.831423400Z)
What command(s) is the bug in?
No response
Operating System
None
Describe the bug
Any commands that utilizes
--decode-internal
(including--flamechart
and--flamegraph
) fail withfailed to parse source map: no previous offset
if optimizer isn't explicitly turned off.The command should either throw a more descriptive error asking to disable optimizer or disable it automatically when running the command.
The text was updated successfully, but these errors were encountered: