Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way how to script CoffeeScript with Node.js on Windows, .exec does not work. #2583

Closed
steida opened this issue Oct 13, 2012 · 3 comments
Closed
Labels

Comments

@steida
Copy link

steida commented Oct 13, 2012

On CoffeeScript compilation error, this script:

var exec = require('child_process').exec
var command = "node assets/js/dev/node_modules/coffee-script/bin/coffee --compile --bare --output      assets/js assets/js"
exec(command, function(err, stdout, stderr) {
    console.log(arguments)
})

Results in strange error.

{ '0': { [Error: Command failed: ] killed: false, code: 1, signal: null },
  '1': '',
  '2': '' }

Only in Windows. Mocha has a same problem. Stylus works. I don't know why and how to fix it.

@steida
Copy link
Author

steida commented Oct 13, 2012

It seems that it's related to process.exit(1);

@jashkenas
Copy link
Owner

CoffeeScript is exiting with a non-zero exit code when an error occurs. Would you like this behavior to be changed in some way?

@steida
Copy link
Author

steida commented Nov 30, 2012

It's related to this issue: nodejs/node-v0.x-archive#3584 Let's wait for Node 0.9.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants