apache / apache/netbeans

Downloading configuration dependency sources/javadoc in Gradle project causes Configurations project section to disappear

Open
#6,059 1 comment 0 reactions 0 assignees View on GitHub
Gradle kind:bug needs:triage
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 18

### What happened

To get source/javadoc for a dependency in a Gradle project, I often find the dependency in the Configurations/compileClasspath section of the project, then right-click to download the relevant remote JAR from the repo. Doing this seems to succeed, but the entire Configurations section of the project disappears, and a project reload seems to be required to make it reappear (with the download having succeeded).

### How to reproduce

1. Create/open a Gradle project
2. Ensure it has at least one dependency
3. Ensure project is compilable
4. Use context menu on dependency in Configurations/compileClasspath (or other config) to download sources/javadoc
5. Observe result

### Did this work correctly in an earlier version?

No / Don't know

### Operating System

macOS 13.4 (Intel)

### JDK

Temurin OpenJDK 20.0.1+9 (x86_64)

### Apache NetBeans packaging

Apache NetBeans provided installer

### Anything else

Seems to happen every time.
I recall it also happening on prior NB versions, so it's a long-standing issue, I believe.

### Are you willing to submit a pull request?

No

Contributor guide

Open the contributing guide

Research direction

Reproduce this in a Gradle project by using the context menu on a dependency under Configurations/compileClasspath to download sources or javadoc. Trace the download action and project-view refresh behavior, then verify that the Configurations section remains visible without requiring a project reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.