Fork me on GitHub
#lsp
<
2021-04-01
>
gmercer02:04:50

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) ?

ericdallo03:04:47

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

ericdallo03:04:11

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

gmercer03:04:29

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

👍 3
gmercer03:04:46

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

snoe04:04:44

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

ericdallo13:04:44

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

nmkip22:04:20

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)

ericdallo22:04:28

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

ericdallo22:04:00

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

nmkip22:04:13

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

nmkip22:04:18

I'll try.

nmkip22:04:44

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

nmkip22:04:04

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

ericdallo22:04:16

I meant lsp-enable-indentation``

nmkip22:04:50

let me try again

nmkip22:04:59

That did the trick.

nmkip22:04:18

(setq lsp-enable-indentation nil)

ericdallo22:04:33

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

ericdallo22:04:50

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

nmkip22:04:25

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

ericdallo22:04:10

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

ericdallo22:04:19

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

nmkip22:04:51

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

👍 3
nmkip22:04:43

> 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.

ericdallo22:04:02

yeah. weird issue indeed