[GH-ISSUE #77] Cake build fails #60

Closed
opened 2026-02-26 05:31:12 +03:00 by kerem · 2 comments
Owner

Originally created by @eeertekin on GitHub (May 27, 2013).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/77

Hi,

I have installed all necessary packages with npm (less browserify coffee-script mocha with global, and npm install in Log.io folder), but I'm getting error while trying to build with cake.

Am I missing something here ?

/home/eee/Log.io # cake build

Generating src/templates.coffee from templates/.html
Compiling src/
.coffee to lib/.js
Compiling test/
.coffee to test/lib/.js...
Compiling src/less/
to lib/log.io.css
Browserifying src/client.coffee to lib/log.io.js
Running tests...
Error: Parsing file /home/eee/Log.io/src/client.coffee: Line 1: Unexpected token ILLEGAL

/home/eee/Log.io/Cakefile:104
throw err;
^
Error: Command failed: ✖ 2 of 3 tests failed:

  1. LogServer should have no nodes or streams initially:
    expected [ 'server01', 'server02' ] to have a length of 0 but got 2

  2. WebClient waits for server connection...:
    Error: timeout of 2000ms exceeded
    at null. (/lib/node_modules/mocha/lib/runnable.js:167:14)
    at Timer.listOnTimeout as ontimeout

at ChildProcess.exithandler (child_process.js:637:15)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)

Originally created by @eeertekin on GitHub (May 27, 2013). Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/77 Hi, I have installed all necessary packages with npm (less browserify coffee-script mocha with global, and npm install in Log.io folder), but I'm getting error while trying to build with cake. Am I missing something here ? /home/eee/Log.io # cake build Generating src/templates.coffee from templates/_.html Compiling src/_.coffee to lib/_.js Compiling test/_.coffee to test/lib/_.js... Compiling src/less/_ to lib/log.io.css Browserifying src/client.coffee to lib/log.io.js Running tests... Error: Parsing file /home/eee/Log.io/src/client.coffee: Line 1: Unexpected token ILLEGAL /home/eee/Log.io/Cakefile:104 throw err; ^ Error: Command failed: ✖ 2 of 3 tests failed: 1) LogServer should have no nodes or streams initially: expected [ 'server01', 'server02' ] to have a length of 0 but got 2 2) WebClient waits for server connection...: Error: timeout of 2000ms exceeded at null.<anonymous> (/lib/node_modules/mocha/lib/runnable.js:167:14) at Timer.listOnTimeout [as ontimeout](timers.js:110:15) at ChildProcess.exithandler (child_process.js:637:15) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:735:16) at Process.ChildProcess._handle.onexit (child_process.js:802:5)
kerem closed this issue 2026-02-26 05:31:12 +03:00
Author
Owner

@blackrosezy commented on GitHub (Aug 26, 2013):

I'm also having the same problem. Any thoughts on this?

Here is the output:
Generating src/templates.coffee from templates/.html
Compiling src/
.coffee to lib/.js
Compiling test/
.coffee to test/lib/.js...
Compiling src/less/
to lib/log.io.css
Browserifying src/client.coffee to lib/log.io.js
Running tests...

/home/langkawi/Log.io/Cakefile:103
throw err;
^
Error: Command failed: â 1 of 3 tests failed:

  1. LogServer should have registered nodes & streams once connected:
    expected {} to have keys 'server01', and 'server02'
at ChildProcess.exithandler (child_process.js:637:15)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:735:16)
at Process.ChildProcess._handle.onexit (child_process.js:802:5)

npm ERR! weird error 8
npm ERR! not ok code 0

<!-- gh-comment-id:23248663 --> @blackrosezy commented on GitHub (Aug 26, 2013): I'm also having the same problem. Any thoughts on this? Here is the output: Generating src/templates.coffee from templates/_.html Compiling src/_.coffee to lib/_.js Compiling test/_.coffee to test/lib/_.js... Compiling src/less/_ to lib/log.io.css Browserifying src/client.coffee to lib/log.io.js Running tests... /home/langkawi/Log.io/Cakefile:103 throw err; ^ Error: Command failed: â 1 of 3 tests failed: 1) LogServer should have registered nodes & streams once connected: expected {} to have keys 'server01', and 'server02' ``` at ChildProcess.exithandler (child_process.js:637:15) at ChildProcess.EventEmitter.emit (events.js:98:17) at maybeClose (child_process.js:735:16) at Process.ChildProcess._handle.onexit (child_process.js:802:5) ``` npm ERR! weird error 8 npm ERR! not ok code 0
Author
Owner

@msmathers commented on GitHub (Aug 1, 2014):

This has been fixed in v0.3.4, there was a race condition in the server initialization that caused the functional tests to be brittle.

<!-- gh-comment-id:50854550 --> @msmathers commented on GitHub (Aug 1, 2014): This has been fixed in v0.3.4, there was a race condition in the server initialization that caused the functional tests to be brittle.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/log.io-NarrativeScience-old#60
No description provided.