codeparty/racer — Issue #4: racer examples and test
Author: cslarson
Created: 2011-12-13 17:49:15+00:00
State: open

Hi, i'm running ubuntu 11.10 and had trouble building redis-2.2.111-scripting (missing math headers) so resorted to redis unstable branch which appears to include scripting support. I'm unable to get any of the racer examples to work correctly
1. no Todos appear and can't add a new todo
2. "Letters" doesn't ever load in the browser
3. The pad appears, but with "undefined" in the text area and does not sync to another browser page on update.

The follwing lines are characteristic of the messages in the console when trying to update something in the apps model, either in the examples of in an app that I have written myself (based on the examples).
debug - websocket writing 5:::{"name":"txnErr","args":[{},"c.1"]}
debug - websocket writing 5:::{"name":"txnErr","args":[{},"c.2"]}
debug - websocket writing 5:::{"name":"txnErr","args":[{},"c.3"]}

When I run the racer tests with "make test" the following occurs and the tests do not complete (keyboard interrupt after the test stalls for a number of minutes):

100% 310 tests

.
uncaught undefined: Error: ERR Error running script (call to f_8ce78e66e229c050e8ff46a503279dfdce271e82): [string "func definition"]:2: attempt to index global 'os' (a nil value)
at RedisReplyParser. (/home/carl/src/racer/node_modules/redis/index.js:256:27)
at RedisReplyParser.emit (events.js:67:17)
at RedisReplyParser.send_error (/home/carl/src/racer/node_modules/redis/lib/parser/javascript.js:266:14)
at RedisReplyParser.execute (/home/carl/src/racer/node_modules/redis/lib/parser/javascript.js:125:22)
at RedisClient.on_data (/home/carl/src/racer/node_modules/redis/index.js:422:27)
at Socket. (/home/carl/src/racer/node_modules/redis/index.js:66:14)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:327:14)

uncaught undefined: Error: ERR Error running script (call to f_8ce78e66e229c050e8ff46a503279dfdce271e82): [string "func definition"]:2: attempt to index global 'os' (a nil value)
at RedisReplyParser. (/home/carl/src/racer/node_modules/redis/index.js:256:27)
at RedisReplyParser.emit (events.js:67:17)
at RedisReplyParser.send_error (/home/carl/src/racer/node_modules/redis/lib/parser/javascript.js:266:14)
at RedisReplyParser.execute (/home/carl/src/racer/node_modules/redis/lib/parser/javascript.js:125:22)
at RedisClient.on_data (/home/carl/src/racer/node_modules/redis/index.js:422:27)
at Socket. (/home/carl/src/racer/node_modules/redis/index.js:66:14)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:327:14)

uncaught undefined: Error: 'Lua lock script should return valid timeout and transaction count' timed out
at Object._onTimeout (/home/carl/src/racer/node_modules/expresso/bin/expresso:980:23)
at Timer.ontimeout (timers.js:84:39)

^C
Failure: Only 1 of 7 suites have been started

make: *** [test-serial-fast] Interrupt