lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
gmercer 2021-04-01T02:48:50.179500Z

Hi, I have a machine with an ancient GLIBC so running clojure-lsp binary is out - Is there any way I can run with just the jar (specifically hooking into emacs) ?

ericdallo 2021-04-01T13:21:44.181100Z

This way you need the project in your machine ☝️ By downloading the file I said, you can just bash -c clojure-lsp or ./clojure-lsp

ericdallo 2021-04-01T03:05:47.179600Z

You can use the deprecated clojure-lsp file from the release: https://github.com/clojure-lsp/clojure-lsp/releases

ericdallo 2021-04-01T03:06:11.179800Z

it's a embedded jar, but it's slower, I'd suggest making the native binary work

gmercer 2021-04-01T03:23:29.180Z

I am about to migrate from these ancient machines .. in the meantime I could handle 'slow'

👍 1
gmercer 2021-04-01T03:27:46.180300Z

@ericdallo I wrapped it in a bash script - does it require args ?

snoe 2021-04-01T04:18:44.180500Z

no args, i wrap it in bash like this (on phone so might make mistake) bash -c "cd ~/dev/lsp && clj -M:run"

nmkip 2021-04-01T22:20:20.184600Z

Could it be that clojure-lsp is preventing me to slurp something? I have the following code:

(add-watch (var my-var) :something (fn [ctx k o n] (println o "->" n)))
When I try to slurp :something into (var my-var) I get clj-kondo errors (which would be correct if the slurp would have happened)

ericdallo 2021-04-01T22:22:28.184700Z

Hum, never saw that, are you using latest clojure-lsp?

ericdallo 2021-04-01T22:23:00.184900Z

try disabling lsp identation with (setq lsp-enable-identation nil)

nmkip 2021-04-01T22:23:13.185100Z

Yes. I'm not sure if it's clojure-lsp though, but I updated it yesterday and this never happened before.

nmkip 2021-04-01T22:23:18.185300Z

I'll try.

nmkip 2021-04-01T22:25:44.185500Z

I disabled lsp-mode and slurping is working okay now.

nmkip 2021-04-01T22:27:04.185700Z

M-: (setq lsp-enable-identation nil) that didn't work I used it in a buffer which had clojure-lsp already connected.

ericdallo 2021-04-01T22:28:16.185900Z

I meant lsp-enable-indentation``

nmkip 2021-04-01T22:28:50.186100Z

let me try again

nmkip 2021-04-01T22:31:59.186300Z

That did the trick.

nmkip 2021-04-01T22:32:18.186500Z

(setq lsp-enable-indentation nil)

ericdallo 2021-04-01T22:34:33.186800Z

yeah, so for some reason the identation is clashing with your paredit-like emacs package

ericdallo 2021-04-01T22:34:50.187Z

I'd suggest you open an issue on lsp-mode or ask for help on its discord server

nmkip 2021-04-01T22:35:25.187200Z

Some versions ago you changed the clj-kondo underlining length to just underline the paren was it changed again?

ericdallo 2021-04-01T22:36:10.187600Z

yeah 😕 @snoe needed to rollback that to fix another issue

ericdallo 2021-04-01T22:36:19.187800Z

we need to re-think a better way to fix that

nmkip 2021-04-01T22:37:51.188Z

okay, 😄 np just wanted to check if it was on purpose or maybe I changed something in my config haha

👍 1
nmkip 2021-04-01T22:40:43.188300Z

> yeah, so for some reason the identation is clashing with your paredit-like emacs package yes, it's super weird and it does other weird stuff too. I'm using smartparens. I'll keep it disabled for now and I'll search for the discord server you told me.

ericdallo 2021-04-01T22:48:02.188500Z

yeah. weird issue indeed