-
Notifications
You must be signed in to change notification settings - Fork 886
Library Javadoc not performed from source code context menu #4044
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
I made some further investigations with Google Gson library. Javadoc from source code works with Gson 2.8.6, and does not work with Gson 2.9.0. I found out the very strange fact, that it does not matter on javadoc file (or folder), it depends on the library jar file. There are indeed structural differences inside the library file
|
I have now modified gson.jar by copying |
I can reproduce this with a simple Maven Projekt: mavenproject1.zip The result is: In the log it can be observed:
it seems, that there is something wrong with the compiler task that is used to scan the classpath:
The return type looks broken. It is missing the @jlahoda sorry to bother you again, but know the compiler infrastructure best, maybe you have an idea where this breaks down? |
@matthiasblaesing, sure, I'll take a look, but it may unfortunately take a week or so before I get to it. Sorry for that. |
@jlahoda thank you, no rush. |
@jlahoda I had another look at this an dnoticed, that there is a strange message:
Maybe this can shed some light on the problem? |
I tried to look at this twice in the past, but wasn't so far able to find out the problem. I'll continue searching. |
So, I may have an idea on what's the real reason. I've put a prototype of a fix here: I'd appreciate if anyone would be willing to try/verify it helps. Thanks! |
@jlahoda thank you! I build your branch and it looks great to me. I used my demo project referenced above (gson-2.9.0). With current master I did not get javadoc for @ms270169 I pushed a build of @jlahodas branch here: https://doppel-helix.eu/NetBeans-dev-dev-e0ef39536ddd75096e61dc7469790c8e33048421-release.zip |
I think this issue is partly fixed by #4391 but |
This is partly fixed in NB15. Still aspects to look at in NB16 timeframe. Bumping the milestone. |
Apache NetBeans version
Apache NetBeans 13
What happened
After adding a library (via menu Tools->Libraries) and configuring javadoc setting, the Javadoc is properly opened in browser when selected via Project Browser -> Libraries -> Show Javadoc.
But if Javadoc should be shown via context menu "Show Javadoc" in source code, the status message "Cannot perform Show javadoc here" is shown.
Class is proper imported, because building the project and "Navigate -> Go to source" works as expected.
How to reproduce
No response
Did this work correctly in an earlier version?
Apache NetBeans 12.3 or earlier
Operating System
Ubuntu 22.04
JDK
openjdk version "17.0.2" 2022-01-18
Apache NetBeans packaging
Apache NetBeans binary zip
Anything else
No response
Are you willing to submit a pull request?
No
Code of Conduct
Yes
The text was updated successfully, but these errors were encountered: