Hi y'all! 👋
TL;DR: Leaving a ClojureScript REPL by :cljs/quit doesn't take me back to a working Clojure REPL. "Yep, that's how it is at the moment." or "Nope, that's not how it's supposed to be."?
The long story:
Using a simple setup (in fact, I just checked out https://github.com/bhauman/flappy-bird-demo-new at the end and added
:repl {
:dependencies [[cider/piggieback "0.6.0"]]
:repl-options {
:init-ns user
:nrepl-middleware [cider.piggieback/wrap-cljs-repl]}}
to the project.clj profiles) and running Leiningen 2.11.2, CIDER 1.18, Java Temurin-21.0.7+6 (build 21.0.7+6-LTS) on a Mac Silicon, I'm able to start a Clojure REPL (using cider-jack-in-clj), start Figwheel (using (figwheel.main.api/start "flappy")) and I get a working ClojureScript REPL. 🎉
The Emacs buffer also states *cider-repl (...) (cljs)*.
Leaving the ClojureScript REPL by :cljs/quit gets me a new REPL prompt looking like the Clojure REPL, but it's not working. And the Emacs buffer still states *cider-repl (...) (cljs)*. 🤔
I searched various bug databases of the various tools in this setup, but didn't find an issue. But I know that I'm not good in searching bug databases. 🙈
I can work around it, but I can't believe that I'm the only one facing this behaviour.
And I'm a little concerned that it's just a symptom of a much more serious problem in my setup.
Can anyone confirm this behaviour?If anyone can confirm or deny this behavior ⬆️ and happens to live near 🇩🇪 Bonn, Cologne or Siegburg, I'd be happy to buy you a drink for your support. 🤗 😄
Hi, i am not using figwheel from emacs so i cannot verify your case exactly.
But i can verify that :cljs/quit is not working for me either, it seems to just do nothing. Evaluating it in a shadow-cljs project works as expected
Thanks for having a look! 🙇 I owe you a drink.
Happy to help 🙂