Fork me on GitHub
#reveal
<
2022-11-28
>
Casey17:11:29

Any tips on how I can go about making this happen? I usually start reveal using the nrepl middleware:

:cider-and-reveal {:extra-deps {vlaaad/reveal {:mvn/version "1.3.275"}
                nrepl/nrepl {:mvn/version "1.0.0"}
                cider/cider-nrepl {:mvn/version "0.28.5"}
                refactor-nrepl/refactor-nrepl {:mvn/version "3.5.2"}}
   :jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:dark,:font-family,\"\",:font-size,16}"]
   :main-opts ["-m" "nrepl.cmdline"
               "--middleware" "[vlaaad.reveal.nrepl/middleware,refactor-nrepl.middleware/wrap-refactor,cider.nrepl/cider-middleware]"]}

vlaaad17:11:02

is there any problem with this setup? Haven’t tried but looks fine to me

Casey14:11:01

This works great.. but this the setup I use to create/connect a normal clojure jvm repl. What I'm looking for is some way to run babashka's bb --nrepl-server , then run reveal in its own jvm process and have it connect to that nrepl server.

vlaaad19:11:04

Ah, no, there is no built-in support for connecting to remote nrepl servers

Casey20:11:47

borkdude said bb supports prepl. Maybe it's possible with prepl instead if nrepl?

Casey21:11:38

Hm but emacs doesn't support prepl.

Casey21:11:49

Sorry for this I feel like I'm doing a bad job at examining what I'm looking for. . The docs page I linked before says "Reveal can be used as a library, but it also can act as a REPL with Reveal output pane. It also includes nREPL middleware so it’s easier to use with nREPL." I'm not sure what it means to "act as a repl".

vlaaad08:11:00

Like clojure.main/repl , but with UI — vlaaad.reveal/repl