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

bug(debugger): forge debug uses backslash in path when compiling on Windows #9136

Open
2 tasks done
gtech opened this issue Oct 17, 2024 · 0 comments
Open
2 tasks done
Labels
A-debugger Area: debugger P-low Priority: low T-bug Type: bug T-to-investigate Type: to investigate T-to-reproduce Type: requires reproduction
Milestone

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
@github-project-automation github-project-automation bot moved this to Todo in Foundry Oct 17, 2024
@zerosnacks zerosnacks added A-debugger Area: debugger T-to-reproduce Type: requires reproduction labels Oct 21, 2024
@zerosnacks zerosnacks changed the title Debug uses backslash in path when compiling bug(debugger): forge debug uses backslash in path when compiling on Windows Oct 21, 2024
@zerosnacks zerosnacks added T-to-investigate Type: to investigate and removed T-needs-triage Type: this issue needs to be labelled labels Oct 21, 2024
@grandizzy grandizzy added this to the v1.0.0 milestone Nov 7, 2024
@grandizzy grandizzy added the P-low Priority: low label Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debugger Area: debugger P-low Priority: low T-bug Type: bug T-to-investigate Type: to investigate T-to-reproduce Type: requires reproduction
Projects
Status: Todo
Development

Successfully merging a pull request may close this issue.

4 participants
@gtech @grandizzy @zerosnacks and others