lsp

pez 2025-07-03T08:57:14.338669Z

I removed clojure from my PATH to see how clojure-lsp would like that. I can still use deps.edn projects with clojure-lsp help (in Calva). Does this mean that clojure-lsp has its deps tooling bundled, or that it still finds some clojure binary to use for it? I am updating some user instructions for Calva’s Getting Started with Clojure and want to know if clojure is required.

borkdude 2025-07-03T09:15:25.552489Z

It could also be that it’s using the cached analysis from .lsp

pez 2025-07-03T09:22:15.144189Z

The Getting Started project seems to work fine, and it is created from scratch. There’s no .lsp folder created though…

borkdude 2025-07-03T09:24:01.062409Z

No project.clj? Perhaps it uses deps.clj ?

borkdude 2025-07-03T09:24:31.435199Z

Do you have the ability to navigate to dependencies?

pez 2025-07-03T09:30:38.633619Z

It’s a deps.edn project. Yes, I can navigate to namespaces like clojure.repl. Calva is using deps.clj (as you know) so there is no clojure executable dependency there. Would be so nice if my test results are telling me that clojure-lsp is also using deps.clj.

borkdude 2025-07-03T09:53:00.862819Z

can you navigate to non-clojure-namespaces?

borkdude 2025-07-03T09:55:46.677989Z

does the project have a bb.edn? I don't think clojure-lsp is using deps.clj, can't find any

pez 2025-07-03T10:10:53.877679Z

Yeah, I forgot that Calva will use the repl to navigate. 😃 And now I am starting to get complaints about clojure missing. No idea why I didn’t get that before.

pez 2025-07-03T10:13:31.814539Z

@ericdallo would you consider bundling deps.clj. On Windows installing clojure can be such a mess. Even with the msi I had insane problems getting it to work last time. I don’t remember how I solved it, only that I have less hair because of it.

ericdallo 2025-07-03T23:58:22.924559Z

Hum, the main problem is not bundle deps.clj, but change clojure-lsp arch to support that, the current approach is to delegate to shell command user can configure via project-specs setting, we would need to create a new layer to use deps.clj

ericdallo 2025-07-03T23:58:30.590049Z

even so, sounds like a good idea

pez 2025-07-04T06:09:24.163249Z

Maybe Calva can use that setting … We’re falling back on deps.clj when clojure isn’t found, iirc

👍 2