This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-07-20
Channels
- # announcements (1)
- # asami (19)
- # beginners (6)
- # biff (1)
- # cljs-dev (3)
- # clojure (27)
- # clojure-europe (7)
- # clojure-gamedev (4)
- # clojure-hungary (47)
- # clojure-nl (5)
- # clojure-norway (29)
- # clojure-uk (5)
- # clojurescript (23)
- # data-science (1)
- # emacs (36)
- # events (3)
- # fulcro (22)
- # graphql (1)
- # gratitude (1)
- # introduce-yourself (3)
- # lsp (5)
- # nbb (7)
- # off-topic (68)
- # other-languages (2)
- # pathom (5)
- # reagent (4)
- # reitit (10)
- # remote-jobs (2)
- # reveal (2)
- # ring (1)
- # shadow-cljs (46)
- # spacemacs (15)
- # tools-deps (4)
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.
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.