This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 237834

Summary: Projects randomly opening
Product: projects Reporter: _ tboudreau <tboudreau>
Component: Generic Projects UIAssignee: Milos Kleint <mkleint>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 210465    
Bug Blocks:    

Description _ tboudreau 2013-10-31 02:20:49 UTC
I noticed recently that if I open a Maven parent project, now all of its child projects open automatically.  I'm not sure I like that, but I might get used to it.

However, today I'm noticing that if I open one non-parent project which happens to also be in another project group, a bunch of other projects from that group (which may not be the one I'm working in currently) magically open.  I can't believe this is a feature :-)
Comment 1 Milos Kleint 2013-10-31 07:02:20 UTC
you must have triggered "Open required projects" checkbox in the project opening dialog.

related to issue 210465, for maven projects "subproject" is fairly ambivalent term, we have a deterministic implementation for pom packaging projects -> <modules>, but for other packaging it's based on local repository (GAV) linking. That's very confusing and counter-productive in cases of multiple checkouts, but I think jglick claimed we cannot remove for backward compatibility reasons.

issue 203222 also related.
Comment 2 _ tboudreau 2013-10-31 07:19:45 UTC
Yup.  Must have accidentally checked it.

Yeah, I think subproject computation that was part of the weirdness, since it seemed fairly random.

Maybe there should be an "I'm Feeling Lucky" button in the Open Project dialog? :-)
Comment 3 Milos Kleint 2013-10-31 07:23:04 UTC
(In reply to _ tboudreau from comment #2)
> Yup.  Must have accidentally checked it.
> 
> Yeah, I think subproject computation that was part of the weirdness, since
> it seemed fairly random.
> 
> Maybe there should be an "I'm Feeling Lucky" button in the Open Project
> dialog? :-)

The other issues suggest that the non-pom projects should get no "subprojects" computed when opening, under some other conditions having a list of projects my project depends on is useful though. So that's why we need the multiple API contracts