Fork me on GitHub
#calva
<
2020-10-16
>
fadrian15:10:46

Jack in runs the following command line: C:\Windows\System32\cmd.exe /d /c lein update-in :dependencies conj [nrepl"0.8.2"] -- update-in :dependencies conj [clj-kondo"2020.04.05"] -- update-in :plugins conj [cider/cider-nrepl"0.23.0"] -- update-in [:repl-options^ :nrepl-middleware] conj '["cider.nrepl/cider-middleware"]' -- with-profile +dev repl :headless < Besides the normal messages I would expect, I am getting tons of messages of the form: ... Reflection warning, nrepl/util/completion.clj:175:5 - call to method contains can't be resolved (target class is unknown). Reflection warning, nrepl/util/completion.clj:186:35 - call to method startsWith can't be resolved (target class is unknown). Reflection warning, cider/nrepl/print_method.clj:41:1 - call to method write on http://java.io.Writer can't be resolved (argument types: unknown). Reflection warning, cider/nrepl/print_method.clj:58:1 - call to method write on http://java.io.Writer can't be resolved (argument types: unknown).

brandon.ringe16:10:08

Where are you seeing these warnings?

fadrian23:10:50

In the terminal window of VSCode.

brandon.ringe21:10:08

Hmm weird... I don't think I've ever experienced that. If you could create an issue with repro steps or maybe better yet, a repo with a sample project for repro, we can look more into it.

fadrian15:10:50

Any idea what's causing these? It looks like some inconsistency between the nrepl, clj-kondo, and cider libraries being used on the command line.

joel38019:10:55

I have a maven project mostly java, but some Clojure now. What do i need to do to be able to use Calva/REPL? It sounds like I need a "deps.edn" file? What do I put in this file?

brandon.ringe19:10:11

Hey Joel, you can just put an empty map in this file and Calva's jack-in will work, if you select Clojure CLI as the project type. If you want to have outside dependencies bought into this clojure/repl environment, you would add them to :deps in your deps.edn map

joel38019:10:59

i put this in, next to my "leaf" pom.xml

;; deps.edn
{:paths ["src/main/clojure"]
 :deps  {org.clojure/clojure {:mvn/version "1.10.1"}}}
It does now ask me what type I want and I click the Clojure CLI as the type. However ctrl-enter doesn't evaluate still.

joel38019:10:39

an output windows shows up, and the last line says: Jacking In...

joel38019:10:38

ah, but i do see an error now, it is having issue retreieving "nrepl" from maven central.

brandon.ringe20:10:33

Hmm that's odd, it's hard to really troubleshoot unless I have a repro project to try things with. If you can provide a similarly structured project in a github repo that also produces the error, I can look more into it.

brandon.ringe20:10:03

Well, maybe just paste the error here first so I can see what exactly it's saying

joel38006:10:00

specified the maven server and then it worked.