You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Windows cached tasks can skip Node CLI execution through PowerShell package shims #365
On Windows, a cached task that runs a package binary through the package-manager shim can complete without running the underlying Node CLI.
This appears to be exposed by the Windows .cmd shim to PowerShell .ps1 rewrite added in #345. The repro uses a local package binary and shows that direct Node invocation works while the cached PowerShell shim path does not.
On Windows, vp run shim:cached should run the package binary and produce both:
MARKER_STDOUT:shim-cached
and:
.markers/shim-cached.json
Actual behavior
On Windows, vp run shim:cached logs the task command:
$ marker-cli shim-cached
but does not print:
MARKER_STDOUT:shim-cached
and does not create:
.markers/shim-cached.json
The following control cases both work on Windows:
marker-cli shim-uncached with cache: false
node ./packages/marker-cli/bin/marker-cli.mjs node-cached with cache: true
The same workflow passes on Linux.
Related symptom / search keywords
In the original project where this was first noticed, the same Windows cached package-shim path sometimes opened a new terminal window and showed this process start error:
Error 2147942632 (0x800700e8) occurred while starting "<node.exe>" "<package cli js>"
I dug into this and the root cause appears to be simple: cached task execution sanitizes the environment on Windows and drops PATHEXT, so PowerShell package shims can fail to resolve node.exe.
I opened a minimal fix that preserves PATHEXT in the default Windows env passthrough: #366
Activity
SegaraRai commentedon Apr 28, 2026
I dug into this and the root cause appears to be simple: cached task execution sanitizes the environment on Windows and drops
PATHEXT, so PowerShell package shims can fail to resolvenode.exe.I opened a minimal fix that preserves
PATHEXTin the default Windows env passthrough: #366fix: preserve PATHEXT for Windows cached tasks (#366)