-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Description
The claude-commit extension is currently unusable on a native Windows environment due to two related issues:
- Default execution fails: By default, the extension attempts to execute the
claudecommand via/bin/bash, a path that does not exist on Windows. This results in aspawn /bin/bash ENOENTerror. - Custom path execution fails: Attempting to work around this by providing a direct, valid Windows path to the
claudeexecutable in the settings also fails. The extension wraps the provided path in single quotes ('...') when validating it with the--versioncommand. This syntax is invalid for the Windows shell (cmd.exeorPowerShell), causing a file syntax error.
My local installation of claude-cli is correct and fully functional, as I can run it manually from the command line without any issues.
Steps to Reproduce
This bug manifests in two ways:
Scenario 1: Using the default (empty) path
- Install the
claude-commitextension in VS Code on a Windows machine. - Ensure
claude-cliis installed and accessible in the system's PATH. - Leave the "Claude CLI Path" setting empty.
- Stage changes in a Git repository and click the "Claude Commit" icon.
- Result: The following error appears:
Error: Failed to generate commit message: Claude CLI execution failed: spawn /bin/bash ENOENT
Scenario 2: Providing a custom Windows path
- In the extension settings, set the "Claude CLI Path" to a valid Windows path (e.g.,
C:\Users\g_dum.A15GDM2023\scoop\apps\nodejs-lts\current\bin\claude). - Stage changes and click the "Claude Commit" icon.
- Result: A different error appears, related to command syntax:
Error: Failed to generate commit message: Custom Claude CLI path not valid: C:\\Users\\g_dum.A15GDM2023\\scoop\\apps\\nodejs-lts\\current\\bin\\claude - Command failed: 'C:\\Users\\g_dum.A15GDM2023\\scoop\\apps\\nodejs-lts\\current\\bin\\claude' --version La syntaxe du nom de fichier, de répertoire ou de volume est incorrecte.
Proof of Correct Local Installation
To confirm the issue is not with my local environment, I can execute the command successfully directly in my terminal:
PS C:\Users\g_dum.A15GDM2023\scoop\apps\nodejs-lts\current\bin> .\claude --version
1.0.102 (Claude Code)Environment
- Operating System: Windows 11
- VS Code Version: 1.103.2
- Extension Version: 1.0.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels