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 178435 - Can't uninstall plugins - FoD downloads them again
Summary: Can't uninstall plugins - FoD downloads them again
Status: RESOLVED FIXED
Alias: None
Product: ide
Classification: Unclassified
Component: Features On Demand (show other bugs)
Version: 6.x
Hardware: PC Linux
: P2 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-10 08:54 UTC by kidnapper
Modified: 2010-04-12 00:47 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
thread dump showing FoD is working (20.63 KB, text/plain)
2009-12-11 07:38 UTC, dlipin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kidnapper 2009-12-10 08:54:03 UTC
I have just downloaded, and installed the new NB 6.8, and as my first step at using it, I wanted to uninstall some plugins, which are not useful to me, so
I went to Plugins, Installed, check 'Show details', then
I checked JSF and Struts plugin, and clicked on Uninstall button.
The application has been restarted, but in the Plugins I can still see the plugin and it is activated too.
After that, I tried to disable these plugins with two others (so JSF, Struts, Spring Beans and Spring MVC), but didn't worked too.

I have Java EE projects, but they are built on Wicket (not JSF, etc.), could this somehow interfere with the plugins?
Comment 1 dlipin 2009-12-10 10:41:32 UTC
It works perfectly for me.
Which distribution was that? Java or All?
Have you activated anything before plugins uninstallation?
Have you imported settings/plugins from previous versions on IDE first startup?
Comment 2 kidnapper 2009-12-10 10:45:51 UTC
It was 'Java'.
The only thing I did after install, was to open some projects of mine, which enabled the Java EE and Web module (there are some reference issues, because my GF server isn't setted yet, but nothing else), after that I went to disable these plugins.
I did not imported previous settings.
Comment 3 dlipin 2009-12-11 05:22:48 UTC
I did the following steps and haven`t experience this issue:
1) Install NetBeans 6.8 "Java" with default settings
2) Run IDE, didn`t import any settings
3) Opened a couple of Java Web applications which I have -> that results in "Java Web and EE" activation shown in the status bar
4) Opened Tools->Plugins, Installed tab, switched to detailed view
5) JSF and Struts plugins are shown as active
6) Checked then, clicked on "Uninstall", proceed with the uninstallation and restarted IDE
7) After restart I no more see them in Tools->Plugins, Installed tab.


Can you reproduce the issue with a clean userdir (remove ~/.netbeans/6.8)?
If so, could you please attach those projects to the issue (or send me directly - dlipin at netbeans.org)?

Thanks,
Dmitry
Comment 4 kidnapper 2009-12-11 06:08:55 UTC
I did the following steps:
1) rm -rf .netbeans/6.8
2) start netbeans  (no import)
3) plugins -> uninstall Struts plugin -> Restart IDE now

Result:
The plugin is indeed uninstalled.

4) open project (I sent it to you through email) -> everything OK
5) open required modules (because it is a Maven Pom project)

Result:
The Scanning projects is causing 100% CPU load on both core.

5) Exit from NetBeans, then start it again.

Result:
Scanning projects now finishes, but after finish, it has a constant 100% CPU load on single core.

6) Plugins -> Install Struts plugin -> no IDE restart needed

Result:
Right after the plugin is installed, and the status bar is showing Turning on modules done, the 100% CPU load stops and everything works just fine.
Comment 5 dlipin 2009-12-11 07:38:38 UTC
Created attachment 92419 [details]
thread dump showing FoD is working
Comment 6 dlipin 2009-12-11 07:40:41 UTC
It looks like FoD re-downloads and re-installs those modules.
At least, I see such activity after restart (see the thread dump made). "Downloading Java Web and EE" progress is showing in the status bar at this time.
Passing to Jarda to comment on that.
Comment 7 Jaroslav Tulach 2010-02-03 11:34:50 UTC
Interesting issue. Thanks for the report.
Comment 8 Jaroslav Tulach 2010-03-24 16:42:27 UTC
I guess I need the sample project as well to simulate the problem, Dmitry, can you provide it to me? Thanks.
Comment 9 kidnapper 2010-03-25 09:45:56 UTC
I've forwarded the project to you too.
So the problem is, that this project is using Maven with Wicket, and I can't uninstall the Struts plugin even though the project doesn't use it.
Comment 10 Jaroslav Tulach 2010-03-25 10:41:30 UTC
Reproduced. Thanks. Very funny behavior. The workaround is to leave the Struts module installed, but manually disable it. Performance will be the same as with uninstalling and this bug will not appear.

I see whether I find a way to honor your decision to not have struts installed. The problem is that this decision is not recorded anywhere and I can hardly distinguish between uninstalling and never having it before. But true, the system shall not download and install modules without asking.
Comment 11 kidnapper 2010-03-25 11:15:09 UTC
What do you mean on 'manually disable it'? I just tried to Deactivate the plugin in Tools | Plugins | Installed, but after an IDE restart there goes an Activating Java Web and EE progressbar, and the Struts plugin is activated again.

(In reply to comment #10)
> Reproduced. Thanks. Very funny behavior. The workaround is to leave the Struts
> module installed, but manually disable it. Performance will be the same as with
> uninstalling and this bug will not appear.
Comment 12 Jaroslav Tulach 2010-04-11 17:43:25 UTC
The download when project opened fixed in ergonomics#470ae490543c
Comment 13 Quality Engineering 2010-04-12 00:47:00 UTC
Integrated into 'main-golden', will be available in build *201004120229* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/470ae490543c
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #178435: Never download any additional modules even they could be handy for just opened project