Viewing javadocs, links always open external source in browser instead of local source in IDE
已回答
Hi,
in Eclipse, I could click through references from one javadoc element to another.
When documentation referred to another entry (for example a method from the superclass in order to get more information), I could click that part and Eclipse would just follow it to open the corresponding javadoc.
At the moment this doesn't work in Intellij, it just always opens the browser.
Is there a way to configure this behaviour?
I was unable to find a setting for it and the documentation didn't give me any hint.
Thank you!
Max
请先登录再写评论。
What kind of links are you referring to? URLs?
Can you provide an example?
Thanks for your answer.
An example from Android:
Viewing documentation of getSystemUiVisibility and then clicking on any of those links, opens inside the browser.
This happens too quickly to be completely sure, but I think IntelliJ concurrently jumps to that part of the doc too, so it does work, it's only unusable because once the browser opens, the quick doc window is already gone.
It's very easily possible that I just messed up the config, somehow I can't imagine that this is default behaviour.
I just couldn't find anything in the documentation to change that.
Looking up external sources via external browser is nice, it's just very inconvenient if the source is available locally and could be displayed inside the IDE.
It's a known bug specific to Android SDK, please vote for https://youtrack.jetbrains.com/issue/IDEA-94161 .
Thanks Serge,
I hope it will be resolved soon.
I have just noticed that this issue is from 2012.
It seems though that Android Studio is uneffected.
Does this mean it will be fixed in IntelliJ as well?
Hope so, it was assigned to a wrong developer, so there was no progress. Once it's assigned to a new developer, it should not take that long to fix.
My IntelliJ IDEA does this now... 2018.1.4
I still can't find an option to disable the browser from ever be opened.
The class/docs are available locally. It link to a 404 in my browser...

2020.3 still does this
Object? really?

@...
I can't seem to reproduce the problem in IDEA 2020.3.2 + Android API 29 SDK.
Can you describe your project setup in more detail? Also a screenshot of your Help | About window would be helpful.
What about the project do you want to know? It is a java/maven/git project
The project is Java 13.0.1 but the links open the Oracle JDK 9 documentation. Maybe that's a hint
@...
This is a bit unusual. Would it be possible for you to share a demo project where this is reproduced?
https://drive.google.com/file/d/1O7rmbKuqdzOmoyYdRC3LBk0_N6OY8V0v/view?usp=sharing
Thank you, we'll take a look.
I noticed it opens different JDK versions of the class.
In my JDK 13 project Intellij opens the Oracle JDK 9 documentation of ArrayDeque. Why or where would it get the 9 backlink?
It open java.util.ArrayDeque as https://docs.oracle.com/javase/9/docs/api/java/util/ArrayDeque.html?is-external=true
and newArrayDeque() as http://localhost:63342/codo/guava-29.0-jre-javadoc.jar/com/google/common/collect/Queues.html?_ijt=a1pbe6vp5h4fj8nr1r8cfkv1dm../../../../src-html/com/google/common/collect/Queues.html#line.65
While I have the source code for newArrayDeque() open! I depend on guava 29.0 jre, so it is the corect version butIntelli tries to open some unreachable localhost url...
@... Thank you for reporting. I've raised a new issue in YouTrack. Please follow https://youtrack.jetbrains.com/issue/IDEA-273144 for updates.
Check if the problem reproduces in 2021.2 EAP from https://www.jetbrains.com/idea/nextversion .
Egor Klepikov
EAP: no change. Still tries to open external documention instead of updating the quick doc window.