This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-10-16
Channels
- # announcements (5)
- # asami (4)
- # babashka (72)
- # beginners (241)
- # calva (15)
- # cider (2)
- # circleci (5)
- # clara (41)
- # clj-kondo (38)
- # cljsrn (4)
- # clojars (33)
- # clojure (283)
- # clojure-europe (41)
- # clojure-nl (9)
- # clojure-uk (11)
- # clojuredesign-podcast (14)
- # clojurescript (76)
- # conjure (12)
- # cryogen (42)
- # data-science (1)
- # datalog (6)
- # datomic (7)
- # depstar (10)
- # events (2)
- # figwheel-main (1)
- # fulcro (22)
- # funcool (1)
- # london-clojurians (1)
- # malli (8)
- # meander (11)
- # off-topic (12)
- # pathom (19)
- # re-frame (8)
- # reveal (34)
- # shadow-cljs (34)
- # sql (7)
- # vim (8)
- # xtdb (6)
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).
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
See this guide for some more info: https://clojure.org/guides/deps_and_cli
There's a full reference here: https://clojure.org/reference/deps_and_cli
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.ah, but i do see an error now, it is having issue retreieving "nrepl" from maven central.