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 95201 - progress bar does not in some cases display proper information
Summary: progress bar does not in some cases display proper information
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL: http://ui.netbeans.org/docs/ui/progre...
Keywords: UI
Depends on:
Blocks: 87801
  Show dependency tree
 
Reported: 2007-02-12 09:38 UTC by Ondrej Langr
Modified: 2007-08-21 17:19 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
progress bar displaying info about a running application in NB6 Dev (29.60 KB, image/png)
2007-02-12 09:46 UTC, Ondrej Langr
Details
close process button (508 bytes, image/png)
2007-03-23 14:11 UTC, Ondrej Langr
Details
show list button (27.79 KB, image/png)
2007-03-23 14:11 UTC, Ondrej Langr
Details
hide list button (27.94 KB, image/png)
2007-03-23 14:11 UTC, Ondrej Langr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Langr 2007-02-12 09:38:38 UTC
In some cases (e.g. running applications) progress bar appearance (an empty bar
or no information displayed) confuses the user and does not reflect what is
happening. 

Contemporary state is a result of bugfix 63586.
Comment 1 Ondrej Langr 2007-02-12 09:46:15 UTC
Created attachment 38343 [details]
progress bar displaying info about a running application in NB6 Dev
Comment 2 Ondrej Langr 2007-02-12 10:36:31 UTC
The specification is available (link) but has not gone through UI review yet. 
Comment 3 Milos Kleint 2007-02-12 10:50:14 UTC
how is your special case spec related to the general one that was done by Jindra
and which the current ui implements? 
http://ui.netbeans.org/docs/ui/progress_indication/progress_indication_spec.html

how can implementing a enhancement result in P2 bug?
Comment 4 jrojcek 2007-02-12 13:05:51 UTC
I asked Ondra to file the P2 bug. The main reason is the misleading indication with "empty" progress bar 
when application is already running. The user runs a project with "Run Main Project" menu items, which 
starts showing the progress bar because it's being built. Then the project starts up and the progress bar 
becomes empty. The empty progress is really confusing because it doesn't really indicate the application is 
already running. It looks like it failed or it started again.

So this is really a usability bug.
Comment 5 Milos Kleint 2007-02-12 13:33:09 UTC
if I recall correctly the progress bar shall display something like "Running" or
"debugging". I've checked and it doesn't. that's probably a bug.
Comment 6 Ondrej Langr 2007-02-12 13:42:05 UTC
Exactly. This spec. intends to fix the bug plus proposes some enhancements.

Comment 7 Ondrej Langr 2007-03-22 11:52:03 UTC
The spec. has passed the UI review and is ready for implementation.
Comment 8 Ondrej Langr 2007-03-23 14:11:03 UTC
Created attachment 39868 [details]
close process button
Comment 9 Ondrej Langr 2007-03-23 14:11:28 UTC
Created attachment 39869 [details]
show list button
Comment 10 Ondrej Langr 2007-03-23 14:11:50 UTC
Created attachment 39870 [details]
hide list button
Comment 11 Antonin Nebuzelsky 2007-07-12 09:40:05 UTC
> if I recall correctly the progress bar shall display something like "Running" or
> "debugging". I've checked and it doesn't. that's probably a bug.

This part is a bug and I agree it should be fixed in 6.0. The rest is an enhancement.

Milosi, change this issue to enhancement and set the TM to future after you fix the part with "Running" text in the
not-moving progress bar.
Comment 12 Ondrej Langr 2007-07-12 10:44:04 UTC
Please note that also, due to NetBeans rebranding, the old icons should be replaced by the new ones attached here.
Comment 13 jrojcek 2007-07-12 11:42:17 UTC
I think if the progress bar displays the "running" label for running apps as described in Ondrej's spec, then it's okay  to  lower the priority to P3. The usability 
problem with empty progress is still there, but I hope users can eventually figure out what's going on.

After 6.0 it should be fixed properly according to Ondrej's spec.
Comment 14 Milos Kleint 2007-08-20 13:22:00 UTC
it seems the ant build isn't calling the ProgressHandle.suspend(String) method when the build starts executing the user
program. I have only found the NbBuildLogger.checkForStop() method that will call suspend() if there is no ant build
output for 5 seconds. once there is some additional output, it switches back to indeterminate progress bar.

The ant support shall call suspend("Running") or suspend("Debugging") when the appropriate section of the build is
encountered. And it shall switch back to determinate/indeterminate mode only when the user's program is finished.
Comment 15 Jesse Glick 2007-08-21 00:57:07 UTC
I think issue #87801, not issue #63586, is being referred to. At popular request, no animation is shown if there is no
recent activity from an Ant process.

I don't know what is wanted of the Ant module here. What exactly should be displayed in the progress bar under which
conditions? The UI spec doesn't seem to mention anything of the sort. Also please bear in mind that there is no
straightforward way to tell why an Ant process is paused with no output - an application might be being run in plain
mode, or be being debugged, or the script might be compiling an especially large source tree, or (in the case of custom
build scripts) downloading a large file, waiting for a server to restart, etc. etc. I can't think of any single label
which would be meaningful for these different situations.
Comment 16 Milos Kleint 2007-08-21 07:46:37 UTC
AFAIK http://ui.netbeans.org/docs/ui/progress_indication_running/ says the there should be the word "running" (without a
progress bar) when a user program is running. The spec is somewhat vague in respect to what are the cases when "running"
is to be shown. Is it always for any an build execution? In my understanding it's only when the user program is being
executed/debugged.

I've argued that for 6.0 I can't get rid of the progress bar, but instead write  "running" in the progress bar temporarily. 
Comment 17 Milos Kleint 2007-08-21 08:14:30 UTC
AFAIK http://ui.netbeans.org/docs/ui/progress_indication_running/ says the there should be the word "running" (without a
progress bar) when a user program is running. The spec is somewhat vague in respect to what are the cases when "running"
is to be shown. Is it always for any an build execution? In my understanding it's only when the user program is being
executed/debugged.

I've argued that for 6.0 I can't get rid of the progress bar, but instead write  "running" in the progress bar temporarily. 
Comment 18 Jesse Glick 2007-08-21 17:19:22 UTC
Ah, I was supposed to look at .../progress_indication_running/, not .../progress_indication_spec.html.

So I added "running..." when Ant goes into sleep mode during a <java> or <exec> task. Seems to work for both
j2seproject's and NBM projects.

Checking in Bundle.properties;
/shared/data/ccvs/repository/ant/src-bridge/org/apache/tools/ant/module/bridge/impl/Bundle.properties,v  <-- 
Bundle.properties
new revision: 1.10; previous revision: 1.9
done
Checking in NbBuildLogger.java;
/shared/data/ccvs/repository/ant/src-bridge/org/apache/tools/ant/module/bridge/impl/NbBuildLogger.java,v  <-- 
NbBuildLogger.java
new revision: 1.32; previous revision: 1.31
done