Fork me on GitHub
#cider
<
2021-08-03
>
jmckitrick20:08:00

What's the trick to getting docs from imported Java libraries to appear in eldoc or with C-c C-d C-j or similar (show javadoc?)

Jelle Licht20:08:54

If I understand your question correctly; having the sources-jars as dependencies usually does the trick for me (with leiningen, at least)

Jelle Licht20:08:32

E.g. [bla/bla "1.0.3"] and [bla/bla "1.0.3" :classifier "sources"]

jmckitrick21:08:00

So the :classifier option is required to make it work?

Jelle Licht21:08:28

Disregard what I said, I was thinking of C-c C-d C-d instead; sorry!

Jelle Licht22:08:11

So instead of “sources”, you should specify “javadoc” as the classifier. You might still have issues with your browser setup in Emacs, but I just verified that browse url is called with a jar:file:/home/Jelle/…/bla-javadoc.jar!/some/random/Class.html

vemv22:08:16

We're on it :) https://github.com/clojure-emacs/enrich-classpath I find it amazing (in a good way) how this gets asked about every other week on this channel I released an alpha for feedback the other day, anyone's input will be greatly valued

Jelle Licht23:08:54

Very cool @U45T93RA6! This still leaves the “how can I open these nice x-javadoc.jar files” question as the final piece of the puzzle, correct?

vemv23:08:26

Not sure. CIDER and Orchard, when perceiving these javadocs in the classpath, should simply do their magic. They do parse javadocs as part of their functionality. If you mean opening them under a browser, I have no idea about what's there. Emacs has no Chromium whatsoever so there's a limited choice of features one can possibly implement AFAIK.

vemv22:08:16

We're on it :) https://github.com/clojure-emacs/enrich-classpath I find it amazing (in a good way) how this gets asked about every other week on this channel I released an alpha for feedback the other day, anyone's input will be greatly valued