reveal

donavan 2024-06-28T11:50:54.382489Z

Does anyone have a working cider + nrepl + shadow-cljs + reveal setup 😄 I can’t quite get all the pieces working… I have cider + nrepl + shadow-cljs working (I can connect to a cljs repl, eval forms, etc) and I have cider + nrepl + reveal working (I can eval CLJ forms, tap> etc.). But what I would really like is to be able to tap from cljs. I can start a second reveal/remote-prepl (which creates a second reveal window, not ideal but ok) and then I get std out (I can prn from cljs and see the output in the second reveal window)

Gonzalo Rafael Acosta 2024-10-05T02:06:20.103629Z

though now I see that sometimes works and sometimes it does not work. Will add an issue to github.

donavan 2024-10-07T13:22:37.241579Z

That just allows one to tap from Clojure though right, not ClojureScipt?

Gonzalo Rafael Acosta 2024-10-07T15:24:00.651019Z

I could make it work for clojurescript. Shadow cljs switches the repl from clojure to clojurescript with the nrepl-select fn. But It worked once or twice.

donavan 2024-10-07T15:55:10.883999Z

I may very well be wrong but I still suspect this only taps from the CLJ runtime… 🤔 After posting this I started working on an actual CLJS runtime tap support that utilised shadow-cljs’s shadow.remote.relay.api but it’s still quite rough and breaks quite often.

Gonzalo Rafael Acosta 2024-09-29T00:16:58.772589Z

It worked for me just adding the reveal nrepl middleware https://vlaaad.github.io/reveal/setup#clj--nrepl-middleware to the shadow-cljs nrepl config https://shadow-cljs.github.io/docs/UsersGuide.html#nREPL