Skip to content

Open Required Projects by default - #9715

Merged
ebarboni merged 1 commit into
apache:masterfrom
jtulach:jtulach/OpenSubprojectsByDefault
Oct 15, 2026
Merged

ebarboni merged 1 commit into
apache:masterfrom
jtulach:jtulach/OpenSubprojectsByDefault

Conversation

@jtulach

@jtulach jtulach commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

@neilcsmith-net wrote:

one of the easiest things we could do
is change the default value of Open Required Projects: to true on the
Open Project dialog.

  • this PR proposes such a change

@jtulach jtulach self-assigned this Oct 14, 2026
@jtulach
jtulach force-pushed the jtulach/OpenSubprojectsByDefault branch from 7c06e8a to fb69e42 Compare October 14, 2026 11:51
@jtulach jtulach added this to the NB32 milestone Oct 14, 2026

@eppleton eppleton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense. Only File > Open Project reads this setting, and users who changed the checkbox keep their choice. Experts can untick it; everyone else gets the modules of multi-module projects opened, as #9572 asks. LGTM.

@mbien mbien left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@neilcsmith-net wrote:

one of the easiest things we could do is change the default value of Open Required Projects: to true on the Open Project dialog.

but did Neil also suggest to do such change one day before freeze? ;)

I would have at least waited to update the "Project Problems" dialog and logic first before changing defaults. Because it will likely list 20 issues

Image

while the actual solution would be to suggest running

mvn validate -Denforcer.skip <insert more common validate phase plugins to disable> --fail-at-end

before the user would have to look at any issues the dialog currently lists (since there would be no issue left).

I am not going to block this though.

@jtulach
jtulach requested a review from ebarboni October 15, 2026 07:37
@ebarboni

Copy link
Copy Markdown
Contributor

lets get his in. is the logic something that can fit in the rc2 if really annoying ?

@mbien

mbien commented Oct 15, 2026

Copy link
Copy Markdown
Member

if it has to get in lets get it in. This issue mostly occurs when your .m2 repo doesn't have much in it. I wouldn't adjust things during RC but we can probably improve the UI for NB 33 since we have more maven work planned anyway. Its two things we likely have to do: better optional init action and a smarter way to represent the problem list (e.g start from the parent).

honestly the quickest hotfix would be to not let the window pop up at all ;) user will likely press build anyway or see the warning on the project icons and resolve from there. Everything pops up at the same time, window and notification while the notification contains the solution (build project).

@jtulach

jtulach commented Oct 15, 2026

Copy link
Copy Markdown
Contributor Author

Awaiting more approvals of the current state of the PR. Ideally Eric and Neil both approve. Then anyone can merge prior to NetBeans 32 branching.

@ebarboni

Copy link
Copy Markdown
Contributor

merging

@ebarboni
ebarboni merged commit 4ec12e0 into apache:master Oct 15, 2026
29 checks passed
@mbien

mbien commented Oct 19, 2026

Copy link
Copy Markdown
Member

maybe we should rename this PR to "open required projects" by default? Try opening a NB module.

@neilcsmith-net

Copy link
Copy Markdown
Member

@mbien agreed, and I think I've pointed out that distinction about 4 times in the last few weeks. It's a key thing to keep in mind with all the current discussions.

This change is a little awkward with ergonomics too, but that's only a one time issue. Do wish we had a way to stop anything being indexed before all the projects have been loaded.

@mbien mbien changed the title Open subprojects by default Open Required Projects by default Oct 19, 2026
@jtulach

jtulach commented Oct 22, 2026

Copy link
Copy Markdown
Contributor Author

little awkward with ergonomics too, but that's only a one time issue

That could probably be addressed by opening the project fully first and only then asking for the list of "required projects". But yeah, it is a minor one time issue, it can be addressed anytime in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Improve Maven multi-module support and Projects view to match VSCode-like unified project management

6 participants