josephg / ShareJS

Collaborative editing in any app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cake error: illegal # token of *.coffee

ysminnpu opened this issue · comments

I am trying the 0.6 tree, but got a weird issue with cake. It always reports illegal # token for any cakefile target. The following is a detailed log of "cake test". But if I directly execute "nodeunit tests.coffe" instead of from cake, it will succeed. Any idea?

$ cake --verbose test
Running tests... (is your webclient up-to-date and nodeunit installed?)

/home/vpdev/sharejs_try/ShareJS/tests.coffee:1
(function (exports, require, module, __filename, __dirname) { #
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:437:25)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at /home/vpdev/sharejs_try/ShareJS/node_modules/nodeunit/lib/nodeunit.js:75:37
at _concat (/home/vpdev/sharejs_try/ShareJS/node_modules/nodeunit/deps/async.js:513:13)
at async.forEachSeries.iterate (/home/vpdev/sharejs_try/ShareJS/node_modules/nodeunit/deps/async.js:123:13)
at async.forEachSeries (/home/vpdev/sharejs_try/ShareJS/node_modules/nodeunit/deps/async.js:139:9)
Some tests failed (error: 1). Try --verbose.

That code hasn't been updated in a long time - 0.7 is where its at now. Probably the cakefile spec has changed a little and the cakefile hasn't been updated. Patches welcome.