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 😁
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
Oh I will wait then, I was looking to install graalvm in my machine right now to get the patched bin
I just thought that would be cool to have a nightly release in some sort like https://github.com/neovim/neovim/releases/tag/nightly
Usually we don't have quick fixes like this and we already release pretty fast, but it's a idea indeed
@rafaeldelboni Actually, I'll release it right now as my lsp-mode fix will bring more issues like this until tomorrow
Released!
: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)
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)
My versions:
clojure-lsp 2021.06.24-01.20.01
clj-kondo 2021.06.18
I pushed up a fix for this error
it's on a PR
<https://github.com/clojure-lsp/clojure-lsp/pull/452>
Waiting for it to be reviewed and merged (if appropriate)
In the meantime, you can apply the branch yourself and build locally?
After that it works grand for me
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?
Nope, although I downloaded graalvm directly and put it on my $PATH
You'll need to build the classes first, i.e., clj -X:javac
then ./graalvm/native-unix-compile.sh
then I put the clojure-lsp
binary in my $PATH to replace the system installed one.
it only builds with java 8 btw
sudo archlinux-java set java-8-openjdk
temporarily
(I'm on 16)
woah haha, I did the make prod-bin
with java-11-openjdk
I'm running make prod-native
now
For me, it falls over unless I build with java 8 🙂
It compiled fine, but I'm quite dumb and I compiled the master branch of your fork :kill-me:
compiling bugfix/issue-451
now
Yeap can confirm @dharrigan's branch is working fine for me
🙂
w00t w00t
:partywombat:
My bad, I missed that one :(
Released the fix!
And Arch has been updated to include said fix 😄
:thanks3: