From 06dba82dbdc00544961dbff8672190b2a3572337 Mon Sep 17 00:00:00 2001 From: swapnil <78632212+swapnilpaliwal-sd@users.noreply.github.com> Date: Sat, 10 Oct 2026 17:43:24 -0700 Subject: [PATCH] library auto: compile a dependency through bash, which Windows needs (#1918) ax_libs ran bin/axiomcode (a bash script) directly to compile each dependency; on Windows that is WinError 193, so --library auto staged nothing in any language. It now runs through AXIOMCODE_BASH (Git Bash on Windows) as every other script does. library-auto-discovers-imported-dependencies passes for python and javascript on macOS. Co-authored-by: axiomcode-bot[bot] <334110751+axiomcode-bot[bot]@users.noreply.github.com> --- plugins/axiomcode/skills/axiomcode/scripts/ax_libs.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/axiomcode/skills/axiomcode/scripts/ax_libs.py b/plugins/axiomcode/skills/axiomcode/scripts/ax_libs.py index aea467855..d0616ed7c 100644 --- a/plugins/axiomcode/skills/axiomcode/scripts/ax_libs.py +++ b/plugins/axiomcode/skills/axiomcode/scripts/ax_libs.py @@ -301,7 +301,8 @@ def compiled(src, engine, cache): return out log = out + '.log' os.makedirs(cache, exist_ok=True) - rc = subprocess.run([os.path.join(engine, 'bin', 'axiomcode'), 'parser', src, out, '--library'], + # bin/axiomcode is a bash script: run through bash, which Windows cannot do for it (WinError 193) + rc = subprocess.run([os.environ.get('AXIOMCODE_BASH') or 'bash', os.path.join(engine, 'bin', 'axiomcode'), 'parser', src, out, '--library'], stdout=open(log, 'w'), stderr=subprocess.STDOUT).returncode if rc != 0 or not is_ir(out): note(f'{src} did not compile (rc {rc}, see {log}); not staged')