Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

When following Quick Start, just seeing a blank line at times:

Bad:

`
$ clj --main cljs.main --compile hello-world.core --repl

ClojureScript 1.10.339
cljs.user=>
`

Good:

$ clj --main cljs.main --compile hello-world.core --repl Hello world! ClojureScript 1.10.339 cljs.user=>

3 Answers

0 votes
by

Comment made by: mfikes

Perhaps this is a duplicate of CLJS-2625

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-2907 (reported by mfikes)
0 votes
by
edited by

Actually, sometimes the REPL doesn't even appear and ClojureScript seems to be hanging.

For example, the browser has started and the "ClojureScript - Quick Start" page is being displayed but on the command line, no REPL:

$ clj --main cljs.main --compile hello-world.core --repl
Hello world!

You may sometimes get an

Exception in thread "Thread-16" java.net.SocketException: Broken pipe (Write failed)

instead.

This happens in particular when the browser is not already running (i.e. has to be started first, which takes a bit).

I suppose there are some timeouts which are too restrictive, the REPL is not started because of the SocketException, which is not always printed to add insult to injury. Maybe.

System:

ClojureScript 1.10.520
Clojure Version: 1.10.1.536
openjdk version "1.8.0_242"
Linux Fedora 30
Firefox 73.0.1 (64-bit)
SELinux permission looking good!

Additional Datapoint:

Currently trying the figwheel tutorial at https://figwheel.org/tutorial - there is no problem with REPL appearance so far even though the initial webpage is quite more complex.

...