File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { getPreferredSpawnConfig } from "@/node/utils/main/bashPath";
2222import { EXIT_CODE_ABORTED , EXIT_CODE_TIMEOUT } from "@/common/constants/exitCodes" ;
2323import { DisposableProcess } from "@/node/utils/disposableExec" ;
2424import { expandTilde } from "./tildeExpansion" ;
25+ import { log } from "@/node/services/log" ;
2526import {
2627 checkInitHookExists ,
2728 getInitHookPath ,
@@ -76,6 +77,13 @@ export abstract class LocalBaseRuntime implements Runtime {
7677 cwd : spawnCwd ,
7778 } = getPreferredSpawnConfig ( command , cwd ) ;
7879
80+ // Debug logging for Windows WSL issues
81+ log . info ( `[LocalBaseRuntime.exec] Original command: ${ command } ` ) ;
82+ log . info ( `[LocalBaseRuntime.exec] Original cwd: ${ cwd } ` ) ;
83+ log . info ( `[LocalBaseRuntime.exec] Spawn command: ${ bashCommand } ` ) ;
84+ log . info ( `[LocalBaseRuntime.exec] Spawn args: ${ JSON . stringify ( bashArgs ) } ` ) ;
85+ log . info ( `[LocalBaseRuntime.exec] Spawn cwd: ${ spawnCwd } ` ) ;
86+
7987 // If niceness is specified on Unix/Linux, spawn nice directly to avoid escaping issues
8088 // Windows doesn't have nice command, so just spawn bash directly
8189 const isWindows = process . platform === "win32" ;
You can’t perform that action at this time.
0 commit comments