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.
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
->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.
Is this problem in window system or output window? Also CC Jesse who knows something about ant module
Probably executor problem. It should call InputOutput.select() to make proper output tab visible. I'll try it.
It *does* call select, as a result of the fix for issue #16720. See org.apache.tools.ant.module.run.TargetExecutor.
Sorry, my comment was about Lukas's part, external execution - not ant.
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
The fix looks easy. Should this be fixed in the next bugfix release?
OK, I'll send request for integration.
Integrated in orion_fcs
verified in #020410_2
Resolved for 3.4.x or earlier, no new info since then -> closing.