lsp

Drew Verlee 2024-10-30T03:30:00.589559Z

Does lsp consider deps.edn :local/roots in it's search path for references and definations?

ericdallo 2024-10-30T12:46:36.230149Z

clojure-lsp delegates the classpath find to clj -A:dev:test -Spath by default, so yes

Drew Verlee 2024-10-30T03:37:12.456159Z

Whats the best way to handle deps.edn :local/roots so that LSP considers the parent and it's children as one big happy family? As, in i can search between them like they were one project?

Drew Verlee 2024-10-30T03:40:18.250659Z

I see two options from a directory standpoint, a hierarchy, or flat. That should necessary matter to LSP if it knows to follow local/root (which it seems to based off 'find-defination'). But, currently, I have to add each project to my lsp session as opposed to having lsp add the children because i added the parent. I'm wondering if I can tell encode that lsp should pick up all of them when i start the parent lsp session.

joost-diepenmaat 2024-10-30T12:19:58.565149Z

We have a project with a top-level deps.edn with local/root deps pointing to subdirs which also reference each other using local/root. Emacs / Eglot xref-find-definitions seems to work fine in that setup

ericdallo 2024-10-30T12:48:19.289769Z

the best way is to treat like a mono-repo like ☝️(similar to polylith) Or open the root project and let the clj -A:dev:test -Spath find the folders