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 45078 - Implement cancel/stop/kill "scanning project classpath"
Summary: Implement cancel/stop/kill "scanning project classpath"
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2004-06-17 10:37 UTC by Marian Mirilovic
Modified: 2007-09-26 09:14 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2004-06-17 10:37:33 UTC
Now, when we have a lot of problems with scanning
of projects/classpath and with performance of this
action (especially a long time for first scan and
*sometimes* never ending scan of classpaths,
......) I would like to see possibility 
*cancel / stop / kill * scanning , if user see
that it takes longer time than he/she want spend
-> he/she can kill scan and do another , more
usefull work.....
Comment 1 Martin Matula 2004-06-17 12:53:02 UTC
Seems like a request for a new feature. We can consider it for the
next release.
Comment 2 Marian Mirilovic 2004-06-17 16:18:38 UTC
Martin,
ok , for now I agree it's enhancement, but if you don't fix issues
related to not finished scan, this will be bugfix ;)

BTW: this is P1 / usability problem - user comes to the state from
where he/she can't go out for long long time !
Comment 3 Martin Matula 2004-06-17 16:32:07 UTC
I disagree it is a P1. You should not take into account that there is
a bug that causes that the dialog never goes away - that's a separate
issue and I agree that that issue is P1.
In this case I don't believe it is P1 - it was not identified as P1 in
usability study and by UI team. The window is now implemented
according to the agreement with our UI engineer.
Are there guidelines saying how long time an uncancelable action can
take? What should be the result of cancelling the scanning? Are you
going to propose to put a cancel button on the splashscreen, which can
also take long time on a slow machine?
Comment 4 Marian Mirilovic 2004-06-17 17:27:39 UTC
Martin, 
klidek .... ;)

If HIE desided ... ok .... 

--------------
> You should not take into account that there is
> a bug that causes that the dialog never goes away - that's a separate
> issue and I agree that that issue is P1.

Really, and what about *Re-scan Project classpath* action in Tools
menu ???????
If you will use the same pattern, what does this action in the IDE ????
--------------

I think .... for actions with long run time, is the best solution
progress bar with Cancel button.... especially for actions that user
doesn't invoke explicitely (scanning as it's implemented by our
refactoring invokes scan implicitly )   !!!

My last two xx :
============
next section is about designing dialogs with Progress indication 
from page :
http://www-106.ibm.com/developerworks/web/library/us-progind/?dwzone=web#Externals4
===========
.... a fairly comprehensive list of button labels that can be found on
progress indication displays:
    * Common actions: Stop, Cancel
....
Cancel means rollback or undo while Stop means proceed no further.
....
---------------
something similar can be found in the Jeff Johnson's book  GUI
Bloopers (almanach for developers of UI responsiveness SW)


BTW:  Don't decrease priority, if you disagree reassigne to HIE.
Comment 5 dpavlica 2004-07-02 19:03:00 UTC
My point of view:
There should exist some way to cancel long scanning (more then half 
of minute is really too much) or move it into the background. But I 
would like to ask the following:
1.When user decides to cancel this dialog, he won't be able to use 
Code completion and Refactoring actions (and any other actions?) 
right? 
2.When user moves this scanning into the background, the IDE will be 
too slow anyway for normal work, right ?

Then...It look's like, that with current implementation we haven't 
any other chance, then to leave this dialog as modal.


I think, that ideal solution is to offer to user a chance to skip 
this dialog, move scanning into the background (without using all 
capacity of CPU ;) and then show small progress indication in the 
global status line in the future. User will want to use some feature 
depending on that scanning in the background of course...Then there 
should exist some implementation and UI "hacks". Yes this solution is 
more complicated then modal scanning, but user will appreciate it 
definitely :)


BTW: Re-scan Project classpath action in Tools menu shouldn't exist 
when Refactoring will be stabilized enough in the future. This menu 
item indicates bad implementation or design.
Comment 6 David Strupl 2004-07-12 20:01:57 UTC
This is a defect. Please read my post on nbdev and reply there.
And P1 is correct priority - it is like deadlock, data lost and
everything! Even after restart I had to watch bunch of exceptions from
several modules. The IDE was dead here for sure.
Comment 7 Martin Matula 2004-07-12 20:14:58 UTC
Changing back to enhancement - there was a bug (issue 45077) that
caused what David describes. The bug was fixed today.
Comment 8 thsch 2004-09-05 19:54:35 UTC
I'm voting for this issue, but I'd like to hint at different possible
solutions:
- having the initial scan disabled by a per user / per project / per
package property, so that its not starting in the first place
(might be easier, as it doesn't pose the problem of 'interupted' scans.

- incremental scanning + caching, which means to watch for changes on
the classpath. While this is toughter to implement, it would save us
to rescan such things like rt.jar, jsse.jar, xslt.jar ... all that
things you are not constantly changing in your project...
Comment 9 Martin Matula 2004-09-19 09:56:49 UTC
To thsch: please see issue 47415
Comment 10 Jan Becicka 2004-11-04 11:17:53 UTC
*** Issue 43909 has been marked as a duplicate of this issue. ***
Comment 11 Jan Becicka 2006-10-26 16:27:13 UTC
Javacore module was replaced by Retouche infrastructure. This bug is not valid
in trunk any more.
Comment 12 Marian Mirilovic 2006-10-27 08:19:10 UTC
v/c
Comment 13 Quality Engineering 2007-09-20 11:58:22 UTC
Reorganization of java component