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 21015 - Tabs in output window are not switched to show output from executed file
Summary: Tabs in output window are not switched to show output from executed file
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Execution (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-02-28 15:50 UTC by Milan Kubec
Modified: 2008-12-23 13:36 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 2002-02-28 15:50:34 UTC
During ant target execution output tabs were not switched to correct one to show
output from executed target when IDE switched to Running workspace. It happens
only when action *'Run Target'* from pop-up menu for ant script is used.
Actually it switched to correct one, but immediatelly switched back to another tab.

When I was using action *'Execute'* on each target, tabs were switched correctly.

It looks like 'Run Target' action and 'Execute' action are using different way
of opening output tabs.

Steps to reproduce:
1) open ant script with couple targets
2) execute that script by douple clicking on it
3) execute couple of targets by action 'Run Target'
4) execute some target (by action' Run Target') which you have already executed
ant output tab won't be switched
Comment 1 Lukas Hasik 2002-02-28 16:53:47 UTC
->P2 increasing priority. It's very annoying. 

I was able to reproduce it with NB3.3.1 with easier steps. Here they are :
1, create two classes with main(). Let he classes write something to
System.out
2, execute class 1 by popup -> new tab with output in OW appears
3, execute class 2 by popup -> new tab with output in OW appears
4, execute again class 1 by popup -> tab isn't switched 

It doesn't occure every time but when it happens then the problem
persist until restart of IDE.
Comment 2 _ ttran 2002-02-28 20:24:08 UTC
Is this problem in window system or output window?
Also CC Jesse who knows something about ant module
Comment 3 akemr 2002-03-01 09:04:16 UTC
Probably executor problem. It should call InputOutput.select() to
make proper output tab visible. I'll try it.
Comment 4 Jesse Glick 2002-03-01 10:29:29 UTC
It *does* call select, as a result of the fix for issue #16720. See
org.apache.tools.ant.module.run.TargetExecutor.
Comment 5 akemr 2002-03-01 10:32:45 UTC
Sorry, my comment was about Lukas's part, external execution - not ant.
Comment 6 akemr 2002-03-01 13:23:17 UTC
Fixed in trunk, see following diff in RunClassThread:

http://www.netbeans.org/source/browse/core/src/org/netbeans/core/execution/RunClassThread.java.diff?r1=1.1&r2=1.2
Comment 7 Jan Chalupa 2002-04-08 12:29:15 UTC
The fix looks easy. Should this be fixed in the next bugfix release?
Comment 8 akemr 2002-04-10 10:53:41 UTC
OK, I'll send request for integration.
Comment 9 akemr 2002-04-11 07:05:27 UTC
Integrated in orion_fcs
Comment 10 Jan Zajicek 2002-04-11 10:42:18 UTC
verified in #020410_2
Comment 11 Quality Engineering 2003-07-01 16:49:24 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.