Fork me on GitHub
#luminus
<
2022-03-23
>
mokr07:03:18

Hi, can anyone please remind me what I have to execute to switch a REPL to Clojurescript in an old (2018ish) Luminus+figwheel project? To avoid this message: Cannont load ClojureScript file into Clojure REPL I’ve connected IntelliJ/Cursive to the nREPL running on port 7002, but I simply do not remember what I had to execute before being allowed to load CLJS namespaces. I’m so used to shadow-cljs these days and there the equivalent is (shadow/repl :app) UPDATE: Seems (cljs) is what I was looking for. Thought it was more to it than that.

pez07:03:45

@mokr In Calva we use this to get legacy figwheel running.

(do (use 'figwheel-sidecar.repl-api) (if (not (figwheel-sidecar.repl-api/figwheel-running?)) (figwheel-sidecar.repl-api/start-figwheel!)) (figwheel-sidecar.repl-api/cljs-repl))
Is that what you need? Also, code similar to this could be in that Luminus project you have.

❤️ 1
gratitude 1
Ted Ciafardini19:08:50

This is what I’ve been looking for!!!! Hours spent trying to reliably connect to this cljs repl for a work project thanks2

🙏 1
pez19:08:15

You made me smile here, @U02QSGN57N1. Happy this little snippet could help!

okwori08:03:46

@mokr Use to skip my mind back then also. Here is a little gist I used: https://gist.github.com/Okwori/5f8fdd29e681fabbd367eb0b01b53708

👍 1