lsp

:clojure-lsp: Clojure implementation of the Language Server Protocol: https://clojure-lsp.io/
ericdallo 2021-06-14T17:37:10.155600Z

: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.

5
๐Ÿ‘ 5
5
๐ŸŽ‰ 11
ericdallo 2021-06-15T13:39:58.164Z

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

pez 2021-06-15T15:50:47.164400Z

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. ๐Ÿ˜ƒ

ericdallo 2021-06-15T15:53:40.164600Z

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

pez 2021-06-14T18:37:48.158100Z

Is there a way for consumers to tap in to this project detection?

ericdallo 2021-06-14T18:38:34.158700Z

What do you mean? Calva be able to change something is your idea?

pez 2021-06-14T19:25:27.160600Z

Rather for Calva to be able to use the information about the project.

ericdallo 2021-06-14T19:26:36.160800Z

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

pez 2021-06-14T19:28:11.161Z

I might mean the source-paths. ๐Ÿ˜ƒ Must think about it a bit.

ericdallo 2021-06-14T19:30:15.161200Z

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

ericdallo 2021-06-14T19:30:28.161400Z

c/c @brandon.ringe

bringe 2021-06-14T19:57:18.161600Z

I'm not sure what @pez has in mind, but if it will help with something, it could be a good idea.