rage-edit
rage-edit copied to clipboard
ENOENT error when child_process.spawn with options.stdio.stdin = 'ignore' on one Windows PC
Environment:
- Electron 2.0.14
- NodeJS 8.9.3
- Windows 10 Reproducable on only one Windows PC
In the electron console on one Windows PC of our customer:
-
options.stdio.stdin = 'pipe'
(default), no error. -
options.stdio.stdin = 'ignore'
, spawn *.exe ENOENT
I am searching upstream issue of this compatibility problem, but found nothing.
Related source code: https://github.com/MikeKovarik/rage-edit/blob/6e18ee85437f2b97d493b93de43ed1e9e1e2c117/src/util.mjs#L75
I patched my own copy like following:
var stdio = ['pipe', 'pipe', 'pipe']
var proc = cp.spawn(program, args, {stdio})
proc.stdin.end();
How do you think about this?
https://github.com/MikeKovarik/rage-edit/pull/18