Fork me on GitHub
Lucas Barbosa01:10:50

Hey folks! I am having troubles to make cider and shadow-cljs play nice together. When I perform a cider-jack-in-cljs from the shadow-cljs.edn file, I get a repl working. However, I cannot evaluate code inside .cljs files, nor switch to the repl buffer. I get a message saying: No cljs REPLs in current session "clojure/app:localhost:62659". More info in the thread.

Lucas Barbosa01:10:14

Project structure:

├── shadow-cljs.edn
└── src
    └── my
        └── app.cljs


 {:app {:target     :browser
        :output-dir "public/js"
        :asset-path "/js"
        :modules    {:main {:entries []}}}}

 {8000 "public"}}
(ns )

Lucas Barbosa01:10:46

repl buffer:

[:app] Configuring build.
[:app] Compiling ...
[:app] Build completed. (134 files, 1 compiled, 0 warnings, 1.92s)
To quit, type: :cljs/quit
[:selected :app]WARNING: No Clojure project was detected. The
refactor-nrepl middleware was not enabled. (You can mute this
warning by customizing `cljr-suppress-no-project-warning'.)


Have you connected to the app with the browser?

Lucas Barbosa13:10:07

Yep! Screen Shot 2019-10-21 at 10.04.39 (3).png

Lucas Barbosa13:10:40

When I cider-switch-to-repl-buffer from the shadow-cljs.edn file, It transports me to the repl buffer

Lucas Barbosa13:10:14

If I do it from a cljs file, it says No cljs REPLs in current session "clojure/acme-app:localhost:55074"

Lucas Barbosa13:10:25

(This is anothe sample project btw)

Lucas Barbosa13:10:40

I got in through a cider-jack-in-cljs -> localhost -> 55074 -> shadow -> :frontend


The web page is blank. It's your app showing a blank page?

Lucas Barbosa14:10:18

Yes, the html only has a script tag referencing the javascript build result

Lucas Barbosa14:10:44

I am just trying to setup a development environment


What do you have in the console of that page?

Lucas Barbosa14:10:56

a "Hello World" from my init-fn and two shadow-cljs messages, one saying "websocket connected" and other saying "repl session start successful"

Lucas Barbosa14:10:42

I can evaluate code at the repl buffer in Emacs. It sends the code to the browser and gets the result back. What I cant't do is evaluate code in the cljs buffer


Which version of shadow-cljs is this?

Lucas Barbosa14:10:31

I can't also perform a cider-switch-to-repl-buffer. It says "No cljs REPLs in current session", even though there is one

Lucas Barbosa14:10:52

One important detail is that the repl buffer says "clojure" instead of "clojurescript"

Lucas Barbosa14:10:22

> Which version of shadow-cljs is this? [email protected]


Try with 2.8.52


It's a temporary glitch in shadow right now. Being worked on.


so apparatently cider-nrepl will clone the nREPL session after it has been upgraded to CLJS. can anyone tell me why? pretty sure that most things aren't cloneable in a CLJS session


ie. sending 1 to one CLJS session and 2 to the clone will still affect the *1 of the first


Is it cider-nrepl or cider that does this? Cider, right?


hmm right, no clue. could be cider or cider-nrepl