[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:

  1. Git is installed and working (git --version works everywhere)
  2. Bash is accessible from Command Prompt (bash --version works)
  3. C:\Program Files\Git\bin is added to both User and System PATH
  4. CLAUDE_CODE_GIT_BASH_PATH environment variable is set to C:\Program Files\Git\bin\bash.exe in 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_

View original on GitHub ↗

This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗