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 192828 - 'Build Installers' menu item is missing
Summary: 'Build Installers' menu item is missing
Status: RESOLVED WORKSFORME
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.0
Hardware: Macintosh (x86) Linux
: P3 normal (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-03 06:54 UTC by pragalathan
Modified: 2011-05-23 19:32 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project context menu (204.62 KB, image/png)
2010-12-03 06:55 UTC, pragalathan
Details
opening an existing RCP app (6.18 MB, video/ogg)
2010-12-09 11:11 UTC, pragalathan
Details
creating a new RCP app (3.40 MB, video/ogg)
2010-12-09 11:14 UTC, pragalathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description pragalathan 2010-12-03 06:54:17 UTC
I am not able to find the "Build installers" menu item for (RCP) platform applications.I observed the same problem in 6.9RC/Beta also; i.e it "build installers" menu was not available in 6.9 RC and 6.9 beta but was available in daily build and in the final release. 

Build: 7.0 beta
OS: kubuntu 10.10
HW: MacBookPro

ps: I have choosen Module System as the component as I dont know the right component to file the bug.
Comment 1 pragalathan 2010-12-03 06:55:11 UTC
Created attachment 103554 [details]
Project context menu
Comment 2 Jesse Glick 2010-12-03 18:03:37 UTC
Just checked in 7.0 beta in a fresh userdir on a newly created RCP App and the menu item is there.
Comment 3 pragalathan 2010-12-06 06:48:10 UTC
Hi Jesse,
Thanks for checking this. I did as you said; created a new RCP application in 7.0 beta. It has the 'build installers' menu. Then I opened the old project (which i created in 6.9) which is in the screen shot attached. Now it has the menu. 

The screen shot attached clarifies that it is not my misunderstanding.

So here is my observation which may be useful to debug further.

1. I have 6.9 already installed
2. 7.0beta imported the configuration after installation
3. I HAVEN'T created any RCP application in 7.0beta
4. I opened the old RCP app, which was created in previous version, which is supposed to be the first RCP app to be opened in 7.0 IDE, after installation.

I suspect the last point to be the cause.

-Pragalathan M
Comment 4 Jesse Glick 2010-12-06 16:01:05 UTC
(In reply to comment #3)
> 1. I have 6.9 already installed
> 2. 7.0beta imported the configuration after installation
> 3. I HAVEN'T created any RCP application in 7.0beta
> 4. I opened the old RCP app, which was created in previous version, which is
> supposed to be the first RCP app to be opened in 7.0 IDE, after installation.

Well I tried to reproduce this way too without success.

1. Deleted ~/.netbeans/
2. Ran 6.9[.1]
3. Created new NetBeans Platform Application
4. Checked context menu, Build Installers is there
5. Shut down
6. Ran 7.0 beta
7. Agreed to import settings
8. Checked context menu (project was still open), Build Installers still there

If you can provide steps to reproduce the problem from scratch I can surely fix it.
Comment 5 pragalathan 2010-12-09 11:11:42 UTC
Created attachment 103817 [details]
opening an existing RCP app

Demonstrates,
1. Installation of daily build
2. Import of 6.9 settings
3. Opening existing RCP app to check for [project context menu]->package as -> build installers
4 result : NOT FOUND
Comment 6 pragalathan 2010-12-09 11:14:16 UTC
Created attachment 103819 [details]
creating a new RCP app

This video demonstrates,
1. Creation of new RCP app
2. Checking for build installers menu (NOT FOUND)
3. Opening existing project and checking the same (result: NOT FOUND)
Comment 7 Jesse Glick 2010-12-09 14:15:59 UTC
I get that you open the context menu or a new or old project and the menu item is not there. The question is how to reproduce this problem. I am presuming that it does not happen when you decline to import old settings. So something in your old settings is broken.

You can find out what that something is by brute force: divide your old 6.9 userdir in half; delete any existing 7.0 dev userdir; run 7.0; agree to import the first half of the userdir; see if the problem happens. If so, divide the selected half into half again and repeat; if not, divide the unselected half into half and repeat.

The simplest explanation is that the relevant module is not installed for some reason; your log file (which you have not yet attached for diagnosis) should say

        org.netbeans.modules.apisupport.installer [1.4 101209-3f44371b9d78]

(or some close version), and it does not then the menu item will not be there. This would happen if $userdir/config/Modules/org-netbeans-modules-apisupport-installer.xml says <enabled>false</enabled>, though this should not happen just by turning "NetBeans Plugin Development" on or off via Plugin Manager (which would enable or disable apisupport.project at the same time).

There are various other possible explanations but they seem even less likely.
Comment 8 ulim 2011-05-11 16:55:43 UTC
I don't know if it is correct to re-open this bug or whether I should create a new one. Anyway, I have the same problem under Netbeans 6.9.1 running under Linux. I do not - repeat NOT - have this problem with another Netbeans 6.9.1 installation on a Mac.

I looked in my ~/.netbeans/6.9/config/Modules directory and there is no file named org-netbeans-modules-apisupport-installer.xml.

Ulrich
Comment 9 ulim 2011-05-11 16:58:52 UTC
And another thing: when I right-click my Suite project node and bring up the properties, then there are only three entries under categories: source, libraries and application. The fourth category, where I could configure which installers to create, is missing.
Comment 10 Jesse Glick 2011-05-11 17:35:46 UTC
See comment #7 for diagnosis.

(In reply to comment #8)
> I looked in my ~/.netbeans/6.9/config/Modules directory and there is no file
> named org-netbeans-modules-apisupport-installer.xml.

You would not expect to have such a file unless this module had been disabled at least once (perhaps subsequently reenabled). The default version will be under the apisupport cluster in your NB installation (the userdir variant is used just for customizations).
Comment 11 ulim 2011-05-12 07:31:47 UTC
Ok, I found the file under $NBHOME/apisupport/config/Modules and the enabled parameter is true. I can reproduce this by creating a new platform application - the installer menu and category in properties are missing right from the start.
Comment 12 Jesse Glick 2011-05-23 19:32:49 UTC
(In reply to comment #11)
> I found the file under $NBHOME/apisupport/config/Modules and the enabled
> parameter is true.

Yes, that is normal.

> I can reproduce this by creating a new platform application
> - the installer menu and category in properties are missing right from the
> start.

So something is broken but I cannot guess what unless you can figure out how to reproduce the problem from scratch, or find something in your userdir triggering the problem.