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 using debug on windows, forge debug uses a backslash to connect the absolute path, and the relative path to the file being compiled, causing the path to be malformed.
<REPO_PATH> and <RELATIVE_PATH> are substituted for the literal paths in this error.
2024-10-17T17:32:41.843446Z ERROR foundry_compilers_artifacts_solc::sources: error="C:/<REPO_PATH>\<RELATIVE_PATH_>/Contract.sol": The system cannot find the file specified. (os error 2) Error: failed to read artifact source file for <REPO_PATH>\<RELATIVE_PATH_>/Contract.sol
The text was updated successfully, but these errors were encountered:
Component
Forge
Have you ensured that all of these are up to date?
What version of Foundry are you on?
forge 0.2.0 (adb6aba 2024-10-17T00:23:10.989722000Z)
What command(s) is the bug in?
forge debug Contract.sol
Operating System
Windows
Describe the bug
When using debug on windows,
forge debug
uses a backslash to connect the absolute path, and the relative path to the file being compiled, causing the path to be malformed.<REPO_PATH> and <RELATIVE_PATH> are substituted for the literal paths in this error.
2024-10-17T17:32:41.843446Z ERROR foundry_compilers_artifacts_solc::sources: error="C:/<REPO_PATH>\<RELATIVE_PATH_>/Contract.sol": The system cannot find the file specified. (os error 2) Error: failed to read artifact source file for <REPO_PATH>\<RELATIVE_PATH_>/Contract.sol
The text was updated successfully, but these errors were encountered: