This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-06
Channels
- # announcements (16)
- # aws (9)
- # babashka (76)
- # beginners (92)
- # boot (1)
- # cider (18)
- # clara (7)
- # clj-kondo (26)
- # clojure (104)
- # clojure-europe (4)
- # clojure-nl (11)
- # clojure-spec (11)
- # clojure-survey (101)
- # clojure-uk (35)
- # clojuredesign-podcast (18)
- # clojurescript (8)
- # core-async (29)
- # data-science (1)
- # datomic (13)
- # emacs (4)
- # fulcro (20)
- # graalvm (14)
- # instaparse (2)
- # jobs (1)
- # juxt (6)
- # malli (5)
- # off-topic (30)
- # onyx (3)
- # planck (1)
- # project-updates (7)
- # re-frame (38)
- # reagent (30)
- # reitit (14)
- # remote-jobs (2)
- # shadow-cljs (50)
- # sql (8)
I get Unresolved namespace warning with a location that doesn't make sense.
The code where the warning is boilerplate and has nothing to do the missing requirement it warns me about.
line and column are pointing to whitespace.
Even if I require the namespace I still get the warning.
Details about the warning and it's location.
./src/main/decide/server_components/config.clj:17:27: warning: Unresolved namespace decide.server-components.ldap. Are you missing a require?
https://github.com/hhucn/decide/blob/master/src/main/decide/server_components/config.clj#L17:27
@mroerni I've pasted that file in a local file here and I don't get this warning. Maybe something is up with your editor?
This is the output I'm getting:
$ clj-kondo --lint foobar.clj
foobar.clj:20:11: error: unresolved symbol config
linting took 13ms, errors: 1, warnings: 0
Maybe you can try the same.Hmm... Only clj-kondo --lint .
has the warning. 😕
clj-kondo --lint src -> Warning clj-kondo --lint src/main -> No warning
Done. Don't know how to make a better repro than the commit in the repo, since the problem is not reproducible in a single file. https://github.com/borkdude/clj-kondo/issues/691
hi 👋:skin-tone-2: first off thanks for clj-kondo :thumbsup::skin-tone-2: Really solid stuff.
I noticed clojure.core/bound-fn
was giving me unresolved symbol errors. By adding :lint-as {clojure.core/bound-fn clojure.core/fn}
to the config this was resolved though.
Should I PR to append that config here; https://github.com/borkdude/clj-kondo/blob/6584375693a63e230804af9787149add6fdfff0d/src/clj_kondo/impl/config.clj#L76 or should I just create an issue?
Create an issue with the problem and the workaround. I'd first like to see why bound-fn
wasn't recognized in clj-kondo and inspect the root error
Ah I see. clj-kondo recognizes that symbol, but doesn't lint it correctly. The config makes sense, but should probably be built into analyzer.clj
. PR for that is welcome.