luminus

mokr 2022-03-23T07:13:18.287479Z

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.

pez 2022-03-23T07:44:45.133039Z

@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
❤️ 1
Ted Ciafardini 2022-08-25T19:30:50.236109Z

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

🙏 1
pez 2022-08-25T19:37:15.517919Z

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

okwori 2022-03-23T08:09:46.195849Z

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

👍 1