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 175432 - Output window auto-scroll not stopping at exceptions
Summary: Output window auto-scroll not stopping at exceptions
Status: RESOLVED WORKSFORME
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 6.x
Hardware: PC Windows Vista
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 174781
  Show dependency tree
 
Reported: 2009-10-26 15:09 UTC by mclaassen
Modified: 2009-11-03 21:52 UTC (History)
0 users

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 mclaassen 2009-10-26 15:09:43 UTC
In regard to 174781

This still does not work for me.  It was actually a bit inconsistent on subsequent runs.  On running it more, I found
that it did stop sometimes, but these were times when the stack trace was interleaved with the "System Out" messages.  I
added some sleeps and now it behaves consistently...with it not stopping at the exception.

I am now using build 200910260201.  Vista business SP2.  JRE 6.0_18 (early access)  Laptop with Intel dual core CPU
My output window only shows about 12 lines in it.

java version "1.6.0_18-ea"
Java(TM) SE Runtime Environment (build 1.6.0_18-ea-b03)
Java HotSpot(TM) Client VM (build 16.0-b10, mixed mode, sharing)

public class Main {
	public static void main(String[] args) throws Exception {
		for (int i = 0; i < 40; i ++)
			System.out.println("System Out");
		System.err.println("System Err");
		System.out.println("System Out test.Main.main(Main.java:16)");

		Thread.sleep(1000);

		RuntimeException ex = new RuntimeException("Test this");
		ex.printStackTrace(); //prints to System.err

		Thread.sleep(1000);

		for (int i = 0; i < 40; i ++)
			System.out.println("System Out");
	}
}
Comment 1 Jesse Glick 2009-10-27 21:49:47 UTC
Working fine for me in Ubuntu (JDK 5 & 6) and XP (JDK 6). Unless someone from QE is able to reproduce it, all I can say
is to try to track down the problem in a debugger. I cannot guess whether the problem lies in
JavaAntLogger.StackTraceParse failing to set the important flag, or IOColorPrint in the Output Window failing to honor it.
Comment 2 Jesse Glick 2009-11-03 21:52:34 UTC
Closing until more information turns up.