This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-06-16
Channels
- # ai (1)
- # announcements (3)
- # architecture (14)
- # aws (1)
- # babashka (8)
- # beginners (62)
- # biff (27)
- # calva (14)
- # clerk (6)
- # clj-kondo (6)
- # cljsjs (1)
- # clojure (59)
- # clojure-austin (1)
- # clojure-europe (15)
- # clojure-gamedev (5)
- # clojure-norway (246)
- # clojurescript (3)
- # community-development (5)
- # cursive (4)
- # data-science (6)
- # datomic (90)
- # events (1)
- # lambdaisland (1)
- # lsp (20)
- # matrix (1)
- # meander (6)
- # music (1)
- # off-topic (59)
- # pedestal (2)
- # releases (3)
- # shadow-cljs (90)
- # specter (6)
- # tools-build (5)
- # tools-deps (5)
- # xtdb (11)
If clj-kondo gives me incorrect unused-namespace
warning, what’s the best way to debug to find the root cause? I see that this namespace is being used within my macro that uses clj-kondo/lint-as 'clojure.core/def
setting so I’d expect it to be linted more or less correctly.
My debugging of the same issue usually ends up with me finding a shadowed var somewhere. 🙂
I currently don’t know how to give a repro. It is one file in the private repository that has this issue. I can experiment trying to find what’s triggering it but I’m wondering if I can collect some debug info somehow. Shadowed var sounds like a very plausible explanation even though so far I haven’t found it.
That’s a .clj
file.