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

2

What kind of links are you referring to? URLs?

Can you provide an example?

0
Avatar
Permanently deleted user

Thanks for your answer.

An example from Android:

/**
* Returns the last {@link #setSystemUiVisibility(int)} that this view has requested.
* @return  Bitwise-or of flags {@link #SYSTEM_UI_FLAG_LOW_PROFILE},
* {@link #SYSTEM_UI_FLAG_HIDE_NAVIGATION}, {@link #SYSTEM_UI_FLAG_FULLSCREEN},
* {@link #SYSTEM_UI_FLAG_LAYOUT_STABLE}, {@link #SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION},
* {@link #SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN}, {@link #SYSTEM_UI_FLAG_IMMERSIVE},
* and {@link #SYSTEM_UI_FLAG_IMMERSIVE_STICKY}.
*/
public int getSystemUiVisibility() {
    return mSystemUiVisibility;
}


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.

0

It's a known bug specific to Android SDK, please vote for https://youtrack.jetbrains.com/issue/IDEA-94161 .

0
Avatar
Permanently deleted user

Thanks Serge,

I hope it will be resolved soon.

0
Avatar
Permanently deleted user

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?

0

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.

0
Avatar
Permanently deleted user

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...

2
Avatar
Permanently deleted user

2020.3 still does this

Object? really?

0

@...

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.

0
Avatar
Permanently deleted user

What about the project do you want to know? It is a java/maven/git project

 

0
Avatar
Permanently deleted user

The project is Java 13.0.1 but the links open the Oracle JDK 9 documentation. Maybe that's a hint

0

@...

This is a bit unusual. Would it be possible for you to share a demo project where this is reproduced?

0

Thank you, we'll take a look.

0
Avatar
Permanently deleted user

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...

0

@... 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 .

0
Avatar
Permanently deleted user

Egor Klepikov

EAP: no change. Still tries to open external documention instead of updating the quick doc window.

0

请先登录再写评论。