small medium large xlarge

Back to: All Forums  CoffeeScript
200-g_pragsmall
20 May 2011, 08:49
Aleksey Gureiev (11 posts)

Hi, maybe it’s something you can help me with.

Just trying the following line gives me an error:

stdin = process.openStdin()
Error: Cannot resume() closed Socket.
    at Socket.resume (net.js:768:11)
    at EventEmitter.openStdin (node.js:192:21)
    at Object. (.:4:19)
    at Object. (.:5:4)
    at Module._compile (module.js:404:26)
    at Object.run (/Users/alg/local/lib/node_modules/coffee-script/lib/coffee-script.js:62:19)
    at /Users/alg/local/lib/node_modules/coffee-script/lib/command.js:120:29
    at Socket. (/Users/alg/local/lib/node_modules/coffee-script/lib/command.js:154:14)
    at Socket.emit (events.js:61:17)
    at Socket._onReadable (net.js:656:51)

It’s: node 0.4.7 + coffeescript 1.1.1

I’ll keep looking around, but just in case you hit that as well.

Cheers, Aleksey

Trevor_burnham__goofy_headshot__pragsmall
20 May 2011, 16:25
Trevor Burnham (54 posts)

It works fine for me on a Mac in the default bash shell, and I haven’t heard anyone else having problems. What OS and shell are you using?

I do get that error if I try to run the code from my editor; is that what you’re doing? The problem is that the editor’s built-in shell doesn’t really have stdin…

You must be logged in to comment