I was using Vscode + Calva for developing Clojure. And I watch this and try to use Reveal with Calva.
I see this and add cider.nrepl/cider-middleware to middleware.
(I'm using this deps.edn
and just add cider/cider-nrepl {:mvn/version "0.26.0"}
and cider.nrepl/cider-middleware
. doc mentioned only cider.nrepl/cider-middleware
, but in my environment, without cider/cider-nrepl {:mvn/version "0.26.0"}
makes error. it saids no cider in classpath)
Here's my deps.edn.
:repl/reveal-light-nrepl
{:extra-deps {vlaaad/reveal {:mvn/version "1.3.212"}
nrepl/nrepl {:mvn/version "0.8.3"}
cider/cider-nrepl {:mvn/version "0.26.0"}}
:jvm-opts ["-Dvlaaad.reveal.prefs={:theme,:light,:font-family,\"https://ff.static.1001fonts.net/u/b/ubuntu.mono.ttf\",:font-size,32}"]
:main-opts ["-m" "nrepl.cmdline"
"--middleware" "[vlaaad.reveal.nrepl/middleware, cider.nrepl/cider-middleware]"]}
When I run clojure -M:repl/reveal-light-nrepl
, Reveal works fine.
Now I want to use it with my project with Calva.
I mean, clojure -M:repl/reveal-light-nrepl
is just standalone. not project integrated.
What should I do?
I think line in this might help.
And then jack-in choosing the deps.edn option and then pick the :reveal-nrepl-middleware alias.
But I don't know what it means. (I'm a Clojure newbie.) I know how to jack-in. But what I see is just choosing build option. I don't see reveal-nrepl-middleware.
Maybe I should look at Custom REPL Connect Sequences?