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 34828 - Process output discarded when switching session
Summary: Process output discarded when switching session
Status: VERIFIED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Terminalemulator (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ tboudreau
URL:
Keywords: UI
: 26206 30705 38088 39258 39934 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-09 15:58 UTC by Milan Kubec
Modified: 2008-12-23 08:26 UTC (History)
3 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 Milan Kubec 2003-07-09 15:58:46 UTC
Process output is discarded when user changes
debugging session.
Comment 1 Milan Kubec 2003-07-09 16:09:34 UTC
Not only process output, but all tabs in Output window are cleared
when switching session. IMO it should open another set of tabs in
Output window when starting new session. As it's seems as designed
functionality lower prio or change to enhancement if you think. Adding
keyword UI, because it can be considered as usability issue.
Comment 2 Maros Sandor 2003-12-01 11:15:14 UTC
Each new debugger session now opens its own Process Output and 
Debugger console views.
Comment 3 Maros Sandor 2003-12-05 08:32:00 UTC
*** Issue 26206 has been marked as a duplicate of this issue. ***
Comment 4 Martin Grebac 2004-01-06 08:38:41 UTC
 The fix is quite a problem for JSP debugger, because it tries to
start the debugger session several times (we don't know when the
server is ready) and for each try now a new debugger console is
started. Is there a way how to supress this behaviour?
Comment 5 Maros Sandor 2004-01-06 11:59:41 UTC
OutputTabInner.closeInputOutput() seems to fail. Please evaluate.
Comment 6 _ tboudreau 2004-01-06 15:07:13 UTC
Adding Marek to cc - he did the changes in the output window for the
new winsys - Marek, any idea what's going on?  Do you want to take
this issue?
Comment 7 Maros Sandor 2004-01-12 14:03:00 UTC
*** Issue 38088 has been marked as a duplicate of this issue. ***
Comment 8 Martin Grebac 2004-01-13 21:38:56 UTC
*** Issue 30705 has been marked as a duplicate of this issue. ***
Comment 9 _ tboudreau 2004-01-14 02:00:23 UTC
Marek, since you did the UI changes to the output window for the new
window system, I'm reassigning this issue to you - it looks like
something changed with the way tabs are reused, so that old debugger
tabs don't stay open anymore.

If you don't want it, give it back, but you can probably fix it faster
since you know what you did.
Comment 10 Martin Grebac 2004-01-27 14:03:33 UTC
*** Issue 39258 has been marked as a duplicate of this issue. ***
Comment 11 Milan Kubec 2004-02-05 10:13:58 UTC
Could this be fixed to 3.6, it's very anoying behavior if user has to
close all those opened debugger output tabs when doing some extensive
debugging. There is also couple of duplicates. Thanks.
Comment 12 _ tboudreau 2004-02-05 11:37:28 UTC
AFAIK Marek is out sick, but maybe I can take a look at it while looking at the no-output-
in-sdi issue (the two are probably related).

*Don't* reassign this to me yet, though :-)
Comment 13 Maros Sandor 2004-02-11 09:32:09 UTC
*** Issue 39934 has been marked as a duplicate of this issue. ***
Comment 14 Milan Kubec 2004-02-18 13:20:27 UTC
There are 5 duplicates. Is there any progress on this issue? Thanks.
Comment 15 _ tboudreau 2004-02-21 16:09:08 UTC
Taking this issue.
Comment 16 _ tboudreau 2004-02-21 16:20:57 UTC
It is a silly clash of method names, owing to the fact that the implementation of 
InputOutput *is* the component that displays the output.  So it is checking isOpened() - 
testing if the TopComponent component is open in the window system - when it should 
be testing if the output stream is still open.  This probably worked before, since each 
output tab was a TopComponent managed by the window system.  Now, however, they're 
just components in a tabbed pane which extend TopComponent for legacy reasons.

Should be simple enough to fix.
Comment 17 _ tboudreau 2004-02-21 16:48:07 UTC
Fixed in trunk.

Checking in src/org/netbeans/core/output/OutputTabInner.java;
/cvs/core/output/src/org/netbeans/core/output/OutputTabInner.java,v  <--  
OutputTabInner.java
new revision: 1.20; previous revision: 1.19
done
Checking in src/org/netbeans/core/output/OutputView.java;
/cvs/core/output/src/org/netbeans/core/output/OutputView.java,v  <--  
OutputView.java
new revision: 1.16; previous revision: 1.15
done
Processing log script arguments...
Comment 18 _ tboudreau 2004-02-21 17:27:30 UTC
JSP folks, note:  If you create the IO several times while you're polling to see if the server 
started, you may see sets of tabs appear and disappear as you do this.  There's not going 
to be anything I can do about that for promo-D - winsys must be accessed from the event 
queue, and the showing/hiding is going to get serialized on the event queue as well.

The core problem is that the implementation of InputOutput *is* the component - that's 
just a design bug that needs to be fixed, but requires more rewriting than is going to be 
possible this close to a release.

I've tested switching sessions in the debugger, and the output is preserved as it should be.  
Comment 19 Milan Kubec 2004-02-24 09:03:17 UTC
Verified in dev-200402221900. Thanks Tim.
Comment 20 Quality Engineering 2008-12-23 08:26:57 UTC
moving terminal emulator issues to terminalemulator component.
To see the correct version and target milestone of this issue look at Issue
Activity table.