clojure-europe

For people in Europe... or elsewhere... UGT https://indieweb.org/Universal_Greeting_Time
thomas 2021-02-02T08:30:49.213600Z

mogge and welcome @elegoff760

đź‘Ť 1
djm 2021-02-02T08:31:35.213800Z

đź‘‹

2021-02-02T08:35:02.214Z

Morning

javahippie 2021-02-02T08:48:33.214500Z

Morning!

dharrigan 2021-02-02T09:05:49.215Z

Morning!

slipset 2021-02-02T09:08:43.215200Z

morning!

2021-02-02T09:23:19.215400Z

morning

slipset 2021-02-02T09:59:26.215800Z

@dharrigan You’re involved with the clojure-lsp, right?

dharrigan 2021-02-02T10:02:17.216700Z

very so slightly. I package it up for Arch Linux and last night I did a small PR to include <http://clojure.java.io|clojure.java.io>

danielneal 2021-02-02T10:02:20.217Z

(I've just started using clojure-lsp, very impressed!)

dharrigan 2021-02-02T10:02:28.217300Z

that is as far as my involvement goes (atm!)

slipset 2021-02-02T10:02:46.217700Z

I started using it today, it solves my last emacs-clojure problems, I believe.

slipset 2021-02-02T10:03:13.218700Z

Thanks to @borkdude for tweeting this link yesterday: https://emacs-lsp.github.io/lsp-mode/tutorials/clojure-guide/

dharrigan 2021-02-02T10:03:19.219Z

I use it in (neo)vim with CoC and Conjure. It's winning combination (for me!)

2021-02-02T10:08:05.219800Z

@slipset (and any others) what do you feel that clojure-lsp gives you that CIDER doesn't? It does look like it replaces from clj-refactor things, but some of them are moving into CIDER anyway

2021-02-02T10:08:25.220200Z

(just wondering if it is worth switching over or adding to my CIDER confing)

slipset 2021-02-02T10:09:16.220500Z

find-usages and rename-symbol

borkdude 2021-02-02T10:09:25.220800Z

🎉 https://twitter.com/borkdude/status/1356545209157488640

borkdude 2021-02-02T10:09:41.221400Z

(find-definition for locally defined things)

slipset 2021-02-02T10:09:43.221500Z

I’ve been firing up cursive for this

slipset 2021-02-02T10:10:30.222Z

So, yes, it replaces two things from clj-refactor that are currently b0rken for me.

borkdude 2021-02-02T10:10:59.222300Z

Don't use my name in vain

borkdude 2021-02-02T10:11:37.222500Z

(haha, kidding, of course)

slipset 2021-02-02T10:11:51.222900Z

I didn’t I said b0rken, not borken.

borkdude 2021-02-02T10:11:56.223100Z

ah, phew

borkdude 2021-02-02T10:12:43.224400Z

Btw, the above find-definition for a local is one thing CIDER doesn't do. Since you cannot find these locations using runtime information in Clojure AFAIK. But clj-kondo exposes it and clojure-lsp uses it :)

slipset 2021-02-02T10:12:59.224600Z

But thanks for posting that link yesterday, it is referred to from the clojure-lsp docs, but not “in your face”

borkdude 2021-02-02T10:15:31.225100Z

Yeah, I think I had tried out lsp some years ago but it was relatively flakey back then. It seems a lot better now

slipset 2021-02-02T10:15:39.225500Z

Oh, and the lenses

borkdude 2021-02-02T10:15:42.225600Z

although I had to delete some elpa dir stuff to get it worked correctly

slipset 2021-02-02T10:15:50.225800Z

the lenses rock!

borkdude 2021-02-02T10:16:02.226Z

what is the lens stuff?

slipset 2021-02-02T10:16:45.226100Z

slipset 2021-02-02T10:17:01.226700Z

It shows how many references a symbol has.

slipset 2021-02-02T10:17:12.227Z

You have it in your gif as well.

slipset 2021-02-02T10:17:25.227400Z

The “2868 references” thingy

borkdude 2021-02-02T10:17:58.228200Z

Ah I had already enabled that (I think by copying some snippet), cool

slipset 2021-02-02T10:18:01.228300Z

Haven’t seen that in Cursive.

borkdude 2021-02-02T10:18:18.228800Z

This is useful for removing unused vars. Similar to carve, but more in your editor, cool!

slipset 2021-02-02T10:18:23.229Z

Exactly

slipset 2021-02-02T10:18:36.229500Z

And the opposite, it gives you candidates for optimization.

slipset 2021-02-02T10:18:51.230Z

Making the id fn above slow, would have large impact.

borkdude 2021-02-02T10:19:32.230200Z

right

borkdude 2021-02-02T10:19:34.230400Z

so cool

slipset 2021-02-02T10:20:00.230600Z

And it’s clickable!

slipset 2021-02-02T10:20:30.230900Z

or at least it invites you to click on it.

borkdude 2021-02-02T10:20:53.231100Z

lsp-find-references will give you all refs

borkdude 2021-02-02T10:21:08.231400Z

and that list is clickable as in that it works

2021-02-02T10:30:49.231900Z

I haven’t tried lsp in Emacs in a while. Are you using lsp-mode or eglot?

slipset 2021-02-02T10:31:27.232100Z

lsp-mode I believe

slipset 2021-02-02T10:32:04.233400Z

Also, the bread-crumbs (which I initially wanted to turn off) show if there are linting errors, both in the namespace and the current fn.

dharrigan 2021-02-02T10:32:18.233700Z

what's that screenshot showing @slipset, the :- and the (s/defn) - a library that allows you to define a return type? and argument types?

slipset 2021-02-02T10:32:31.234100Z

plumatic.schema`

dharrigan 2021-02-02T10:32:40.234400Z

ta

2021-02-02T10:32:45.234500Z

I’ll have to give it another go

slipset 2021-02-02T10:32:53.234700Z

https://github.com/plumatic/schema

borkdude 2021-02-02T10:42:10.235Z

Thanks for the kind sponsoring on Github @slipset

slipset 2021-02-02T10:42:45.235600Z

Not much, but you’re becoming very important to my clojure well being.

2021-02-02T10:46:23.235900Z

🆒

2021-02-02T10:46:31.236300Z

sounds like it is worth adding to my config