You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running zkforge zkbuild --use 0.8.20 --use-zksolc v1.4.0 on a contract with a solidity syntax error the compiler crashes:
$ RUST_BACKTRACE=full zkforge zkbuild --use 0.8.20 --use-zksolc v1.4.0
The application panicked (crashed).
Message: called `Result::unwrap()` on an `Err` value: Error("missing field `contracts`", line: 1, column: 316)Location: crates/common/src/zk_compile.rs:1165This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<empty backtrace>Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.Aborted (core dumped)
Output of forge build on the same project for reference:
$ forge build
[⠊] Compiling...
[⠒] Compiling 3 files with 0.8.20
[⠢] Solc 0.8.20 finished in 2.14ms
Error:
Compiler run failed:
Error (2314): Expected ';' but got '}'
--> src/NFT.sol:7:2:
|
7 | }
| ^
Was able to reproduce this with a few different types of solidity errors.
I have the same issue as you, too!! But it occurs when running the build command on any Solidity source, no matter if the code has correct syntax or no. I'm running Windows WSL, but @yohanelly95 is getting the same error on MacOS. (#285)
We are in the process of releasing a new version of our Foundry implementation that will handle these situations much better. I apologize for the inconvenience currently being experienced, as this is an early alpha version we appreciate the reported issue. We are tracking to make a pre-release of the new version this week.
Component
zkForge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
(normal) forge 0.2.0 (f9da73d 2024-03-24T00:18:58.485997283Z)
What command(s) is the bug in?
zkforge build
Operating System
Linux
Describe the bug
When running
zkforge zkbuild --use 0.8.20 --use-zksolc v1.4.0
on a contract with a solidity syntax error the compiler crashes:Output of
forge build
on the same project for reference:Was able to reproduce this with a few different types of solidity errors.
System Info:
zkforge version:
Compiled from source with command:
Rust version info:
Machine info:
The text was updated successfully, but these errors were encountered: