This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-05
Channels
- # announcements (7)
- # beginners (107)
- # boot (5)
- # calva (2)
- # cider (18)
- # clj-kondo (48)
- # cljs-dev (16)
- # cljsrn (2)
- # clojure (208)
- # clojure-berlin (1)
- # clojure-dev (25)
- # clojure-europe (14)
- # clojure-italy (10)
- # clojure-nl (10)
- # clojure-sg (1)
- # clojure-spec (52)
- # clojure-uk (13)
- # clojurescript (53)
- # cursive (7)
- # data-science (7)
- # datomic (4)
- # duct (1)
- # events (10)
- # fulcro (1)
- # graphql (5)
- # jobs (2)
- # kaocha (13)
- # leiningen (6)
- # off-topic (17)
- # pathom (4)
- # quil (6)
- # re-frame (52)
- # reagent (12)
- # reitit (3)
- # shadow-cljs (97)
- # spacemacs (10)
- # sql (39)
- # tools-deps (18)
- # uncomplicate (1)
- # xtdb (1)
I’m not sure why but flycheck-clj-kondo
seems to only display warnings not errors, though they display via clj-kondo
on the command line.
I’m using the multiple linter setup with joker described here:
https://github.com/borkdude/flycheck-clj-kondo#multiple-linters
ahh interesting
clj-kondo --lint - --lang clj --cache < /Users/rick/repos/project/src/proj/routes.clj
WARNING: --cache option didn't specify directory, but no .clj-kondo directory found. Continuing without cache. See .
<stdin>:90:31: warning: unused binding imd-cfg
<stdin>:107:47: warning: unused binding decile
<stdin>:120:62: warning: unused binding params
<stdin>:136:44: warning: unused binding imd-cfg
linting took 31ms, errors: 0, warnings: 4
so it looks like it just lints a single file
where as clj-kondo --lint src/
lints the whole project — and has visibility of the function var that has an arity error
sorry should’ve said the specific error is an arity error
for a function included in the project but in another namespace
@rickmoynihan you need to make a .clj-kondo
dir in the root of your project
then clj-kondo will create a cache where it will remember information about your vars
yeah was wondering if you’d say that 🙂
ok I’d forgot you had to do this… I set it up once in another project
thanks for the pointer
ok upgraded
I’ve mkdir .clj-kondo
and when running `clj-kondo --lint “$(lein classpath)” I get the error:
clj-kondo --version
clj-kondo v2019.08.21-alpha
I did that too — same error
what's weird is that I see twice the version: .cache/2019.08.21-alpha/2019.08.21-alpha
yeah I noticed that too
can't reproduce this locally:
[email protected] /tmp/project $ cat test.clj
(defn foo [] (inc))
[email protected] /tmp/project $ find .
.
./test.clj
./.clj-kondo
./.clj-kondo/.cache
./.clj-kondo/.cache/2019.08.21-alpha
./.clj-kondo/.cache/2019.08.21-alpha/2019.08.21-alpha
./.clj-kondo/.cache/2019.08.21-alpha/2019.08.21-alpha/lock
./.clj-kondo/.cache/2019.08.21-alpha/2019.08.21-alpha/clj
./.clj-kondo/.cache/2019.08.21-alpha/2019.08.21-alpha/clj/user.transit.json
although the version is used twice in the cache dir, it works as expectedI don’t think so
could flycheck clj-kondo in emacs be interfering with it in the terminal?
my lock file looks this like as well: -rw-r--r-- 1 borkdude wheel 0 Sep 5 13:07 lock
essentially the same as mine
ok will maybe have another look at this later
thanks for your help — and for clj-kondo 🙂
ahh great