Fork me on GitHub

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 can't be resolved (argument types: unknown). Reflection warning, cider/nrepl/print_method.clj:58:1 - call to method write on can't be resolved (argument types: unknown).


Where are you seeing these warnings?


In the terminal window of VSCode.


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.


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.


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?


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


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.


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


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


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.


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


specified the maven server and then it worked.

🎉 3