Fork me on GitHub
#clj-kondo
<
2019-07-05
>
borkdude08:07:48

clj-kondo v2019.07.05-alpha! 🍻 Features: faster parsing, misplaced docstrings https://github.com/borkdude/clj-kondo/releases/tag/v2019.07.05-alpha

dharrigan08:07:33

arch package also updated 🙂

borkdude08:07:50

thanks, that was fast 🙂

borkdude08:07:04

is that arch package code in a git repo somewhere?

dharrigan08:07:58

Have a look...

dharrigan08:07:27

All I've done is provide a PKGBUILD which pulls down your release and does the work for making it suitable for isntalling on arch.

dharrigan08:07:36

It's very very very similar to FreeBSD ports

dharrigan08:07:59

basically, I find it a joy to use, so much easier than the dance one has to do for debian based distros

borkdude08:07:15

nice. I've been looking into making a package for ubuntu/debian, but this looks much simpler 😅

borkdude08:07:27

more like brew

dharrigan08:07:27

it's a bazillion percent easier

dharrigan08:07:01

from an ex-maintainer

dharrigan08:07:35

btw, I'm not saying that debian is bad (it was the first distro I used), just that packaging can be hard.

borkdude08:07:21

I think I'll close that issue then 😛

sogaiu09:07:10

fwiw, that's one of the good reasons to use an arch-derived distribution 🙂

borkdude09:07:12

I might consider arch if I go off MacOS one day

borkdude09:07:18

for server, I still run Debian

borkdude09:07:12

NixOS also seems interesting, I know someone who is a true fan and has his new laptop up and running really fast with his setup

dharrigan09:07:50

Diversity in the ecosystem is good

borkdude09:07:49

It seems at Juxt they are also using Arch a lot

dharrigan09:07:21

I really like Arch. I like that I know precisely what I've setup and I like knowing it's a rolling release.

dharrigan09:07:35

not waiting 6 months for upgrades to stuff.

dharrigan09:07:46

has everything I need for a distro

borkdude09:07:18

yeah, nixos seems to have quite a learning curve, arch is looking attractive to me

dharrigan09:07:17

The arch wiki is one of the reasons too. It's very comprehensive.

sogaiu09:07:38

i used to use nixos -- if it weren't for the odd programming language you have to learn i might still be 🙂

sogaiu09:07:03

yes, the arch wiki is quite the resource.

sogaiu09:07:27

you don't have to start with arch itself though -- it's easier to try manjaro and get a fair bit of the benefit.

borkdude09:07:51

what's manjaro then compared to arch?

sogaiu09:07:46

roughly, think of ubuntu is to debian as manjaro is to arch

sogaiu09:07:28

much easier to set up and most of the packages from arch work on manjaro (at least the user-contributed ones at aur i've been using fine)

sogaiu09:07:41

easy enough to try in a vm 🙂

borkdude09:07:26

is aur also possible on other distros like ubuntu, just like you can install linuxbrew?

sogaiu09:07:01

not that i'm aware of

sogaiu09:07:41

i think portions of nixos (nixpkgs, i think) is/are though

sogaiu09:07:56

at least that used to be true

practicalli-johnny13:07:01

@borkdude have you considered using https://snapcraft.io/ to package clj-kondo for multiple Linux distributions? Looks very simple. Its the approach that Heroku CLI, VS Code and Slack take. The package is self-contained, so you are not installing into the operating system, keeping a nice clean separation (I currently install clj-kondo in $HOME/bin rather than in the OS file system)

borkdude13:07:35

I haven't considered it, but thanks for mentioning it, I'll take a look

sogaiu13:07:05

i note with interest, the criticism section of the wikipedia article for snappy, as well as a couple of other alternatives that sound similar somewhat there.

borkdude13:07:01

still on the list, will implement it, but not sure when it will be released

borkdude13:07:54

@jr0cket does it matter which base image I choose? for Docker I normally try alpine for small size. does this matter with snap?

sogaiu13:07:37

thanks - do you think finding definitions would be doable too? my impression from looking at clj-kondo's source was that it might be doable without too much work.

borkdude13:07:11

yeah, I think so 🙂

sogaiu13:07:35

looking forward to it 🙂

borkdude13:07:31

@sogaiu fwiw, now I use ag for that

sogaiu14:07:24

i am a heavy user of ag too -- it's just that if clj-kondo can do it, standalone non-repl dependent editor tooling that is light and fast may be doable for "jump-to-definition" functionality 🙂

borkdude14:07:57

it's basically grep, but faster

lread14:07:02

huh, I think today is turning out to be a good day to learn new things

borkdude14:07:33

@jr0cket or anyone else using snap: https://snapcraft.io/clj-kondo welcome to try it out and report success or problems

practicalli-johnny16:07:58

Will try using the snap on my other laptop tomorrow as a clean install (just installed latest alpha of clj-kondo on current laptop - it works great)

borkdude16:07:32

Thank you 🙂

borkdude16:07:42

did you install the current with the install script?

borkdude16:07:57

or just manually?

practicalli-johnny18:07:48

Manually. Initially I installed with the clj-kondo-install script, to the default /user/local/bin. With the new version today, I just unzipped the executable to my $HOME/bin, which is on the system PATH before /user/local/bin. I try avoid putting things on the OS file system if its not in a debian package.

practicalli-johnny19:07:29

$HOME/bin is great for multiple versions or things that have a lot of new versions I want to try. I usually use a symlink if I think I need to switch between versions often.

borkdude19:07:51

I do something similar

borkdude21:07:27

I have experimented with snap some more. It seems I do need the --classic confinement to be able to read files and write into the .cache dir, so it might take a while

practicalli-johnny22:07:17

Good to know there are some safety checks, you could be doing anything 🙂

borkdude08:07:58

yeah, in the strict confinement, the root can connect the plug home so the tools can read/write your home directory, but they made an exception for "hidden" directories, starting with a dot. That's why clj-kondo cannot even read its own config dir, so that's a little too strict

lread14:07:20

36 minute turn around time from suggestion to release!

dharrigan14:07:20

faster than the silver searcher

dharrigan14:07:31

that coupled with FZF == power!!!!!

Stefan15:07:48

Oooh nice tip, thanks!

mynomoto15:07:06

ripgrep is amazingly fast

practicalli-johnny16:07:33

Ripgrep is the default search tool for Spacemacs (if you have ripgrep installed), otherwise it looks for silver surfer (ag) and then grep... Ripgrep is very fast.