This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-26
Channels
- # announcements (1)
- # aws (6)
- # babashka (1)
- # beginners (109)
- # calva (22)
- # clj-kondo (21)
- # cljsrn (1)
- # clojure (68)
- # clojure-europe (41)
- # clojure-nl (2)
- # clojure-uk (5)
- # clojurescript (7)
- # core-logic (1)
- # data-science (4)
- # datomic (1)
- # events (1)
- # fulcro (25)
- # gratitude (1)
- # juxt (4)
- # keyboards (1)
- # malli (5)
- # minecraft (3)
- # missionary (9)
- # music (1)
- # nextjournal (7)
- # off-topic (7)
- # polylith (31)
- # re-frame (3)
- # reveal (7)
- # ring (11)
- # shadow-cljs (1)
- # spacemacs (4)
- # tools-build (5)
- # tools-deps (5)
- # xtdb (25)
Hey all, just wondering what the standard way to ‘load’ a clj file into my nrepl in Calva. Currently I put the cursor at the bottom of the file at the root of the project (core, or whatever), and then evaluate to cursor. Is there an alternative method? Happy to do solely from the repl if that’s a more typical way to do it. It’s been a few years since I’ve touched Clojure, so I’m a little rusty!
Hi there! There is a dedicated command for this. Calva: Load Current File and Dependencies (I think it is, something like that anyway). Also, thanks for the tips about using of evaluate-to-cursor like that. Will save me some keystrokes, I often select to the start of the file and then if I am not careful, I loose track of where I were.
Welcome back! I was probably not here when you left, so maybe I’m not the person to welcome you back. 😃 I hope Calva will treat you well!
Hi, I've been trialling calva - in Emacs I'm able to run tests that look roughly like this
(deftest test-eligibility-check-submitted-event
(harness/run {:commands [(harness/writer :a)
(harness/has-all-records? :b)]
:assertions-fn (fn [journal]
(let [records (get-in journal [:topics])]
(testing "foo bar"
(is (= 1 (count records))))}))
I don’t really understand the implications here. But, generally, I want Calva to handle the things CIDER handles (that’s why the name Calva), so an issue might be in place. However, this might be more general. We have many reports about “no tests found”. Please see if any issue on the repo might be already covering the problem before you file a new one. 😃