Fork me on GitHub

@oshyshko: You have a Clojure file open, and it looks like you’re putting clojurescript code into it.


You need to create a cljs file and put your ClojureScript in there.


@lsenta: Does the REPL hang, or IntelliJ itself?


I wrap the tests in a start luminus server / stop


I think I found the issue, luminus calls shutdown-agents during the stop


@lsenta: Does the same thing happen when using lein repl?


@cfleming: I've just retried with a .cljs file: the behaviour is exactly the same, I can attach to Figwheel via nRepl. After I do (cljs-repl), I can type directly into the REPL (and I see the browser executing my forms), however "Send top form to REPL" shortcut show that red error tooltip. Any ideas?


@oshyshko: There’s a dropdown in the REPL toolbar which allows you to tell Cursive that the REPL is either clj or cljs. Set that to CLJS and it should work if you’re sending forms from a .cljs file.


@cfleming How can I check that? I'm trying lein with-profile default,test repl but when I in-ns to my test module it's empty


It works fine with lein test-refresh for sure


@lsenta: You probably have to require the test ns when using lein, Cursive will auto-load it for you.


@cfleming Thanks, so yea it kills the REPL too


I get a

SocketException The transport's socket appears to have lost its connection to the nREPL server
at the end of the tests


After changing the code, looks like shutdown-agents was the issue


Opened a ticket in luminus, thanks for the help @cfleming !


@cfleming I've just double-checked that I am using [cljs] value for that dropbox. I am getting the red error (from my screenshot). Copy-and-pasting form directly into REPL text area works fine, sending from editor -- not working.


@cfleming could you possibly recommend me a step-by-step tutorial for setting Figwheel + Cursive + REPL, so I could follow it and figure out if I am doing anything wrong? Truth is, I discovered this problem with CLJS REPL over a year ago, it's still here and it is the only reason why I am still using La Clojure for CLJS development simple_smile


@oshyshko: It looks like you have a test project you used to create that screenshot above. Could you put it on Github so I can reproduce what you’re seeing?