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 165093 - Scanning projects should end after closing project group
Summary: Scanning projects should end after closing project group
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Parsing & Indexing (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P2 blocker with 6 votes (vote)
Assignee: Tomas Zezula
URL:
Keywords:
: 167965 169444 170521 174821 179965 181005 182160 196390 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-05-13 16:50 UTC by massimo
Modified: 2011-04-06 08:33 UTC (History)
12 users (show)

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 massimo 2009-05-13 16:50:35 UTC
Try this:
1) open a large project group. Scanning projects starts, ok.
2) you immediately change your mind, maybe because you opened the wrong group, and go to File -> Project Group -> none,
to close it, while it is still scanning.
3) scanning projects will continue to run (not sure if indefinitely) after the project group closed, even though at this
point the project tab has no projects to be scanned.
Comment 1 Rastislav Komara 2009-05-14 09:12:50 UTC
Reassigning to parsing and indexing infrastructure.
Comment 2 Vitezslav Stejskal 2009-05-14 11:32:30 UTC
I assume you are using Netbeans 6.7 (beta or a recent dev build). Could you please run your IDE with
-J-Dorg.netbeans.modules.parsing.impl.indexing.RepositoryUpdater.level=FINE flag (eg. <nbinst>/etc/netbeans.conf),
reproduce the problem and attach <ide-userdir>/var/log/messages.log file here. Thanks
Comment 3 massimo 2009-05-26 15:47:27 UTC
Not really, i was using 6.5. Must have missed to set the version when i opened this issue. Setting it now to 6.5.
Comment 4 Vitezslav Stejskal 2009-05-27 09:24:41 UTC
Ok, thanks.
Comment 5 Jan Jancura 2009-09-18 11:29:01 UTC
*** Issue 167965 has been marked as a duplicate of this issue. ***
Comment 6 Jan Jancura 2009-09-18 11:34:14 UTC
*** Issue 169444 has been marked as a duplicate of this issue. ***
Comment 7 Jesse Glick 2010-02-16 15:28:03 UTC
I also quite frequently see scanning continue for quite a while (and on numerous source roots) after all projects have been closed.
Comment 8 Vitezslav Stejskal 2010-02-22 03:08:30 UTC
*** Bug 181005 has been marked as a duplicate of this bug. ***
Comment 9 Jesse Glick 2010-03-17 14:14:56 UTC
*** Bug 182160 has been marked as a duplicate of this bug. ***
Comment 10 Tomas Mysik 2010-03-31 13:32:18 UTC
Changing to P2 because it is really unpleasant. My scenario:
- at work, I have a group with NB modules
- at home, I usually use a group with a PHP project

If I forget to switch to a "PHP" group before I leave work, then at home, I have to wait really looong time because NB modules are being scanned and there's no way to avoid/stop it (changing a group does not help at all).

Thanks a lot.
Comment 11 John Jullion-ceccarelli 2010-04-12 08:42:01 UTC
A few of the duplicates state that just closing the project triggers scanning. This bug says the scanning was happening when they closed the project and closing the project didn't cancel the scanning, which may be as designed but is still probably undesirable (after all, when you reopen the project it's going to scan it anyway, right, so who cares if you stopped scanning half way through when the project was closed?

Anyway, triggering a scan on a project when the project is closed is definitely a bug and needs to be addressed.
Comment 12 Erno Mononen 2010-04-13 15:42:04 UTC
*** Bug 174821 has been marked as a duplicate of this bug. ***
Comment 13 Jan Lahoda 2010-04-29 12:45:07 UTC
*** Bug 179965 has been marked as a duplicate of this bug. ***
Comment 14 kidnapper 2011-01-11 18:46:44 UTC
I'm also seeing this issue with 6.9.1...
Comment 15 Jesse Glick 2011-03-07 14:55:32 UTC
*** Bug 196390 has been marked as a duplicate of this bug. ***
Comment 16 Marian Mirilovic 2011-03-25 23:15:59 UTC
Please evaluate : if you do not plan to fix it for NB 7.0 ask for waiver ASAP.
Comment 17 Tomas Zezula 2011-03-28 13:42:38 UTC
In fact the scan is stopped after finishing the unit of work (root) when the source group is switched.
The currently running RootsWork is canceled by a new one and when the root is done it finishes.
Canceling indexer in the source root is not desired because of cost of restart.
The problem is with successive index update (Refresh Index) scheduled by the indexers. If the indexers of the current running RootsWork schedule some RefreshIndex(es) these are executed. The cancel should kill all such works.
Comment 18 Tomas Zezula 2011-03-28 16:50:45 UTC
Fixed jet-main f2c6f9ea6c8a

Fixed in trunk , if it should be integrated into 7.0, qa should do testing.
And the patch needs peer review as its context is quite complicated.
Comment 19 Marian Mirilovic 2011-03-29 00:33:07 UTC
Ok, thanks for fixing. In my opinion it's too risky for current release, so I would like to postpone it till NB 7.0.1 (next patch release). I agree with WAIVER for NB 7.0
Comment 20 Quality Engineering 2011-03-29 08:43:28 UTC
Integrated into 'main-golden', will be available in build *201103290400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/f2c6f9ea6c8a
User: Tomas Zezula <tzezula@netbeans.org>
Log: #165093:Scanning projects should end after closing project group
Comment 21 Tomas Zezula 2011-04-06 08:33:34 UTC
*** Bug 170521 has been marked as a duplicate of this bug. ***