lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
rafaeldelboni 2021-06-24T00:59:00.189500Z

I just jumped to nvim 0.5.0 and I was investigating if this was related, thanks I didn't spent much time before searching here 😁

ericdallo 2021-06-24T01:00:46.189900Z

Yeah, I made sure this doesn't happen only for vim anymore fixing it on emacs as well, also I'll release tomorrow morning the clojure-lsp fix @rafaeldelboni

rafaeldelboni 2021-06-24T01:01:57.190200Z

Oh I will wait then, I was looking to install graalvm in my machine right now to get the patched bin

rafaeldelboni 2021-06-24T01:09:03.190600Z

I just thought that would be cool to have a nightly release in some sort like https://github.com/neovim/neovim/releases/tag/nightly

ericdallo 2021-06-24T01:18:48.190800Z

Usually we don't have quick fixes like this and we already release pretty fast, but it's a idea indeed

ericdallo 2021-06-24T01:20:41.191Z

@rafaeldelboni Actually, I'll release it right now as my lsp-mode fix will bring more issues like this until tomorrow

ericdallo 2021-06-24T01:44:25.191200Z

Released!

ericdallo 2021-06-24T01:56:59.194Z

:clojure-lsp: Released https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.06.24-01.20.01 with some fixes 🔨 • Fix graalvm reflect config for LSP 3.16 protocol, affecting most vim users. https://github.com/clojure-lsp/clojure-lsp/issues/449 • Use last definition when showing signature help. https://github.com/clojure-lsp/clojure-lsp/pull/446 (kudos @nenadalm) • Create 2 new LSP custom methods: clojure/serverInfo/raw and clojure/serverInfo/log deprecating old commands server-info and cursor-info, for more information check thehttps://clojure-lsp.github.io/clojure-lsp/capabilities/#custom-methods • Add :final-settings to serverInfo methods. https://github.com/clojure-lsp/clojure-lsp/pull/450 (c/c @pez @pratikgandhi1997)

1👍32👏
rafaeldelboni 2021-06-24T12:11:57.194600Z

Still getting an error, is quite similar to the one dharrigan posted, but is for a different class:

org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer fireError
SEVERE: Unable to invoke no-args constructor for class org.eclipse.lsp4j.LinkedEditingRangeCapabilities. Registering an InstanceCreator with Gson for this type may fix this problem.
java.lang.RuntimeException: Unable to invoke no-args constructor for class org.eclipse.lsp4j.LinkedEditingRangeCapabilities. Registering an InstanceCreator with Gson for this type may fix this problem.
	at com.google.gson.internal.ConstructorConstructor$14.construct(ConstructorConstructor.java:228)

rafaeldelboni 2021-06-24T12:13:15.194900Z

My versions:

clojure-lsp 2021.06.24-01.20.01
clj-kondo 2021.06.18

dharrigan 2021-06-24T12:20:37.195400Z

I pushed up a fix for this error

dharrigan 2021-06-24T12:20:39.195600Z

it's on a PR

dharrigan 2021-06-24T12:20:57.195800Z

<https://github.com/clojure-lsp/clojure-lsp/pull/452>

dharrigan 2021-06-24T12:21:15.196Z

Waiting for it to be reviewed and merged (if appropriate)

dharrigan 2021-06-24T12:21:23.196200Z

In the meantime, you can apply the branch yourself and build locally?

dharrigan 2021-06-24T12:21:28.196400Z

After that it works grand for me

rafaeldelboni 2021-06-24T12:22:31.196600Z

Yeah I will make the setup in my machine, you use arch linux right, do I need https://aur.archlinux.org/packages/native-image-jdk11-bin/ and there is any other deps?

dharrigan 2021-06-24T12:31:59.196900Z

Nope, although I downloaded graalvm directly and put it on my $PATH

dharrigan 2021-06-24T12:32:51.197100Z

You'll need to build the classes first, i.e., clj -X:javac then ./graalvm/native-unix-compile.sh

dharrigan 2021-06-24T12:33:08.197300Z

then I put the clojure-lsp binary in my $PATH to replace the system installed one.

dharrigan 2021-06-24T12:33:55.197600Z

it only builds with java 8 btw

dharrigan 2021-06-24T12:34:21.197800Z

sudo archlinux-java set java-8-openjdk temporarily

dharrigan 2021-06-24T12:34:24.198Z

(I'm on 16)

rafaeldelboni 2021-06-24T12:37:04.198200Z

woah haha, I did the make prod-bin with java-11-openjdk

rafaeldelboni 2021-06-24T12:37:32.198400Z

I'm running make prod-native now

dharrigan 2021-06-24T12:42:01.198600Z

For me, it falls over unless I build with java 8 🙂

rafaeldelboni 2021-06-24T12:46:11.198800Z

It compiled fine, but I'm quite dumb and I compiled the master branch of your fork :kill-me:

rafaeldelboni 2021-06-24T12:46:41.199Z

compiling bugfix/issue-451 now

rafaeldelboni 2021-06-24T12:52:05.199300Z

Yeap can confirm @dharrigan's branch is working fine for me

dharrigan 2021-06-24T12:52:05.199500Z

🙂

dharrigan 2021-06-24T12:52:07.199700Z

w00t w00t

dharrigan 2021-06-24T12:52:28.199900Z

:partywombat:

ericdallo 2021-06-24T13:21:11.200100Z

My bad, I missed that one :(

ericdallo 2021-06-24T14:44:58.200500Z

Released the fix!

dharrigan 2021-06-24T14:50:11.200700Z

And Arch has been updated to include said fix 😄

dharrigan 2021-06-24T14:50:20.200900Z

@rafaeldelboni

rafaeldelboni 2021-06-24T14:50:37.201100Z

:thanks3: