This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-05
Channels
- # announcements (11)
- # architecture (22)
- # babashka (33)
- # beginners (15)
- # biff (8)
- # calva (7)
- # clj-otel (1)
- # cljs-dev (3)
- # cljsrn (5)
- # clojure (76)
- # clojure-art (1)
- # clojure-europe (36)
- # clojure-hamburg (3)
- # clojure-nl (1)
- # clojure-norway (7)
- # clojure-poland (12)
- # clojure-spec (2)
- # clojure-uk (7)
- # clojurescript (9)
- # cursive (22)
- # data-science (6)
- # datomic (7)
- # fulcro (9)
- # hoplon (14)
- # instaparse (2)
- # jobs-discuss (14)
- # london-clojurians (1)
- # matrix (32)
- # music (1)
- # nbb (8)
- # off-topic (18)
- # pathom (29)
- # pedestal (6)
- # portal (34)
- # reagent (2)
- # reitit (4)
- # releases (1)
- # sci (10)
- # shadow-cljs (7)
- # tools-deps (4)
- # vim (6)
Q: is there a way to configure Cursive to understand defn macros? e.g. here it is confused by the arity
yes I’ve already set the “resolve as” and that changes the auto-formatting so I know it’s working
but I’m guessing that the built in static analysis is confused by the :- syntax and thinks it’s > 1 arity
since it’s the same syntax as plumatic schema I’m hoping there’s a way to make it understand
Just checking - you told it to resolve as the schema defn, right? Not the normal one.
I don’t think I have the schema lib in my classpath, only Malli. Can I use schema/defn despite that? I’ll see if that works
Hey, I’m using Intellij IDEA with Cursive and the project is set up with shadow-cljs, but for some reason, it’s not able to resolve HELIX defonce
defn
defnc
, etc macros. Has anyone solved that problem?
https://github.com/lilactown/helix/blob/master/src/helix/core.clj#LL187C16-L187C16
Looks like you could hopefully just resolve that as defn: https://cursive-ide.com/userguide/macros.html#customising-symbol-resolution