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.
Write a small program that prints 100 lines and exits. Select it and press F6 multiple times. You will get multiple OW tabs happily echoing the lines with each tab named "SmallProgram - I/O". The problem is that as each one terminates it's tab is removed (except the last one). So if there was some important output or exception information it's going to get missed.
I have tried and the behaviour is the same since NB3.2 (3.3, 3.4). I don't say it is right or wrong. Just saying that it has been like this for ages. UI team (Jano) please evaluate and specify the correct behaviour. I don't know what should be we with it. Please note that if you leave the tabs there you will end up with lot of output tabs when repeatedly running the same program.
*** Issue 19022 has been marked as a duplicate of this issue. ***
I think this is as-designed, provided you have Execution Settings | Output Tab Behavior set to Clear & Reuse. Set it to New Tab Each Time if you want, or Reuse and Append. Click the settings node and press Help. Changing this property seems to have no effect for me, which appears to be some strange settings thing I will file separately.
Aha, I didn't know about the option. So I am closing this report as invalid.
Not quite. a) I tried with "New Tab Each Time" and if you execute a short program by gunning F6 (so that one isn't done before you start the next) you will get multiple Tabs and all but one will vanish! b) Even in the Clear and Reuse mode what I reported shouldn't happen. You start a new copy of the same program while the first copy hasn't finished. You _do_ want a new Tab even if the policy is Clear & Reuse don't you? And you do want it _not_ to vanish when it's done don't you?
Ivan is right, something is very wrong here. New Tab Each Time does not work at all; works sort of like Clear & Reuse except that a new tab is temporarily opened (then deleted). The other modes work if you wait for the previous process to finish before continuing; if you start a new process while the old is running, new tabs will be opened and then closed; not clear why. Perhaps something is necessary to prevent output from two simultaneous processes from colliding, but the current behavior does not seem right at all.
Target milestone was changed from '3.4' to TBD.
Here is how "Output tab behavior" property from the Execution Settings should work when a new process is executed: * Net Tab Each Time Always open a new tab independently of the existent tabs in Output window. Never close the output tab automatically. * Clear & Reuse First, try to reuse the tab of the same process (I am nor sure if this is precise, I mean the same main class) that has been terminated and the tab is still opened. If there are more such tabs choose the first such tab from the left (better say a tab with lowest index) and clear it. Never reuse tab of running process. If there isn't appropriate tab to reuse, open a new tab. Never close the tab automatically. * Append & Reuse Behaves same way as Clear & Reuse but doesn't clear reused tab. So, the problem is as Ivan said an automatic closing of output tabs, which should happen in neither option.
Ivan, Trung, Jesse - if this has to be fixed for 3.5 please set the priority to P2. Thanks.
Changed owner David S. -> David K.
*** Issue 34006 has been marked as a duplicate of this issue. ***
changing owner dkonecny -> pnejedly
Works for me as specified by Jan now. No automatic closing at all.
closed