Nodeclipse / nodeclipse

Nodeclipse-1 : Eclipse plugin for Node.js, PhantomJS development (Nodeclipse core plugin); Maven and Gradle (with Android) plugins
https://nodeclipse.github.io/
158 stars 76 forks source link

code with exec fails when running inside Eclipse on Windows #92

Closed tbenbrahim closed 10 years ago

tbenbrahim commented 10 years ago

Nodeclipse Core version 0.7.0.201311010637

require('child_process').exec('sc queryex', function (error, stdout, stderr) {
    console.log(stdout);
    console.log(error);
});

results in

{ [Error: spawn Unknown system errno 203]
  code: 'Unknown system errno 203',
  errno: 'Unknown system errno 203',
  syscall: 'spawn' }

Code runs fine from Windows command line.

paulvi commented 10 years ago

This must be similar problem to #81

Thanks for letting know.

paulvi commented 10 years ago

This won't be in 0.8 Help needed.

paulvi commented 10 years ago

Like #81 this issue ( #92 ) does not appear in Nodeclipse 0.4 (tested with Nodeclipse SDK https://sourceforge.net/projects/nodeclipse/files/Standard-Development-Kit/ ). It is regression since 0.5.

Both errors happen in spawn function block:
ChildProcess.prototype.spawn = function(options) { https://github.com/joyent/node/blob/master/lib/child_process.js#L902-L1046

paulvi commented 10 years ago

The example above works with https://github.com/Nodeclipse/nodeclipse-1/commit/70979f3a2020103e3c64af31b166e55fcc062d02 on Windows. As the remedy is the same, this is the same issue. Marked as duplicate. Please follow #81

paulvi commented 10 years ago

close with 0.11