Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 324064 - [build] After closing the build output console it can not be reopened
Summary: [build] After closing the build output console it can not be reopened
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.7   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-31 05:01 EDT by Eike Stepper CLA
Modified: 2011-01-05 14:44 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eike Stepper CLA 2010-08-31 05:01:08 EDT
Try:

- Select build and click "Show Build Output in Console"
- Close the particular console page that showed up (not the console itself, that doesn't produce the issue!)
- Click "Show Build Output in Console" again - Nothing happens!!

Funny:

- Refresh the builds
- Click "Show Build Output in Console" again - Now it works!!
Comment 1 Steffen Pingel CLA 2010-08-31 16:18:28 EDT
Thanks. Fixed in cvs. It worked after refreshing because consoles are tracked based on object identity and refresh will actually retrieve a new IBuild. I'll look into fixing that as part of bug 323328 to avoid setting a new build on the plan unless the last build actually changes.

Also added a check to stop retrieving contents when the console is closed while output is streamed to prevent these errors:

!ENTRY org.eclipse.ui.console 4 120 2010-08-31 13:08:09.103
!MESSAGE Error logged from Console plug-in: 
!STACK 0
java.io.IOException: Output Stream is closed
	at org.eclipse.ui.console.IOConsoleOutputStream.encodedWrite(IOConsoleOutputStream.java:230)
	at org.eclipse.ui.console.IOConsoleOutputStream.write(IOConsoleOutputStream.java:225)
	at org.eclipse.ui.console.MessageConsoleStream.print(MessageConsoleStream.java:56)
	at org.eclipse.ui.console.MessageConsoleStream.println(MessageConsoleStream.java:81)
	at org.eclipse.mylyn.internal.builds.ui.console.BuildConsole$1.handle(BuildConsole.java:95)
	at org.eclipse.mylyn.builds.internal.core.operations.GetBuildOutputOperation.doGetOutput(GetBuildOutputOperation.java:77)
	at org.eclipse.mylyn.builds.internal.core.operations.GetBuildOutputOperation$1.doExecute(GetBuildOutputOperation.java:95)
	at org.eclipse.mylyn.builds.internal.core.operations.BuildJob.run(BuildJob.java:79)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)