remy/nodemon — Issue #56: `nodemon app.coffee` executes CoffeeScript as JS
Author: davej
Created: 2012-01-18 12:09:49+00:00
State: open

When I run `nodemon app.coffee`, I get the following error:

$ nodemon app.coffee
18 Jan 12:06:59 - [nodemon] v0.6.6
18 Jan 12:06:59 - [nodemon] watching: /Users/dave/Sites/test
18 Jan 12:06:59 - [nodemon] starting `node app.coffee`

/Users/dave/Sites/test/app.coffee:1

# My app
^

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^

SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:427:25)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)

18 Jan 12:06:59 - [nodemon] app crashed - waiting for file changes before starting...

Obviously it looks like it's executing the CoffeeScript as raw js without first compiling it. I'm using nodemon 0.6.6.