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 164887 - [67cat] Project Groups are broken in 20090511201
Summary: [67cat] Project Groups are broken in 20090511201
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Generic Projects UI (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2009-05-11 19:40 UTC by swpalmer
Modified: 2009-09-11 09:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description swpalmer 2009-05-11 19:40:06 UTC
I just installed 200905110201.  Did NOT import 6.5 settings.

Loaded a Java project
Loaded it’s required project
(edited and debugged for a few hours.)
Made a new project group with default settings
Made a new project group but un-checked “Use Currently Open Projects”

I now have an empty group, as the two previously loaded projects were closed automatically.

All is well so far.,..

Then I opened another project, different from the previous ones, and selected to load the required projects.

When it finished I was left with my new project group with the new name, but the projects that were loaded were from 
the group I had previously created!  The funny thing is that a lot of the files from the project that I had actually 
selected loaded up in the editor!

When I right-click on the two projects that shouldn’t be there, or use the file menu, there is no option to close them!

If I go to the “Set Main project” menu it shows all of the projects that are supposed to be open – yet none of them are 
showing in the Projects window.  Reopening the projects that I am supposed to have loaded has no effect.
Comment 1 swpalmer 2009-05-11 19:42:53 UTC
Closing NB and re-opening causes it to come up with the correct projects showing in the Projects window.
Comment 2 Milan Kubec 2009-05-12 09:02:22 UTC
I'm not able to reproduce the problem, please could you provide exact steps (I mean e.g. 1. Open project A, 2. ...,
etc.) how to reproduce the problem starting from clean userdir? Please describe also dependencies among projects. Thanks.
Comment 3 Milan Kubec 2009-05-12 09:39:05 UTC
Setting INCOMPLETE, until there is more info.
Comment 4 swpalmer 2009-05-12 14:25:49 UTC
Sorry.. the above description is the steps I took - obviously the "edited and debugged for a few hours" step is lacking 
detail. But other than that, each line is a step.

All projects are Java projects.  The first project is a Java project that uses the Swing Application Framework and has 
one dependency.

0.1 Uninstall previous dev build - checking the box to remove the user dir. 
0.2 Install 200905110201 - do not import settings from 6.5

1. Load a Java project (uses Swing app Framework) with one dependency on one other Java project.
2. right-click the project and choose to load the dependency
3 --- edit, debug, repeat... (I'm not sure that this is important)
4.Make a new group - default settings, give it a name
5.Make a new group - un-check “Use Currently Open Projects”... give a different name... UI shows no projects loaded.
6.Load a Java Project with several dependencies - Since Java module is loaded now we can check the box to automatically 
load the dependencies.
7 Project Group name has changed, but the two projects from the previous group appear in the project window...
This group is no in an odd state until restarting NB.

I'm sure I've done the same sequence in earlier builds without encountering this error - maybe there is a race 
condition?  I'm using a dual processor Windows XP machine.

I will try again...

Comment 5 swpalmer 2009-05-12 15:00:29 UTC
I could not reproduce it a second time.  So there must be a trick to it... timing or something... Have you seen the 
issue where you open a project and the name in the project window shows as "null" - that's another one that doesn't 
happen all the time and I suspect it may be a race condition.

I'm going to update to the latest daily now and see if it happens again...
Comment 6 swpalmer 2009-05-12 15:09:11 UTC
Ah I remembered one other step - change the project window to view Java packages as a Tree after you load the initial 
projects.
Comment 7 Milan Kubec 2009-05-18 13:44:02 UTC
I tried those steps exactly, but still not able to reproduce.
Comment 8 Milan Kubec 2009-07-16 14:37:04 UTC
swpalmer, are there any news about this issue?
Comment 9 swpalmer 2009-07-16 15:34:08 UTC
There is still an issue here but it is difficult to reproduce.

With the 6.7 release there have still been times when loading a project that the project name shows as "null" in the 
project window.  But it's rare and I haven't been able to collect any more useful information.
Comment 10 Milan Kubec 2009-09-11 09:26:25 UTC
Closing the issue for now until there is better evidence about the actual issue. Reopen once you have reproducible test
case. Thanks.