Fork me on GitHub
Karol Wójcik14:08:51

Is there a way to jump to Java source code from cider?


@kwcharllie379 I think step one is to add the source artefacts to your project. I think it works though, you could try jumping to source against some clojure java.

Karol Wójcik14:08:24

How can I add them?


an example of something that I expect would work: java.util.concurrent.ThreadPoolExecutor

Karol Wójcik14:08:28

Well it works perfectly with your example but what if I am trying to jump to the source of 3rd party library?


@kwcharllie379 you add an additional dependency, so say you depend on [foo/bar] there is usually a source jar deployed as well, so you add an additional dependency on [foo/bar :classifier "sources"].


Sorry, that's sources* not source

Karol Wójcik14:08:45

Thank you very much ❤️

Karol Wójcik14:08:38

@dominicm Funny thing is that although I can jump to the sources after adding classifier I am receiving the error with not matching ctor. It's funny because without classifier it works as expected.

Karol Wójcik15:08:33

Ok sory that’s my bad. You emphasized that it should be an additional dependency.

Karol Wójcik15:08:40

Thank you one more time


@kwcharllie379 that's okay, it's an easy mistake, I quite expected it 😛