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 105525 - Project Properties doesn't work with NB6.0
Summary: Project Properties doesn't work with NB6.0
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thomas Preisler
URL:
Keywords:
: 110142 115881 (view as bug list)
Depends on: 118638
Blocks:
  Show dependency tree
 
Reported: 2007-06-04 08:02 UTC by marcoandreolli
Modified: 2007-10-31 17:36 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 marcoandreolli 2007-06-04 08:02:03 UTC
I have installed NetBeans C/C++ Pack 5.5.1 and I can't view the project properties.
Comment 1 _ gordonp 2007-06-04 15:04:50 UTC
What version of netbeans did you install into?
Comment 2 Thomas Preisler 2007-06-04 15:45:07 UTC
Into 6.0, correct? I just verified properties are broken with today's NB trunk. 
Comment 3 Thomas Preisler 2007-08-14 16:54:04 UTC
A work-around was implemented a while ago. The properties should display fine now. It is not a permanent fix though so I will keep the iz open.
Comment 4 Thomas Preisler 2007-08-14 16:54:10 UTC
A work-around was implemented a while ago. The properties should display fine now. It is not a permanent fix though so I will keep the iz open.
Comment 5 Thomas Preisler 2007-08-14 16:55:01 UTC
*** Issue 110142 has been marked as a duplicate of this issue. ***
Comment 6 Thomas Preisler 2007-08-15 02:07:28 UTC
I investigated this some more and I'm not sure there is a good fix. The problem is nodes are added asynchronously with a
delay up to 0.15 seconds (PropertySheetView.setNodes(...)) so the nodes may not have been added when CND display the
property sheet. I have asked nbdev for advise but so far no answer. I think the work-around (sleep .2 secs) should be a
stable work-around for now and it does seem to work. I will downgrade this IZ to p3 and wait for a better solution, if
there is one. Please upgrade if you see the problem again.
Comment 7 eskild 2007-08-15 13:21:51 UTC
Allow me to chime in; I'm the reporter of issue 110142, which indeed seems to be a dup of this.

I'm utterly naïve when it comes to how Swing/Netbeans works internally, but there are two things:

1. All my (many) years of developing software have told me that hardcoded delays with "magic" value in order to prevent
races don't really fix anything. One day somebody is going to introduce something that changes the timing, and the fix
breaks.

2. Since I see the correct panel flash briefly before <No Properties> being displayed, it means that the panel is indeed
present and properly configured. So why's the <No Prop> panel added at all?!

Could explicit layering priority fix this? I.e. <No Prop> is Layer Zero (bottom) and the C/C++ panel is Layer Ten
(something > 0). Anyway, it's just a simple suggestion.
Comment 8 Jesse Grodnik 2007-10-04 19:02:44 UTC
QA has escalated this to P2.
Comment 9 Thomas Preisler 2007-10-08 02:25:10 UTC
Has anyone seen a blank panel after I implemented the work-around? I had a mail conversation with the developer of the
PropertySheetView and he couldn't suggest a better solution.
Comment 10 _ gordonp 2007-10-09 15:19:52 UTC
Yes. I saw this once this weekend and again last night. When I saw it last night, I
clicked on Running and then re-clicked on General and the properties where there.
Comment 11 Thomas Preisler 2007-10-12 03:49:08 UTC
Filed http://www.netbeans.org/issues/show_bug.cgi?id=118638. Let's see what they say....
Comment 12 Thomas Preisler 2007-10-12 18:53:54 UTC
Will use PropertySheet and not PropertySheetView. See 118638 for details.
Comment 13 Thomas Preisler 2007-10-13 01:45:15 UTC
*** Issue 115881 has been marked as a duplicate of this issue. ***
Comment 14 dnikitin 2007-10-31 17:36:08 UTC
Verified in build 200710291200