This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-10-03
Channels
- # announcements (4)
- # aws (19)
- # babashka (55)
- # beginners (40)
- # biff (4)
- # calva (9)
- # cherry (3)
- # cider (8)
- # clj-kondo (26)
- # clj-yaml (3)
- # clojure (92)
- # clojure-austin (14)
- # clojure-europe (21)
- # clojure-nl (1)
- # clojure-norway (5)
- # clojure-portugal (3)
- # clojure-uk (2)
- # clojurescript (48)
- # conjure (19)
- # datalevin (14)
- # docker (13)
- # emacs (3)
- # fulcro (21)
- # gratitude (14)
- # improve-getting-started (1)
- # introduce-yourself (2)
- # joker (4)
- # juxt (2)
- # lsp (12)
- # malli (5)
- # meander (17)
- # off-topic (13)
- # re-frame (7)
- # scittle (2)
- # test-check (2)
I'm aiming for a new release on Wednesday. If you can, take a look at these changelogs and try out the master version: https://github.com/clj-kondo/clj-kondo/blob/master/CHANGELOG.md#unreleased There are a couple new interesting linters in there.
what's the best way to run master as my primary "clj-kondo"?
@UEENNMX0T do you mean, in your editor or in CI / command line?
command line, as that's simplest and I rely on clj-kondo bundled with clojure-lsp in my editor
I run clj-kondo separately from clojure-lsp in my editor so I can always run the latest (this is especially convenient when developing clj-kondo)
I forgot that CI builds the artifacts, so I've downloaded one
Found one thing, I'll thread it
$ echo "(defn a ([b] (inc b)))" | ~/Downloads/clj-kondo-2022.09.09-SNAPSHOT-linux-static-amd64/clj-kondo --lint - --config '{}'
<stdin>:1:1: error: clojure.core/defn is called with 2 args but expects 3 or more
linting took 6ms, errors: 1, warnings: 0
Yeah, it seems so. I ran it with master, then ran it with latest release. Doesn’t happen with 2022.08.03
i feel foolish, this was a cache issue. Looks like even tho I was relying on --config {}
, i should have said --cache false
to ensure a clean slate. Running this in other directories shows the error isn't happening.
Yeah, I closed the issue already, posted a similar message there
I'm trying to run a script I wrote in clojure that uses kondo's analysis in CI. I'm wondering if anyone has any tips for tuning it? I'm running into an issue where if I set the max heap size to 1g or under, I get the following:
{:clojure.main/message
"Execution error (OutOfMemoryError) at clj-kondo.impl.core/format-vars$fn (core.clj:564).\nGC overhead limit exceeded\n",
:clojure.main/triage
{:clojure.error/class java.lang.OutOfMemoryError,
:clojure.error/line 564,
:clojure.error/cause "GC overhead limit exceeded",
:clojure.error/symbol clj-kondo.impl.core/format-vars$fn,
:clojure.error/source "core.clj",
:clojure.error/phase :execution},
however if i set the heap higher, e.g. 2g, it gets killed by the host
=> Analyzing sources: ["/home/circleci/app"] ..../util/mulch.sh: line 5: 18171 Killed clojure -J-Xmx2g -Sdeps "$DEPS" -M util/mulch/main.clj "$@"