Fork me on GitHub
#calva
<
2022-09-10
>
Eugen21:09:33

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 .

Eugen21:09:50

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 me

pez21:09:39

Thanks for the repo!

👍 1
pez14:09:03

The 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.