"java.net.ConnectException: Connection refused" when running node repl

Description

I used trampoline like so:

rlwrap lein trampoline run -m clojure.main scripts/repl.clj

run the script repl.clj with contents:

Instead of getting a repl, I got the exception: Exception in thread "main" java.net.ConnectException: Connection refused, compiling/home/brian/projects/essence-cljs-redux/scripts/repl.clj:3:30)

The full stack trace is attached in backtrace.txt.

Environment

Processor: 1.33GHz Intel Atom, Ubuntu 12.04, OpenJDK 1.7, Clojure 1.6.0, ClojureScript 0.0-2665, nodejs v0.10.26

Activity

Show:
David Nolen
January 8, 2015, 1:21 PM

The issue is that we use a 300ms timeout to connect to the Node.js process, we need to instead redirect the process out and wait for the Node.js REPL server start string.

David Nolen
February 12, 2015, 1:22 PM
Completed

Assignee

Unassigned

Reporter

import

Labels

Approval

None

Patch

None

Priority

Major