This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-03
Channels
- # announcements (12)
- # babashka (36)
- # beginners (126)
- # calva (26)
- # cider (10)
- # clj-kondo (71)
- # cljdoc (3)
- # cljsrn (2)
- # clojure (232)
- # clojure-australia (1)
- # clojure-europe (11)
- # clojure-france (20)
- # clojure-nl (4)
- # clojure-norway (1)
- # clojure-serbia (4)
- # clojure-uk (6)
- # clojurescript (62)
- # conjure (5)
- # cursive (12)
- # data-science (1)
- # datomic (57)
- # deps-new (1)
- # duct (3)
- # emacs (5)
- # events (8)
- # fulcro (6)
- # graalvm (5)
- # helix (3)
- # jobs (6)
- # jobs-discuss (3)
- # kaocha (4)
- # lsp (128)
- # malli (12)
- # missionary (22)
- # off-topic (1)
- # pathom (7)
- # polylith (27)
- # quil (1)
- # re-frame (20)
- # react (9)
- # reitit (12)
- # releases (8)
- # remote-jobs (3)
- # sci (3)
- # shadow-cljs (9)
- # spacemacs (10)
- # tools-deps (7)
- # vim (7)
- # xtdb (14)
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?)
If I understand your question correctly; having the sources-jars as dependencies usually does the trick for me (with leiningen, at least)
E.g. [bla/bla "1.0.3"]
and
[bla/bla "1.0.3" :classifier "sources"]
So the :classifier
option is required to make it work?
Disregard what I said, I was thinking of C-c C-d C-d instead; sorry!
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
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
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?
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.
Thanks, @U45T93RA6!
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