Fork me on GitHub
#lsp
<
2023-08-14
>
nbardiuk11:08:51

does clojure-lsp support navigating to Java source inside artifact-sources.jar instead of decompiling class from artifact.jar ? I am trying to understand if I am missing a configuration or this is not implemented.

ericdallo11:08:31

Yes, It's a recently added feature, but if your jar has both source and compiled class, not sure what will be chosen

nbardiuk11:08:08

I have 2 jars one with sources and one with classes in local maven ~/ .m2/.../artifact/ maybe the sources are not picked up

ericdallo11:08:42

First, check the classpath that clojure-lsp is using, you can get that with lein classpath or clj -Spath

nbardiuk11:08:15

The classpath command helped me. After adding the source artefact to deps.edn I can see that clojure-lsp is trying to navigate to source file. My confusion was that I thought that clojure-lsp automatically can find *-sources.jar . But I can workaround this, thanks 👍

🎉 2
👍 2
seancorfield16:08:23

@ericdallo Is the nightly build broken right now?

ericdallo16:08:34

yes, there is a bad commit at master, I'm looking at it right now

ericdallo16:08:03

Fixed, should be available in some mins and posted at #C032YH7P0R2

2