lsp

Akiz 2025-03-10T08:15:19.166179Z

Hi, has anything changed about xref-find-definition? In the last few days, xref on qualified keyword (in my case reitit route and I am using Eglot) is pointing me to the wrong or sometimes even no place in the code. Or does anyone know what this could be?

ericdallo 2025-03-10T11:23:42.738539Z

not really, can you repro at https://github.com/ericdallo/clojure-sample?

Akiz 2025-03-10T14:47:33.537299Z

Nope, it is happening just with some of the routes in one application so far and it seems to be kind of random. I just wanted to make sure there was no change in LSP, I upgraded both it and the emacs packages a few days ago 🙂.

borkdude 2025-03-10T16:14:41.056809Z

Is it an idea to navigate from the symbol inside declare to the actual definition?

(declare foo ;; navigate from here
)




(defn foo ;; to here
 [])

(foo)

👍 2
ericdallo 2025-03-10T16:16:23.663899Z

hum, it's an idea, but not sure find-definition is the ideal one, maybe find-implementation or find-declaration

borkdude 2025-03-10T16:16:52.771909Z

I'd say find-definition would work

➕ 1
borkdude 2025-03-10T16:17:10.093009Z

declare doesn't provide a definition, it only says: this thing comes later

ericdallo 2025-03-10T16:17:50.830999Z

yeah, makes sense

ericdallo 2025-03-10T16:18:35.743479Z

feel free to create an issue

borkdude 2025-03-10T16:19:58.437799Z

https://github.com/clojure-lsp/clojure-lsp/issues/1986