-
-
Notifications
You must be signed in to change notification settings - Fork 649
Cannot show javadoc of core JDK classes on JDK 9+ #2687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
What's in your profiles? //cc @jeffvalk |
There are quite a few things in my profiles.clj although I commented out many of them yesterday. The current version is here: https://github.com/jumarko/clojure-experiments/blob/master/lein-profiles.clj. Unfortunately, I'm now not so sure that it's completely caused by the presence of profiles.clj. Moreover, the
However, invoking |
Hmm, that's pretty weird as we actually have a bunch of unit tests for URLs for different JDK versions - see https://github.com/clojure-emacs/orchard/blob/master/test/orchard/java_test.clj#L199 |
Regarding the original issue: Is there anything at play that would affect classloaders? The JDK sources are dynamically loaded by |
@bbatsov those tests look correct but I think the problem is in the More specifically, when I tested it with "java.base/java/util/Random.html#nextLong()" it went to the path of dereferencing the
|
@jeffvalk I've updated the description to state two things ( |
That appears to be true, and hence broken. If we want correct URLs, it seems we shouldn't rely on what |
Yeah, I think we should just replicate this in orchard. I think this will be pretty simple. Might also be a good idea to open an upstream issue report in Clojure. |
Asked for clarification of the upstream lib behavior here: https://ask.clojure.org/index.php/8422/clojure-javadoc-javadoc-fails-javadoc-classes-outside-module |
fixes this. I've also got a jira ticket to add a doc url for java 13. Can add a backport for this while we wait if desired. |
UPDATE 2: for now, there seem to be consistent issues with at least:
cider-javadoc
-> adds an extra "java.base" javadoc url path segment which leads to 404 NOT FOUND errorcider-doc
doesn't show proper javadoc for newer(?) JDK classes (e.g.java.lang.Module
)UPDATE: It must be something in my
./lein/profiles.clj
- when I remove them it works. I'll try to find out what's causing that.I can't display javadoc for core classes like
java.lang.String
even though JDK sources are available.It works when I use JDK 8.
If I use anything more recent (tested with JDK 9 and 11) then it doesn't work.
Perhaps related to #2686
Expected behavior
When invoking
cider-javadoc
the javadoc for theString
class should be displayed:Actual behavior
Javadoc is not shown:

Steps to reproduce the problem
jenv
)cider-jack-in
String
into the REPL/buffer and try to show javadocEnvironment & Version information
CIDER version information
Lein/Boot version
Emacs version
25.3.1
Using Spacemacs
Operating system
Mac OS X 10.14.5
The text was updated successfully, but these errors were encountered: