Fork me on GitHub
#lsp
<
2021-05-14
>
introom14:05:48

Noob question. How to install clojure-lsp. There is no melpa package on this.

ericdallo14:05:23

hey @UGC0NEP4Y clojure-lsp is the server that lsp-mode will run under the hood

ericdallo14:05:28

so you need to install only lsp-mode

ericdallo14:05:47

and you can install clojure-lsp via multiple ways, via lsp-mode or the ones on this page: https://clojure-lsp.github.io/clojure-lsp/installation/

introom15:05:24

When typing lsp-install-server, it echos: There are no servers with automatic installation

ericdallo15:05:01

do you have lsp-mode on latest version?

ericdallo15:05:17

you can still install it via the clojure-lsp page from above ☝️

introom15:05:30

I want to let emacs automatically install the clojure server backend

ericdallo15:05:02

you can try C-u lsp-install-server that will force to install clojure-lsp if it was already installed

ericdallo15:05:34

oh, this is related with outdated or bad compiled lsp-mode, I suggest you reinstall it

introom15:05:30

instead of manually M-x lsp-install-server, can I write the config in elisp?

introom15:05:45

Reinstalled, Still the same message.

ericdallo15:05:50

I don't think there is a elisp way to have that installed, about the issue, maybe ask on https://discord.gg/swuxy5AAgT, I'm not sure what else could be the issue 😕

introom15:05:25

The issue is due to I set lsp-auto-configure to nil. Dunno how’s related with clojure server setup.

ericdallo15:05:44

oh, maybe it is the issue

ericdallo15:05:56

you would need to set lsp-clients manually I think if that var is nil

ericdallo15:05:08

yyoncho may help you on the discord server about that

introom15:05:00

BTW, do you ever encoutnered the error: failed to define function lsp-command-keymap

ericdallo15:05:15

Never had that 😅

ericdallo15:05:25

it really seems bad compiled lsp-mode, odd

ericdallo16:05:31

clojure-lsp New release https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.05.14-15.26.02 • Allow Include non full qualified vars on unused-public-var exclude filter. • Improve hover documentation: - use correct markdown for docstrings c/c @brandon.ringe - remove unnecessary new lines - add link to filename location. • Rollback full text changes on last release and change approach for a temporary fix. https://github.com/clojure-lsp/clojure-lsp/pull/424 - This Should improve performance a lot comparing with previous release. c/c @huxley

🎉 6
ribelo17:05:36

I will let you know as soon as I have tested it. Thanks mate

👍 1
ribelo18:05:41

works awesome, even better than the April version I've been using so far

ericdallo18:05:59

Glad to hear it 🙂 I'll still investigate it later and try to know why we had that slow down

borkdude18:05:50

@UKFSJSM38 just joking man ❤️

ericdallo18:05:22

😛 no problem ❤️ I agree :man-shrugging: