errael opened a new issue, #6098:
URL: https://github.com/apache/netbeans/issues/6098
### Apache NetBeans version
Apache NetBeans 18
### What happened
(not sure if non gradle projects have similar problems)
Issues:
- Can't add javadoc from URL.
- How to clean up after using `Attach javadoc...` and adding URL
- How to change a zip file used for javadoc.
Summary:
- Added javadoc URL after clicking on CTRL-Space popup.
- Didn't work, but changed behavior.
- Couldn't find a way to undo added URL in NetBeans.
- After deep searching, manually deleting from userdir.
- adding a guava-27 zip file works, so I manually downloaded the -32 zip
and couldn't find a way to change the guava-27 to guava-32 zip.
I got tired of not having guava javadoc, so after `CTRL-Space` on a guava
thing, in the javadoc window,
```
Javadoc not found. Either javadoc for this item does not exist...
```

I clicked `Attach javadoc...`, selected URL, and entered
```
https://javadoc.io/static/com.google.guava/guava/32.0.1-jre
```
which I copied from the visible URL in firefox, without
`/com/google/common/...`
(This may not be an accurate before screenshot, but it's before when
recreating problem, see below)
The next time I got
```
Javadoc not found. Either javadoc for this item does not exist....
```

Which is in two place in the source
```
./java.sourceui/src/org/netbeans/api/java/source/ui/Bundle.properties
./java.editor/src/org/netbeans/modules/editor/java/Bundle.properties
```
Adding URL didn't work, so I wanted to remove it. I looked around the
project window, couldn't find it. I came across
```
Project > GradleProject Xxx > Configurations > right-click > Download-javadoc
```
I haven't tried it yet and I'm hesitant. (because undoing something that
doesn't do what I want, like what I'm talking about here, often takes a long
time to undo and leaves weird cruft around that affects who knows what. But I
digress.)
Looking around I saw the file Javadoc.properties in
```
~/.nb/18/userdir/config/Preferences/org/netbeans/modules/java/j2seplatform
```
which contains
```
jar\:file\:/home/err/.gradle/caches/modules-2/files-2.1/com.google.guava/guava\
/32.0.1-jre/6e5d51a72d142f2d40a57dfb897188b36a95b489/guava-32.0.1-jre.jar!/\
-0=https://javadoc.io/static/com.google.guava/guava/32.0.1-jre
```
This file isn't in yesterday's backup, so I'm guessing...
The URL above is what I entered.
I exited NB, removed the file, restarted NB, and get the `Attach javadoc...`
again.
### How to reproduce
See above.
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Linux harmony 6.0.6-76060006-generic #202210290932~1667401208~22.04~d2df702
SMP PREEMPT_DYNAMIC Wed N x86_64 x86_64 x86_64 GNU/Linux
### JDK
java version "17.0.6" 2023-01-17 LTS Java(TM) SE Runtime Environment (build
17.0.6+9-LTS-190) Java HotSpot(TM) 64-Bit Server VM (build 17.0.6+9-LTS-190,
mixed mode, sharing)
### Apache NetBeans packaging
Apache NetBeans binary zip
### Anything else
_No response_
### Are you willing to submit a pull request?
No
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists