Fork me on GitHub
#reveal
<
2022-07-20
>
AJ Snow16:07:27

hi all, I had a problem setting up a reveal nrepl in intellij with cursive using leiningen. I have now fixed the issue, but since I almost asked in here i'm going to post the solution i found in case someone else in the future faces these same problems. when running a cursive nrepl with lein, there were a number of different issues, listed as follows • Error loading nrepl.server: ...Error loading complete.core: ...Unable to resolve var: vlaaad.reveal.nrepl/middleware in this context(mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64') I will post the solutions I found in a reply in a moment.

AJ Snow16:07:17

The solution to the first two is to add two dependencies, nrepl and clojure-complete, to your reveal profile in project.clj. Example:

:repl {:dependencies [[nrepl "0.9.0"]
                                   [clojure-complete "0.2.5"]
                                   [vlaaad/reveal "1.3.273"]]
                    :repl-options {:nrepl-middleware
                                   [vlaaad.reveal.nrepl/middleware]}}
I believe the solution to the second two problems is related to having an m1 machine. The sdk I was using didn't seem to have the appropriate javafx support. I tried using the azul jdk found here: https://www.azul.com/downloads/?package=jdk After switching sdks everything now seems to work for me.

👍 1