This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-05-22
Channels
- # ai (1)
- # announcements (1)
- # babashka (9)
- # beginners (18)
- # calva (19)
- # clerk (136)
- # clj-http (3)
- # clj-kondo (13)
- # cljs-dev (166)
- # clojure (39)
- # clojure-europe (133)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-uk (12)
- # clr (1)
- # community-development (6)
- # conjure (8)
- # cursive (13)
- # data-science (1)
- # datomic (26)
- # events (5)
- # fulcro (12)
- # gratitude (3)
- # honeysql (9)
- # hyperfiddle (33)
- # introduce-yourself (6)
- # kaocha (1)
- # lambdaisland (5)
- # malli (4)
- # off-topic (3)
- # rdf (4)
- # re-frame (3)
- # releases (3)
- # scittle (11)
- # specter (2)
- # sql (4)
- # tools-deps (4)
- # vim (10)
can update this docstring now - remove "will become ..." https://github.com/clj-kondo/clj-kondo/blob/master/doc/linters.md#uninitialized-var
Seeting this with the latest clj-kondo release. Should it say what var is unresolved?
src/nextjournal/clerk/viewer.cljc:299:27: warning: Unresolved var:
offending expression is with line 299 being the middle one
(defn inspect-fn []
#?(:clj (->viewer-eval 'nextjournal.clerk.render/inspect-presented)
:cljs (eval 'nextjournal.clerk.render/inspect-presented)))
ah, it’s the hook we have on ->viewer-eval
. Is there a way for me to tell kondo that that’s a cljs var, not a clj one in the hook?
@U5H74UNSF Here is a potential fix but I'm not sure if this is the right one. What I'm doing here is just ignore the contents of ->viewer-eval
in the clj branch and expand to syntax-quote in the cljs branch:
https://github.com/nextjournal/clerk/pull/494