This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-06-29
Channels
- # adventofcode (8)
- # babashka (12)
- # beginners (91)
- # calva (6)
- # cider (2)
- # circleci (11)
- # clj-kondo (19)
- # clojure (202)
- # clojure-australia (7)
- # clojure-brasil (1)
- # clojure-europe (123)
- # clojure-nl (2)
- # clojure-poland (24)
- # clojure-uk (6)
- # clojured (1)
- # clojurescript (91)
- # core-async (23)
- # cursive (16)
- # data-science (5)
- # datomic (26)
- # emacs (27)
- # events (2)
- # graalvm-mobile (50)
- # graphql (4)
- # honeysql (4)
- # instaparse (33)
- # lsp (24)
- # meander (22)
- # nrepl (3)
- # off-topic (26)
- # pedestal (1)
- # re-frame (15)
- # releases (1)
- # sci (1)
- # shadow-cljs (20)
- # tools-deps (22)
(alias 'sn (create-ns 'some-namespace))
::sn/foo ;=> :some-namespace/foo
... Unresolved namespace sn. Are you missing a require?
How to avoid this warning?
Note: there is no file some_namespace.clj
so I can't require it.
(alias 'sn (create-ns 'some-namespace))
::sn/foo ;; false positive
sn/foo ;; works
yes, this seems a bug, feel free to post an issueah no, I was fooled, clj-kondo only reports the first occurrence of the unresolved namespace
Ok, I will post an issue. Thx for workaround.
Are there any common causes for unsupported binding form errors to occur in code generated by hooks?
@suskeyhose it's usually best to just print the node to see what it looks like
Like right now I'm just putting a symbol into a vector used in an argument list to a fn
Yeah, I'm printing the node, and it looks fine
<list: (fn [] (fn [field value second item timestamp] [field value second item timestamp] [second field] {:type :http :method :get :body {:field field :value value :timestamp timestam}} ()))>
This is what's being generated
And it's saying timestamp
is an unsupported binding form.
Oh, I think I might know
I forgot to turn the symbol into a token node
yup, that was it