[BUG] Claude can't resolve Git path (Win10)
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Claude says about the error in invoking tools: "Same error on all three tools (Bash, Write, Read). The Claude Code extension has a deep internal issue resolving the Git path with spaces on your Windows setup — nothing we set externally is fixing it within the current extension version. Here's where we stand: Grep and Glob work, but Read/Write/Bash don't".
I tried the suggested symlink method to eliminate the space in the PATH and SHELL definitions, as well as the suggested 8.3 filemame approach. Didn't work. I used up my entire linit just trying to fix this problem! Unimpressive.
What Should Happen?
Claude should at least be able to exlpain how to fix the issue, or better, fix it,
Error Messages/Logs
The error message Executable not found in $PATH: "C:\Program Files\Git\bin" means the Claude Code extension itself can't find the Git binaries it needs — and it's not picking up any PATH changes you've made.
A few things to check:
Is Git actually at that path? Open File Explorer and check if C:\Program Files\Git\bin\bash.exe exists.
Did VS Code fully restart? It needs to be completely closed (check Task Manager for lingering Code.exe processes) and reopened — not just the window reloaded.
Check the PATH from VS Code's terminal — open VS Code's integrated terminal and run:
echo %PATH%
See if C:\Program Files\Git\bin appears in the output.
Alternative: If Git is installed elsewhere (e.g., C:\Program Files (x86)\Git), the path would be different.
Steps to Reproduce
Happened on initial install on WIn10 using VS Code extension.
Claude Model
Sonnet (default)
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
Today's version. Like I said, I hit my limit, thanks a lot.
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
Other
Additional Information
Using VSCode latest, with Anthropic Claude extension.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗