rage-edit icon indicating copy to clipboard operation
rage-edit copied to clipboard

ENOENT error when child_process.spawn with options.stdio.stdin = 'ignore' on one Windows PC

Open asinbow opened this issue 6 years ago • 1 comments

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: image

  • 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?

asinbow avatar Dec 27 '18 06:12 asinbow

https://github.com/MikeKovarik/rage-edit/pull/18

asinbow avatar Jan 02 '19 01:01 asinbow