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 230247 - project properties sometimes inaccessible
Summary: project properties sometimes inaccessible
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.3
Hardware: PC Linux
: P2 normal (vote)
Assignee: Andrew Krasny
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-24 19:18 UTC by tbrunhoff
Modified: 2013-06-21 02:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
snapshot2.png (27.84 KB, image/png)
2013-05-24 19:18 UTC, tbrunhoff
Details
snapshot3.png (25.80 KB, image/png)
2013-05-24 19:19 UTC, tbrunhoff
Details
messages.log during the opening/closing of projects (53.25 KB, text/x-log)
2013-05-24 19:21 UTC, tbrunhoff
Details
netbeans project files for the two projects (10.97 KB, application/x-compressed-tar)
2013-05-24 19:23 UTC, tbrunhoff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tbrunhoff 2013-05-24 19:18:39 UTC
Created attachment 134880 [details]
snapshot2.png

Symptom: right-click on a project shows the 'properties' menu item disabled. This is usually accompanied by a new menu item that says "close two projects".

Selecting the "close two projects" menu item always closes two projects, and sometimes the project properties can then be examined/changed. But the relationship between the opened projects, the presence of the "close two projects" menu item, and the disables "properties" menu item is never clear. That's a cosmetic problem, but should be fixed nonetheless.

The real problem is the disabled project properties menu item. Today I found a pair of projects where if both are opened (and no others), one of the projects will have the "close two projects" and the disabled properties, and the other will be normal.
 - snapshot2.jpg: decodeklv project is normal
 - snapshot3.jpg: mxf.nb project properties is disabled

decodeklv is a small command-line app that lives in the same folder with the sources for mxf.nb, which is a library that it depends on.

If I close decodeklv, mxf.nb still has project properties disabled and the menu still says "close two projects" even though only one project remains opened. If I close mxf.nb, and then reopen mxf.nb, it will be normal. If I then open decodeklv, mxf.nb will revert to disabled properties and have "close two projects"; decodeklv will be normal.
Comment 1 tbrunhoff 2013-05-24 19:19:23 UTC
Created attachment 134881 [details]
snapshot3.png
Comment 2 tbrunhoff 2013-05-24 19:21:23 UTC
Created attachment 134882 [details]
messages.log during the opening/closing of projects
Comment 3 tbrunhoff 2013-05-24 19:23:42 UTC
Created attachment 134883 [details]
netbeans project files for the two projects

I attached messages.log for the opening and closing of the projects and the NB projects themselves.
Comment 4 Vladimir Voskresensky 2013-05-27 11:02:06 UTC
Andrew, please, have a look.
Comment 5 Vladimir Voskresensky 2013-05-27 16:58:26 UTC
Todd that you so much! I can reproduce the issue with your attached projects.
Comment 6 Andrew Krasny 2013-06-20 11:41:57 UTC
The reason of the trouble is that MakeProjectFileOwnerQuery returns wrong project decodeklv as an owner of a FileObject from mxf.nb. 
And this happens because source root of mxf.nb is '..' and because decodeklv is the first project in a list of open projects.

The fix is that before going to look deep into source/test roots do a simple test - look if the requested FileObject equals one of the open project's root.
Comment 7 Andrew Krasny 2013-06-20 11:43:53 UTC
https://hg.netbeans.org/cnd-main/rev/1b4d8517e121
Comment 8 Quality Engineering 2013-06-21 02:30:44 UTC
Integrated into 'main-golden', will be available in build *201306202301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/1b4d8517e121
User: Andrew Krasny <akrasny@netbeans.org>
Log: Bug #230247 - project properties sometimes inaccessible