calva

Wednesdays you might find @U0ETXRFEW in the Gather Calva space. Invite is https://gather.town/invite?token=GZqrm7CR and the password is `Be kind`.
Cris B 2020-08-14T01:00:49.298600Z

I'm not really the audience for this as I don't use the REPL prompt much, but this is shaping up nicely.

๐Ÿ‘ 1
bringe 2020-08-14T02:57:18.299Z

Thanks, I don't either ๐Ÿ˜„

esp1 2020-08-14T05:13:09.299200Z

@brandon.ringe thanks so much for this, this makes a huge difference to the usability of the repl!

esp1 2020-08-14T05:16:24.299400Z

this is working really well for me

esp1 2020-08-14T05:20:13.299600Z

the one issue i found is when editing a multiline form, alt+down works to move a line down, but alt+up doesnโ€™t work to move a line up.

esp1 2020-08-14T05:20:14.299800Z

personally tho iโ€™d actually rather alt+up/down always move up/down through history if youโ€™re editing anywhere in the last form.

borkdude 2020-08-14T12:21:19.300500Z

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

borkdude 2020-08-14T12:22:51.301Z

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

bringe 2020-08-14T16:07:02.000200Z

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.

borkdude 2020-08-14T16:11:15.001400Z

Yes, makes sense.

borkdude 2020-08-14T16:11:53.001600Z

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

borkdude 2020-08-14T16:12:12.001800Z

I think going the LSP route is very natural for VSCode

bringe 2020-08-14T16:13:21.002200Z

I think so too.

bringe 2020-08-14T16:14:47.002400Z

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.

bringe 2020-08-14T16:15:04.002600Z

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

borkdude 2020-08-14T16:18:27.002900Z

I adhere to this style guide mostly: https://github.com/bbatsov/clojure-style-guide#sort-requirements-and-imports

bringe 2020-08-14T16:24:59.004800Z

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.

Maksim Glebov 2020-08-14T18:39:54.005400Z

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 ๐Ÿ™‚

๐Ÿ‘ 2
Maksim Glebov 2020-08-14T18:43:15.005500Z

It might be worth mentioning in the docs:

pez 2020-08-14T19:10:05.007700Z

Yes. That should be mentioned. PR?

Maksim Glebov 2020-08-14T21:39:02.009600Z

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