This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-11
Channels
- # adventofcode (31)
- # announcements (6)
- # babashka (5)
- # beginners (93)
- # calva (15)
- # cider (20)
- # cljs-dev (16)
- # clojure (159)
- # clojure-berlin (1)
- # clojure-dev (5)
- # clojure-europe (9)
- # clojure-italy (9)
- # clojure-losangeles (2)
- # clojure-nl (26)
- # clojure-spec (7)
- # clojure-uk (33)
- # clojurescript (54)
- # clojutre (5)
- # cursive (20)
- # datomic (23)
- # emacs (19)
- # events (1)
- # expound (1)
- # figwheel-main (1)
- # fulcro (104)
- # hyperfiddle (1)
- # jobs (1)
- # luminus (10)
- # malli (59)
- # nrepl (1)
- # off-topic (11)
- # pathom (5)
- # planck (15)
- # reagent (13)
- # reitit (8)
- # rewrite-clj (10)
- # ring-swagger (3)
- # shadow-cljs (129)
- # tools-deps (46)
- # xtdb (14)
- # yada (1)
Hi, I'm running a re-frame application with cursive and I started a remote nREPL using the port that appears in the shadows-cljs logs. I changed the dropdown value from clj
to cljs
and I can evaluate expressions like (+ 1 1)
from the editor. However, when I try to evaluate (s/def ::id int?)
I get the following error:
Unexpected error (AssertionError) macroexpanding s/def at (/tmp/form-init7788612072615295307.clj:1:1).
Assert failed: (map? env)
any ideas? (I evaluated the (:require [cljs.spec.alpha :as s])
)I’m not sure, no. Do you have reason to think that this is Cursive-specific? If not #clojure might be a better place to ask.
Is there a way to set $CLJ_CONFIG
on a per-project basis? I’m trying to setup a monorepo style deps.edn project, where one shared deps.edn has :default-deps
and then there is a per-module deps.edn with empty version coordinates
There isn’t, but there should be and several people have asked about this. I’ll have a look and see if I can get it in the next EAP.

I’m not sure what utility :default-deps
even has if deps.edn doesn’t have an explicit notion of a parent deps.edn
not much right now
Out of curiosity, why does the Rename var action sometimes pop up a modal for renaming and other times do it inline? I vastly prefer the inline renaming since you can see what it's doing. It seems like there are several cases where the modal could be replaced with the inline rename.
It should only pop up the modal for renaming global things, i.e. vars. Locals should always be inline.
Renaming a
here opens a modal:
(defn example
[a]
(inc a))
Shouldn't that be considered a local?For some reason, certain namespaces appear twice in the namespace search. See the below screenshot where I am searching for "resour" and compute.data-model.resource-price
appears twice.