claude-code icon indicating copy to clipboard operation
claude-code copied to clipboard

[Bug] Windows Cygwin Path Conversion Failure on Non-Cygwin Systems

Open Danz17 opened this issue 2 weeks ago • 1 comments

Bug Description Command failed: cygpath -u 'C:\Users\Kratos\AppData\Local\Temp'

Environment Info

  • Platform: win32
  • Terminal: null
  • Version: 2.0.62
  • Feedback ID: 3cc71604-651e-432c-b964-cfe9d8f2ddb9

Errors

[{"error":"Error: Failed to create shell snapshot: Command failed: C:\\Program Files\\Git\\bin\\bash.exe -c -l SNAPSHOT_FILE='C:\\Users\\Kratos\\.claude\\shell-snapshots\\snapshot-bash-1765294553676-hnhkxo.sh'\n      # No user config file to source\n\n      # First, create/clear the snapshot file\n      echo \"# Snapshot file\" >| \"$SNAPSHOT_FILE\"\n\n      # When this file is sourced, we first unalias to avoid conflicts\n      # This is necessary because aliases get \"frozen\" inside function definitions at definition time,\n      # which can cause unexpected behavior when functions use commands that conflict with aliases\n      echo \"# Unset all aliases to avoid conflicts with functions\" >> \"$SNAPSHOT_FILE\"\n      echo \"unalias -a 2>/dev/null || true\" >> \"$SNAPSHOT_FILE\"\n\n      echo \"shopt -s expand_aliases\" >> \"$SNAPSHOT_FILE\"\n\n      \n      # Check for rg availability\n      echo \"# Check for rg availability\" >> \"$SNAPSHOT_FILE\"\n      echo \"if ! command -v rg >/dev/null 2>&1; then\" >> \"$SNAPSHOT_FILE\"\n      echo '  alias rg='\"''\\''C:\\Users\\Kratos\\.local\\bin\\claude.exe'\\'' --ripgrep'\" >> \"$SNAPSHOT_FILE\"\n      echo \"fi\" >> \"$SNAPSHOT_FILE\"\n  \n\n      # Add PATH to the file\n      echo \"export PATH=\\$PATH\" >> \"$SNAPSHOT_FILE\"\n  \n\n      # Exit silently on success, only report errors\n      if [ ! -f \"$SNAPSHOT_FILE\" ]; then\n        echo \"Error: Snapshot file was not created at $SNAPSHOT_FILE\" >&2\n        exit 1\n      fi\n    \n    at <anonymous> (B:/~BUN/root/claude.exe:1128:137)\n    at <anonymous> (B:/~BUN/root/claude.exe:1126:1887)\n    at exitHandler (node:child_process:109:27)\n    at emit (node:events:98:22)\n    at #maybeClose (node:child_process:778:16)\n    at #handleOnExit (node:child_process:532:72)\n    at processTicksAndRejections (native:7:39)","timestamp":"2025-12-09T15:35:54.019Z"}]

Danz17 avatar Dec 11 '25 20:12 Danz17


Found 3 possible duplicate issues:

  1. https://github.com/anthropics/claude-code/issues/9883
  2. https://github.com/anthropics/claude-code/issues/7528
  3. https://github.com/anthropics/claude-code/issues/12911

This issue will be automatically closed as a duplicate in 3 days.

  • If your issue is a duplicate, please close it and 👍 the existing issue instead
  • To prevent auto-closure, add a comment or 👎 this comment

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 11 '25 20:12 github-actions[bot]

This issue has been automatically closed as a duplicate of #9883.

If this is incorrect, please re-open this issue or create a new one.

🤖 Generated with Claude Code

github-actions[bot] avatar Dec 15 '25 09:12 github-actions[bot]