PaulRBerg / foundry-template

Foundry-based template for developing Solidity smart contracts
MIT License
561 stars 110 forks source link

Message: failed to extract foundry config: #26

Closed bolabola closed 1 year ago

bolabola commented 1 year ago
forge init my-project --template https://github.com/PaulRBerg/foundry-template
cd my-project
pnpm install # install Solhint, Prettier, and other Node.js deps

I followed the steps above to create a project, but encountered an error when executing forge fmt.

The application panicked (crashed).
Message:  failed to extract foundry config:
foundry config error: Unknown evm version: paris for setting `evm_version`

Location: config\src\lib.rs:441

This is a bug. Consider reporting it at https://github.com/foundry-rs/foundry

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
PaulRBerg commented 1 year ago

Hi @bolabola, thanks for taking the time to report this issue.

I have just re-run the installation steps on my machine, and they worked. To help me debug this, could share the following information, please?

Also, I would suggest running foundryup and potentially re-installing Foundry itself, just to check that the problem is not due to using an outdated version of Foundry. See the installation instructions here:

https://github.com/foundry-rs/foundry/tree/a81d36f9e116fb9c1de6c7c4d5079590976ab2d8#installation

PaulRBerg commented 1 year ago

Closing due to inactivity.

OxMarco commented 1 year ago

Can confirm this issue is related to older versions of foundry, a simple foundryup will solve it