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.
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.
Created attachment 134881 [details] snapshot3.png
Created attachment 134882 [details] messages.log during the opening/closing of projects
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.
Andrew, please, have a look.
Todd that you so much! I can reproduce the issue with your attached projects.
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.
https://hg.netbeans.org/cnd-main/rev/1b4d8517e121
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