Fork me on GitHub
#cursive
<
2016-01-28
>
misha12:01:56

greetings! it's about cursive + figwheel repl again. after following https://github.com/bhauman/lein-figwheel/wiki/Running-figwheel-in-a-Cursive-Clojure-REPL I get expected REPL output:

Starting nREPL server...
/Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/bin/java -Didea.launcher.port=7533 "-Didea.launcher.bin.path=/Applications/IntelliJ IDEA 15 CE.app/Contents/bin" -Dfile.encoding=UTF-8 -classpath
...
Figwheel: Starting server at 
Figwheel: Watching build - mybuild
Compiling "resources/public/js/main.js" from ["src" "script"]...
Compile sources, elapsed time: 2344.571071 msecs
Successfully compiled "resources/public/js/main.js" in 3.12 seconds.
...
Prompt will show when Figwheel connects to your application
To quit, type: :cljs/quit
cljs.user=>
but repl input text area is unresponsive, and after 2-3 minutes repl prints out: for debug:
cljs.user=> No nREPL ack received
Disconnected from the target VM, address: '127.0.0.1:61979', transport: 'socket'

Process finished with exit code 255
for run:
cljs.user=> No nREPL ack received
Choose focus build for CLJS REPL (default) or quit > 
Process finished with exit code 137

misha12:01:25

default in "Choose focus build for CLJS REPL (default)" is a

:cljsbuild {:builds [{:id "default"...

misha12:01:42

am I missing something basic? or is there a major issue with the setup? thanks

imre12:01:56

have you browsed to your web app from a browser?

misha12:01:06

yes, otherwise cljs.user=> would not show up

misha12:01:54

then it dies out as expected (browser console):

Figwheel: socket connection established
utils.cljs:38 Figwheel: trying to open cljs reload socket
socket.cljs:53 WebSocket connection to '' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

misha12:01:29

I assume that something is wrong" above" figwheel, because it compiles stuff, page gets rendered, etc.

misha12:01:26

https://github.com/cursive-ide/cursive/issues/842 suggests there might be a breakpoint, but I found none

imre13:01:09

I'm so puzzled that my slack crashed

misha13:01:52

! I messed up REPL settings lol. used use nREPL in normal JVM process instead of use clojure.main in normal JVM process -_-'

misha13:01:23

oh, the output just mirrors figwheel repl output, without built in pprint and syntax highlight harold

misha13:01:08

but autocomplete works. do recommend over plain figwheel repl