lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
Mitch 2020-10-27T13:12:17.018300Z

I was trying to get clojure-lsp set up for a coworker and we were getting errors saying that the server doesn't support textDocument/typeDefinition when running xref-find-references. I can see that clojure-lsp doesn't support that capability, but it is odd that we are getting that error because it works without a hitch on my end. Any ideas about where our setups might be diverging?

ericdallo 2020-10-27T13:13:22.018400Z

Hum good question, I'm not sure why xref-find-references is calling typeDefinition instead of lsp-find-references :thinking_face:

Mitch 2020-10-27T13:14:38.018600Z

yeah, my nose tells me that there is probably something misconfigured in his spacemacs config, or in the lsp layer itself. Just wanted to check if this was a familiar bug or not before sinking more time in it

ericdallo 2020-10-27T13:16:25.018800Z

Probably the folks from lsp-mode will know why this happens, I suggest you ask https://gitter.im/emacs-lsp/lsp-mode.

Mitch 2020-10-27T13:17:14.019100Z

thanks eric! will let you know if it ends up being something actionable

ericdallo 2020-10-27T13:17:23.019500Z

:nice:

Mitch 2020-10-27T13:21:17.022400Z

one thing that I did notice was that the Spacemacs Clojure layer doesn't have a variable to toggle lsp support or not. I am going to try to take some time to submit a PR for that this weekend. As far as I can think, the toggle would basically just set the refactor bindings to use lsp's refactors (instead of clj-refactor) when applicable

1