This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-02-09
Channels
- # announcements (19)
- # babashka (26)
- # beginners (157)
- # calva (54)
- # cider (12)
- # clj-kondo (18)
- # cljdoc (3)
- # clojure (65)
- # clojure-australia (3)
- # clojure-europe (28)
- # clojure-germany (14)
- # clojure-greece (1)
- # clojure-italy (8)
- # clojure-nl (10)
- # clojure-uk (81)
- # clojuredesign-podcast (2)
- # clojurescript (20)
- # clr (1)
- # conjure (1)
- # cursive (1)
- # data-science (29)
- # datascript (2)
- # datomic (19)
- # depstar (4)
- # fulcro (24)
- # graalvm (6)
- # helix (26)
- # jobs (2)
- # jobs-discuss (2)
- # kaocha (12)
- # leiningen (1)
- # malli (17)
- # off-topic (18)
- # pathom (34)
- # polylith (23)
- # re-frame (10)
- # reagent (8)
- # releases (1)
- # remote-jobs (1)
- # reveal (5)
- # shadow-cljs (49)
- # spacemacs (1)
- # startup-in-a-month (6)
- # vim (4)
It is pretty amazing how fast kondo is to report on the issues with reordering the bindings.
I use GIF Brewery. It’s free as in beer. Crashes on me some times, but otherwise is very nice and produces crisp gifs. You can crop it both in time and space. Don’t know if it is available for Linux though
Welcome @jonoflayham!
Thanks! Here because I’m considering leaving IntelliJ…
I am enjoying my time with Calva and am astonished by the pace of the Calva team. I think you are at least 8 borks on the borkdude productivity meter!
Hey, personally I rate 0.1 productivity borks on a good day. I’m happy with it, but am always impressed when I see productive teams!
VS Code already updated Calva and I just tried out that new dragging feature: very nice! I don't know if I'll ever be able to remember the key chord for it, mind you 🙂 (but I have the command palette)
Try to remember the shortcuts for dragging forms out of and into lists backward and forward, and then maybe these in-list ones will seem easy. 😃
As a Calva noob, I am wondering if Calva/lsp looks at my local project clj-kondo hooks. I ask because I am getting warnings in Calva for things my hooks do handle when running clj-kondo from the command line.
We are all a bit of Calva+lsp noobs, @lee. However, @brandon.ringe and @ericdallo are an amazing team to watch when they are trying to tame this beast.

@lee, clojure-lsp
should use your .clj-kondo/config.edn
just like if you were using only clj-kondo
Ok, cool. I’m happy to provide a repro in an issue. I’ll start with just linking to my project and describing, and then can isolate more at your request.
I'd sugges open the issue on Calva, then we could analyze and open on clojure-lsp if it's a bug there 😉
Backspace positional in calva-extras - powerlevel 80%. (For the rest 20% I need sexp parsing apis.)
Thanks team Calva, https://github.com/BetterThanTomorrow/calva/issues/1026, ignore my mention of clj-kondo hooks here on Slack, think I was on the wrong track there!
You can temporarily disable diagnostics in LSP and use the standalone clj-kondo VSCode plugin
I don't know about Calva but in emacs I set the variable lsp-diagnostics-provider :none
Probably Calva does not support that 😕 but I'd not recommend doing this since the lint on the file reflects on clj-kondo analysis, so your code could show it's correct because of a newer version of clj-kondo or something like that, but clojure-lsp is not being able to parse the code or understands it
Of course the underlying problem should be addressed, this is why I said 'temporarily' :)
But even if you turn off diagnostics, clojure-lsp should be able to invoke clj-kondo for analysis

I double checked and I don't think it's an issue with clj-kondo itself, rather an issue with maybe not picking up the config correctly in lsp / calva (not sure how these are wired up together)
You can see this when invoking clj-kondo.core/run!
and then pprinting the returned :config
Related issue here @lee: https://github.com/BetterThanTomorrow/calva/issues/980
Yeah, confirmed the issue is on clojure-lsp side, it's using the home clj-kondo dir instead of the project config 😕
Created this issue to track it: https://github.com/clojure-lsp/clojure-lsp/issues/308

@U04V15CAJ I wondering if clojure-lsp should find the clj-kondo config to pass it via the clj-kondo API
Is there any way to pass some configs that we want (like cache, analysis etc) but still make clj-kondo keep the behaviour of find the configs
yes, you just pass :config
which is a vector of additional configs which will be merged into the config that the user already has in .clj-kondo
oh perfect, I think the issue is that ATM clojure-lsp is merging with a config from .lsp/config.edn
(probably leftover after kondo integration 😅)
For some reason, when linting a single file, clj-kondo is not considering the configs, not sure is something that I'm doing wrong here, but I tried these two ways: from rewrite-clj-repro linked on the issue:
cat /home/greg/dev/rewrite-clj-repro/test/rewrite_clj/zip_test.cljc | clj-kondo --lint -
and informing the filename:
cat /home/greg/dev/rewrite-clj-repro/test/rewrite_clj/zip_test.cljc | clj-kondo --config '{:filename "/home/greg/dev/rewrite-clj-repro/test/rewrite_clj/zip_test.cljc"}' --lint -
both return:
<stdin>:10:27: warning: Unresolved var: z/of-string
<stdin>:10:39: warning: Unresolved var: z/root-string
<stdin>:26:26: warning: Unresolved var: z/find-tag-by-pos
<stdin>:27:26: warning: Unresolved var: z/replace
<stdin>:28:26: warning: Unresolved var: z/append-child
<stdin>:29:25: warning: Unresolved var: z/down
<stdin>:30:25: warning: Unresolved var: z/remove
<stdin>:47:16: warning: Unresolved var: z/rightmost
<stdin>:48:16: warning: Unresolved var: z/child-sexprs
<stdin>:57:16: warning: Unresolved var: z/up
<stdin>:68:16: warning: Unresolved var: z/right
<stdin>:82:17: warning: Unresolved var: z/insert-child
<stdin>:92:28: warning: Unresolved var: n/map-qualifier-node
<stdin>:106:36: warning: Unresolved var: z/node
<stdin>:106:43: warning: Unresolved var: n/map-context-clear
<stdin>:116:18: warning: Unresolved var: z/sexpr
<stdin>:136:18: warning: Unresolved var: z/reapply-context
linting took 226ms, errors: 0, warnings: 17