calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
2020-10-16T15:55:46.335600Z

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

2020-10-17T23:35:50.394400Z

In the terminal window of VSCode.

bringe 2020-10-18T21:08:08.397500Z

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.

2020-10-16T15:56:50.336800Z

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.

bringe 2020-10-16T16:56:08.337Z

Where are you seeing these warnings?

Joel 2020-10-16T19:15:55.338700Z

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?

bringe 2020-10-16T19:29:11.338900Z

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

bringe 2020-10-16T19:29:21.339100Z

See this guide for some more info: https://clojure.org/guides/deps_and_cli

bringe 2020-10-16T19:29:39.339300Z

There's a full reference here: https://clojure.org/reference/deps_and_cli

Joel 2020-10-16T19:40:59.339500Z

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.

Joel 2020-10-16T19:42:39.339700Z

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

Joel 2020-10-16T19:48:38.339900Z

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

bringe 2020-10-16T20:29:33.340100Z

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.

bringe 2020-10-16T20:30:03.340500Z

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