:clojure-lsp: Released https://github.com/clojure-lsp/clojure-lsp/releases/tag/2021.06.14-17.00.47 with a huge improvement on source-paths discovery for deps.edn
projects ๐
โข clojure-lsp now detects if your project is a deps.edn
project and scan for :paths
, :extra-paths
on deps.edn
root level and on :source-aliases
(configurable, default :dev
and :test
), building a source-path that should work for most (every?) deps.edn
projects, even mono-repos like polylith
๐ Thanks @seancorfield and @brandon.ringe for raising this issue. Fixes https://github.com/clojure-lsp/clojure-lsp/issues/416
For more information, check theย https://clojure-lsp.github.io/clojure-lsp/settings/#source-paths-discovery.
The server-info returns an edn with multiple information, Calva just print that to user, but it doesn't mean Calva can request that command and use the value when it wants
OK. The way it is wired now I couldnโt see how it gets printed to the output channel so I assumed that happened on the server. Iโll have to look a bit closer. ๐
Actually you are right, sorry I thought we were returning the info via the response, but we are using windowLog lsp method which LSP clients prints to output. We can create a custom command that returns the edn or json though
Is there a way for consumers to tap in to this project detection?
What do you mean? Calva be able to change something is your idea?
Rather for Calva to be able to use the information about the project.
you mean the source-paths? I think it's possible already, via the server-info command, which should bring the :source-paths
key with that info
I might mean the source-paths. ๐ Must think about it a bit.
hum, actually only the source-paths manually informed from users are available via the server-info command, the auto resolved source-paths from clojure-lsp are not exposed, but we could do that if you think it would help Calva
c/c @brandon.ringe
I'm not sure what @pez has in mind, but if it will help with something, it could be a good idea.