Skip to content
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

Debug uses backslash in path when compiling #9136

Open
2 tasks done
gtech opened this issue Oct 17, 2024 · 0 comments
Open
2 tasks done

Debug uses backslash in path when compiling #9136

gtech opened this issue Oct 17, 2024 · 0 comments
Labels
T-bug Type: bug T-needs-triage Type: this issue needs to be labelled

Comments

@gtech
Copy link

gtech commented Oct 17, 2024

Component

Forge

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

  • Foundry
  • Foundryup

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

@gtech gtech added T-bug Type: bug T-needs-triage Type: this issue needs to be labelled labels Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-bug Type: bug T-needs-triage Type: this issue needs to be labelled
Projects
Status: Todo
Development

No branches or pull requests

1 participant