Open adius opened 9 years ago
Could you provide a little bit more context? Your bug report doesn't provide much more info than the useless error message. :)
I think I can provide some more context because I'm running into this too. Basically, if there's a syntax error in a file(s) and you try to run a jake task you just get an error like
SyntaxError: Unexpected token :
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
Which really doesn't help you track anything down. Here's an example:
I have a jake task for launching my server
desc("Start server")
task("launch", function(){
jake.exec("nodemon server.js --watch src --watch server.js", {interactive: true}, function(){
complete();
})
})
If there's an error anywhere in my Jakefile I'll have to run the nodemon sever.js...
command manually in order to get the location of the syntax error. So somewhere along the lines Jake's swallowing all the error context.
EDIT: Sorry for the crappy formatting