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 66387 - Modules node under suite sometimes does not show additions
Summary: Modules node under suite sometimes does not show additions
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: Martin Krauskopf
URL:
Keywords:
: 71090 72567 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-10 15:00 UTC by Tomas Danek
Modified: 2006-02-20 09:53 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
MOdule in suite not displayed (27.31 KB, image/png)
2005-10-19 13:26 UTC, Tomas Danek
Details
screenshot (39.41 KB, image/jpeg)
2006-01-07 08:26 UTC, wulgar
Details
Wink presentation (688.29 KB, application/octet-stream)
2006-01-07 12:37 UTC, wulgar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Danek 2005-10-10 15:00:14 UTC
[SOLARIS 9], [IDE 20051010]

1) create module suite
2) create module in this suite
3) logical view in project's view still shows empty suite. Although module was
added correctly.

Works ok on WinXP
Comment 1 Tomas Danek 2005-10-17 13:51:48 UTC
Also broken on solaris10, maybe depends on LnF?!
Comment 2 Martin Krauskopf 2005-10-19 01:58:53 UTC
Tomasi can you check this again. We tried it yesterday with Zajo and it seems to
work for him. If it doesn't work try to e.g. refresh the screen, or the tree, or
restart the IDE and provide more info. Thanks. Maybe this one is relative to
those test problems on Solaris, just for my information ;).
Comment 3 Tomas Danek 2005-10-19 13:22:34 UTC
Still reproducible, but seems like random issue. Now appeared even on WIN XP.
Like "refresh" helped that I set module suite to be an application (by
radiobutton in customizer), after this module node appeared. Attaching
screenshot that proves i'm not kidding:) anyway, not 100% reproducible:(
Comment 4 Tomas Danek 2005-10-19 13:26:07 UTC
Created attachment 26126 [details]
MOdule in suite not displayed
Comment 5 Martin Krauskopf 2005-10-25 17:52:14 UTC
Hopefully will be solved together with 67314 issue, thanks to Radek.
Comment 6 Martin Krauskopf 2005-10-27 13:23:13 UTC
Was actually fixed as part of issue 67314. At least I hope. Feel free to reopen
if it happens again.

*** This issue has been marked as a duplicate of 67314 ***
Comment 7 Tomas Danek 2005-10-31 11:39:30 UTC
I didn't spot this problem in recent past.. V.
Comment 8 wulgar 2006-01-07 08:25:57 UTC
At build 200601052030 it is 100% reproductble (both: at work 1.5.0_06 WinXP and
at home 1.5.0_02 WinXP):



1. New suite
2. New library wrapper

see attachment
Comment 9 wulgar 2006-01-07 08:26:32 UTC
Created attachment 28271 [details]
screenshot
Comment 10 Martin Krauskopf 2006-01-07 11:53:19 UTC
How did you actually exactly reproduced? There are more ways to add a module to
your suite. Also if you are adding a module by the help of properties dialog of
a suite, module is effectivelly added until after you click the OK button. And
if the subnode really doesn't appear does it appear at least later. If so, when?
I need more info to solve this. Thanks.
Comment 11 Martin Krauskopf 2006-01-07 11:55:32 UTC
wulgar, you have to add yourself to the CC list if you want to see future
comments. Seem my previous comment (need more info)
Comment 12 wulgar 2006-01-07 12:36:54 UTC
Hello

I've generated snapshots by Wink. See attachment
Comment 13 wulgar 2006-01-07 12:37:54 UTC
Created attachment 28272 [details]
Wink presentation
Comment 14 Martin Krauskopf 2006-01-08 07:47:47 UTC
Better to attach a generated .swf. But on the otherside you forced me to
download wink which was on my TODO list for some time ;)
Anyway I see the problem and I'm able to reproduce now. Thanks.
Comment 15 Martin Krauskopf 2006-01-08 17:47:28 UTC
I think that the problem is that after we stores nbproject/project.properties
in NbModuleProjectGenerator we will in the end fire an AntProjectEvent and
call SuiteLogicalView.ModuleChildren.propertiesChanged(). Here we will call
SuiteSubprojectProviderImpl.getSubprojects() which finally calls
SuiteProject.eval.getProperty("modules") which is *not* refreshed yet - still
returns old value (empty or null in this case).

First question is whether this is not the bug in PropertyEvaluator. I don't
know that code well yet. But probably depends on the order of firing by
FileSystem?

If it is not a bug (which is presuambly true) what should be the solution?

- listening to SuiteProject.eval "modules" property change instead of
  AntProjectListener

- listining on our SuiteSubprojectProviderImpl - but it never fires a change
  in the current implementation. So we would have to fix it to listen on the
  "modules" property and fire changes accordingly first.

Any hints Jesse. The last seems to me more reasonable, but don't know if the
currect behaviour of SuiteSubprojectProviderImpl is not intentional - i.e.
PropertyEvaluator will not fire change anyway, or...
Comment 16 Jesse Glick 2006-01-08 19:02:48 UTC
Last solution (listen to SubprojectProvider) would be ideal; should be simple to
make it fire changes, I was just too lazy to do it before. Listening to change
in ${modules} directly would be OK too, but no easier than making SubprjProv do
the right thing. The current code - attaching an AntProjectListener directly -
is not very good; the events it gets are too low-level.
Comment 17 Martin Krauskopf 2006-01-08 19:18:24 UTC
Ok. I'll do so (last solution).
Comment 18 Martin Krauskopf 2006-01-09 10:56:30 UTC
*** Issue 71090 has been marked as a duplicate of this issue. ***
Comment 19 Martin Krauskopf 2006-01-09 12:57:50 UTC
Should be fixed now. wulgar, could you verify this? Thanks.

NbModuleProjectGenerator.java; 1.43 -> 1.44;
suite/SuiteSubprojectProviderImpl.java; 1.2 -> 1.3;
ui/SuiteLogicalView.java; 1.24 -> 1.25;
test/unit/suite/SuiteSubprojectProviderImplTest.java; 1.1
test/unit/ui/SuiteLogicalViewTest.java; 1.7 -> 1.8;
Comment 20 wulgar 2006-01-10 18:24:08 UTC
It's working at Nb5.1 build 200601092030
Comment 21 Jesse Glick 2006-01-30 00:11:03 UTC
Just improving summary.
Comment 22 Martin Krauskopf 2006-02-20 09:53:17 UTC
*** Issue 72567 has been marked as a duplicate of this issue. ***