This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-03-28
Channels
- # announcements (34)
- # babashka (46)
- # beginners (187)
- # biff (2)
- # calva (5)
- # cider (10)
- # clj-http (2)
- # clj-kondo (14)
- # cljs-dev (31)
- # clojars (3)
- # clojure (43)
- # clojure-europe (25)
- # clojure-nl (1)
- # clojure-uk (3)
- # clojurescript (4)
- # clr (1)
- # cursive (1)
- # datalevin (50)
- # datomic (1)
- # emacs (12)
- # etaoin (6)
- # fulcro (7)
- # helix (21)
- # hyperfiddle (20)
- # kaocha (5)
- # lsp (14)
- # malli (10)
- # off-topic (58)
- # polylith (7)
- # portal (5)
- # reagent (39)
- # reitit (10)
- # releases (11)
- # reveal (14)
- # scittle (7)
- # shadow-cljs (58)
- # sql (8)
- # tools-deps (7)
Can anyone remind me please how to fix/bypass this message: "unsupported binding form". The code I have is:
(let [{promoter-oid :oid}
(system/with-tx [tx :admin-db]
(system/create-resource tx
"Promoter"
{:name "Test"}))
@U1WAUKQ3E This is presumably because you have:
:lint-as {system/with-tx clojure.core/let}
?This works fine for me:
(ns scratch
{:clj-kondo/config '{:lint-as {system/with-tx clojure.core/let}}}
(:require [system :as system]))
(let [{promoter-oid :oid}
(system/with-tx [tx :admin-db]
(system/create-resource tx
"Promoter"
{:name "Test"}))])
So I removed this macro from the lint-as
sections and it worked. Then I added it into the unresolved-symbol
section to mute warning for tx
vars and similar. Thank you again!
@U1WAUKQ3E I don't understand. This worked fine: https://clojurians.slack.com/archives/CHY97NXE2/p1679997538459489?thread_ts=1679997175.930999&cid=CHY97NXE2