This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-23
Channels
- # announcements (1)
- # asami (2)
- # aws (15)
- # babashka (4)
- # beginners (42)
- # calva (8)
- # clj-kondo (7)
- # cljsrn (31)
- # clojure (64)
- # clojure-australia (4)
- # clojure-europe (40)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-uk (10)
- # clojured (1)
- # clojurescript (16)
- # conjure (4)
- # datomic (5)
- # defnpodcast (2)
- # events (1)
- # fulcro (61)
- # graphql (11)
- # honeysql (9)
- # jobs (3)
- # jobs-discuss (3)
- # lsp (65)
- # malli (3)
- # meander (4)
- # off-topic (5)
- # pathom (32)
- # podcasts-discuss (2)
- # polylith (2)
- # re-frame (30)
- # reitit (6)
- # remote-jobs (3)
- # ring (4)
- # shadow-cljs (19)
- # sql (28)
- # vim (1)
- # xtdb (21)
Mucking around with core.async:
(ns try-core-async.hotdog
(:require [clojure.core.async
:refer [<! >!! <! go chan]]
[clojure.tools.logging :refer [info]]))
(def echo-chan (chan))
(go (println (<! echo-chan)))
(>!! echo-chan "ketchup")
When I execute the last line in the repl, it happens once, and then the REPL / calva becomes unresponsive. Does anyone have any insight on this?echo-chan is unbuffered (0 length)
I’m not sure how that relates to the greater env but try it with (chan 1)
Ah. Thanks Alex. I was mixing up the behaviour of go
and go-loop
.
Also executing blocking operations in the REPL naturally blocks execution :man-facepalming: (like trying to >!! onto a full channel)
Does anyone use Kaocha with Calva to run tests?
I’m wondering how I should trigger a run of tests in the current namespace using the Kaocha runner. I can run tests with (kaocha.repl/run *ns*)
, but running “Calva: Run Tests for current namespace” from the command pallet doesn’t run them.
The Calva command for this runs the cider test runner. Maybe you can use a custom REPL command for this? https://calva.io/custom-commands/
Perfect. I’ll give that a go