Fork me on GitHub
#calva
<
2020-08-14
>
borkdude12:08:19

re: ways of using clj-kondo without adding it to the classpath: how often and when do you invoke clj-kondo for analysis?

bringe16:08:02

It's called basically every time the user types in an editor. So very often. This is for the decorating instrumented functions (declarations and usages), so if the function is foo and the user backspaces to make fo the decoration will disappear because analysis/decorations ran again.

borkdude16:08:15

Yes, makes sense.

borkdude16:08:53

Then the only other options to separate deps are maybe something like a boot pod (works with classloaders), a separate REPL or indeed your own LSP server implementation that uses the clj-kondo lib

borkdude16:08:12

I think going the LSP route is very natural for VSCode

bringe16:08:21

I think so too.

bringe16:08:47

Btw, unrelated, but I was wondering why you like to sort requires in ns declarations. You mention you used it often in emacs. I have never found a need to sort them, though my brain does like organized things. To me it seems just visually pleasing and not functional, but I imagine you have reasons.

bringe16:08:04

I'm always looking to find ways to improve my clojure workflow simple_smile

bringe16:08:59

Oh I see, so pretty much just style, which I do agree is important still. Luckily clj-kondo warns me of duplicates 😄 . But I realize some people may not use it. Anyway, we should add this sorting. Style is important.

borkdude12:08:51

I was thinking, if this is only once, you could also use the uberjar to avoid dependency conflicts?

Maksim Glebov18:08:54

I've just realized that it's now possible to shrink and expand parts of the evaluation result in the new output file, which is kind of similar to LightTable approach. Another benefit of the new output. I'm not used to it yet, but seems like a very nice feature 🙂

👏 6
Maksim Glebov18:08:15

It might be worth mentioning in the docs:

pez19:08:05

Yes. That should be mentioned. PR?

Maksim Glebov21:08:02

Yeah, I'll try to make it. Need to learn all the shortcuts for different OSes for that :)

pez06:08:03

I've found sheets with that. But we could also let people find the shortcut themselves, just naming the commands used.