[BUG]
Resolved 💬 2 comments Opened Jan 14, 2026 by SandeshVasanth Closed Feb 27, 2026
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 Code extension not detecting Git Bash on Windows despite PATH and environment variable set
Environment:
- OS: Windows 10/11 (Version 10.0.26100.7623)
- VS Code Extension: Claude Code for VS Code v2.1.7
- Git Version: 2.52.0.windows.1
- Bash Version: 5.2.37(1)-release
Problem:
Claude Code shows error "Claude Code on Windows requires git-bash" even though:
- Git is installed and working (
git --versionworks everywhere) - Bash is accessible from Command Prompt (
bash --versionworks) C:\Program Files\Git\binis added to both User and System PATHCLAUDE_CODE_GIT_BASH_PATHenvironment variable is set toC:\Program Files\Git\bin\bash.exein both User and System variables
Steps Tried:
- Reinstalled Git
- Added Git\bin to PATH (User and System)
- Set CLAUDE_CODE_GIT_BASH_PATH environment variable
- Added
"claudeCode.gitBashPath"in VS Code settings.json - Uninstalled and reinstalled the extension
- Restarted computer multiple times
Error from Output Logs:
2026-01-14 16:12:24.641 [error] Failed to load config cache: Error: Claude Code on Windows requires git-bash
Nothing resolves the issue. The extension seems to not read the environment variable or PATH correctly.
What Should Happen?
it should detect BASH from claude code
Error Messages/Logs
Steps to Reproduce
bash is not detcting from claude code from VS code
Claude Model
None
Is this a regression?
I don't know
Last Working Version
_No response_
Claude Code Version
version 2.1.7
Platform
Anthropic API
Operating System
Windows
Terminal/Shell
VS Code integrated terminal
Additional Information
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗