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 139482 - Delete and readd of 3rd party pre-packaged lib not possible
Summary: Delete and readd of 3rd party pre-packaged lib not possible
Status: RESOLVED DUPLICATE of bug 140189
Alias: None
Product: javascript
Classification: Unclassified
Component: Libraries (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Quy Nguyen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-09 20:23 UTC by camucci
Modified: 2009-02-27 14:45 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 camucci 2008-07-09 20:23:42 UTC
NB 6.5 2008070009

The Library Manager Dialog allows you to delete the pre-packaged 3rd party libraries installed. However, if you attempt
to do this, you get a message indicating that the plugin already exists. 

Using the dojo 3rd party lib as an example -- if you look at the moduleCluster.properties file, the javascript directory
path is: javascript.libraries.dojo.dir=${netbeans.dest.dir}/webcommon1

On my host, after I have gone through the JavaScript Library Manager to delete dojo, I see that the jar file still
resides here: 

cmucci@alaska -> ls *dojo*
org-netbeans-modules-javascript-libraries-dojo.jar
cmucci@alaska -> pwd
/scratch/netbeans-dev-200807080009/webcommon1/modules


Please review these steps conducted for several pre-packaged 3rd party libs - all of which had the same results. When
you try to readd them via the plugin an error message is seen.

STEPS TO REPRODUCE:

1. Install the above build.
2. Remove a 3rd party lib from Netbeans using Tools->Libraries
    - in left frame highlight the JavaScript Library -Dojo for example
    - just below this frame, click Remove
    - click OK to dismiss dialog
3. Go to Tools->Plugins->Downloaded->Add Plugins
   - go to a directory that has the dojo JavaScript Library nbm built
     (I used an internal build from a 3rd party lib developer)
   - highlight the nbm and click Open.
   - An Informational dialog appears indicating: '
      "Plugin JavaScript Library: Dojo 1.1.0" is already installed
   
4. Go to the NB install/webcommon1/modules directory and confirm that the jar hasn't been removed. 
cmucci@alaska -> ls *dojo*
org-netbeans-modules-javascript-libraries-dojo.jar
cmucci@alaska -> pwd
/scratch/netbeans-dev-200807080009/webcommon1/modules

Should this occur? If not, can someone please outline the proper steps to remove this and reinstall via the plugin?
Comment 1 Quy Nguyen 2008-07-09 20:46:10 UTC
Removing the library from the library manager is not sufficient to clean up the library plugin.  The correct way to do
this is to remove the plugin from Tools->Plugins (before or after removing the library from the library manager).  After
you do this and restart the IDE, a new nbm for that module can be installed.
Comment 2 camucci 2008-07-09 20:51:49 UTC
The Library Manager 'Remove' button is slightly misleading in this case. We should consider an RFE perhaps letting the
user know that you do not completely delete this JavaScript Library from Netbeans entirely without having to go through
the additional removal steps that Quy provided here.
 
I'll leave this bug closed, but I believe it should considered for a future enhancement to the lib mgr.
Comment 3 Quy Nguyen 2008-07-09 21:26:14 UTC
Some more testing indicates that this is probably a more serious issue.  Without using a new userdir, it doesn't look
like it is possible to get the library again even if the module is re-installed.  In any case, it is a general library
manager issue not specifically related to javascript libraries.
Comment 4 camucci 2008-07-10 12:54:03 UTC
I have filed another issue against adding the libraries back to NB via the plugin -
http://www.netbeans.org/issues/show_bug.cgi?id=139485

That bug is filed under ajax/javascript - is that the correct category?    

Or, should this bug be reopened?
Comment 5 Quy Nguyen 2008-07-16 01:08:28 UTC
Re-opening to change resolution.
Comment 6 Quy Nguyen 2008-07-16 01:09:23 UTC

*** This issue has been marked as a duplicate of 140189 ***