This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-09-10
Channels
- # announcements (9)
- # babashka (19)
- # beginners (39)
- # calva (7)
- # cherry (1)
- # cider (2)
- # clojure (31)
- # clojure-europe (8)
- # clojure-norway (9)
- # datalevin (10)
- # events (2)
- # fulcro (10)
- # hyperfiddle (9)
- # joker (1)
- # lsp (50)
- # membrane (34)
- # minecraft (2)
- # missionary (21)
- # off-topic (17)
- # pedestal (1)
- # polylith (8)
- # reitit (3)
- # sql (4)
- # squint (16)
- # xtdb (14)
anyone having any experience with kit-clj https://kit-clj.github.io/ ? They recommend Calva for beginners, but ... It seems the default setup for a new project is broken??? with Calva In the sense that LSP navigation (CTRL+ click on function) does not work with Jack-in .
Steps to reproduce: • Create the questbook demo project:
$ clojure -Ttools install com.github.seancorfield/clj-new '{:git/tag "v1.2.381"}' :as new
$ clojure -Tnew create :template io.github.kit-clj :name yourname/guestbook
• cd and start calva
• Jack in using :dev and :nrepl aliases
clojure -Sdeps '{:deps {nrepl/nrepl {:mvn/version,"1.0.0"},cider/cider-nrepl {:mvn/version,"0.28.5"}}}' -M:dev:nrepl
nREPL server started on port 33225 on host localhost -
nREPL 0.9.0
Clojure 1.11.1
OpenJDK 64-Bit Server VM 17.0.4+8-jvmci-22.2-b06
Interrupt: Control+C
Exit: Control+D or (exit) or (quit)
user=>
Open a file and try to Control Click - does not work.
If I Jack in to only :dev alias, LSP navigation works but Calva evaluate form does not work - since IMO Calva does not connect to the repl.
I imagine this is something related to integrant-repl or some other config but it's beyong meThe problem is the :main-opts
of the :dev
alias. If you remove that and jack in with only that alias, things work. You can also jack-in without modifying deps.edn
if you specify the :dev
and the :cider
aliases.
Let's fix this in Calva as well. https://github.com/BetterThanTomorrow/calva/issues/1859