Skip to content

bug(soldeer): forge clean command makes Foundry crash frequently #9667

Open
@Misbah-Engr

Description

@Misbah-Engr

Component

Forge

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

  • Foundry
  • Foundryup

What version of Foundry are you on?

forge 0.3.0 (3ba3d5f 2024-12-24T14:12:22.220751400Z)

What command(s) is the bug in?

Forge clean

Operating System

Windows

Describe the bug

The application panicked (crashed).
Message:  failed to extract foundry config:
foundry config error: data did not match any variant of untagged enum SoldeerDependencyValue for setting `dependencies.forge-std`

Location: crates/config/src/lib.rs:630

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

  ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
                                ⋮ 7 frames hidden ⋮
   8: core::panicking::panic_display::h2a303b1ddbc590db
      at <unknown source file>:<unknown line>
   9: foundry_config::Config::from_provider::{{closure}}::panic_cold_display::h836f2f0768093b28
      at <unknown source file>:<unknown line>
  10: foundry_config::Config::from_provider::h0bb1b3a972c42c07
      at <unknown source file>:<unknown line>
  11: foundry_config::Config::load_with_root::h48006686094fec1e
      at <unknown source file>:<unknown line>
  12: foundry_config::utils::load_config_with_root::ha51ccabc31531832
      at <unknown source file>:<unknown line>
  13: forge::main::hf4d07804f35029d9
      at <unknown source file>:<unknown line>
  14: std::sys::backtrace::__rust_begin_short_backtrace::h3a857313651447fb
      at <unknown source file>:<unknown line>
  15: main<unknown>
      at <unknown source file>:<unknown line>
  16: __libc_start_main<unknown>
      at <unknown source file>:<unknown line>
  17: _start<unknown>
      at <unknown source file>:<unknown line>

Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
Aborted (core dumped)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions