Fork me on GitHub

I’ve started seeing a strange error from Calva (or something related) recently, and I’m not sure what changed nor where to go to start hunting it down. I’m getting this output in the Clojure Language Client output window whenever any Clojure/ClojureScript file is edited, including Calva’s output / REPL buffer

[Error - 1:47:46 PM] Request textDocument/linkedEditingRange failed.
  Message: No symbol found
  Code: -32602 


Do you know what this could be about, @UKFSJSM38?


It's this issue: IMO, a bug on vscode, not on clojure-lsp


🙂 Thanks for the fast response! I’m glad it is a known issue. From the ticket, it seems the workaround is to downgrade Calva to an earlier version? If that’s the case, is there a simple way to do so? Or perhaps to turn off the toast and stop the Output window from popping up constantly? It seems to be benign, but the visual distractions are… distracting 🙂


I think there is a quickfix here of force disabling linkedEdittingRange on calva side c/c @U9A1RLFNV Maybe forcing to not send that capability when initializing server


I’ll try to look into this soon, though I’m pretty busy lately. If anyone else wants to though, much of the clojure-lsp code is here:


Thanks for the info @UKFSJSM38

👍 1

I made an attempt, not sure it fixes all issues, It'd be good to generate the vsix and ask for people with that issue to test


Thanks! The CI for PRs builds the vsix, just FYI. I’m not certain that anyone can access them, though. Here’s the link for the vsix from that PR: @U02MRUJUREH If you could try that vsix and let us know if it fixes the issue for you, that would be great!

bringe03:11:35 <- Here are instructions, in case you aren’t familiar with the process.


Sweet, thanks! I can take a look to see if that fixes things on Monday. Interestingly enough, my machine crashed and after rebooting the problem seems to have gone away. Not sure if something updated behind the scenes or it is due to a race condition, but I’m no longer experiencing the buggy behavior I was before.


That’s weird… but at least the problem is gone 😄.


Indentation doesn't seem to work as expected when I hit enter. Have to explicitly tab. I remember seeing something here about a workaround but can't find it now.


Is formatAsYouType enabled?


yes set calva.fmt.formatAsYouType to true and toggled editor.formatOnType between true and false.


How about the setting for new indent engine?


Are you using the VIM extension?


yes I am using VIM. let me try with that turned off.


also using new indent engine


ah you're right it's the VIM extension causing the problem


There’s an issue about this on Calva, and I think also one on the VIM repo.


I think a workaround is to use the not-new indent-engine. Because that is doing a bit like you did manually there, re-formatting the current enclosing form.


Thanks for the help! Will try that out.