Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 207410

Summary: [logview] Error Log view does not refresh when new errors are logged
Product: [Eclipse Project] PDE Reporter: Markus Keller <markus.kell.r>
Component: UIAssignee: Jacek Pospychala <jacek.pospychala>
Status: RESOLVED FIXED QA Contact:
Severity: major    
Priority: P3 CC: caniszczyk, jacek.pospychala, markus.kell.r
Version: 3.4   
Target Milestone: 3.4 M3   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch
none
error generator
none
mylyn/context/zip none

Description Markus Keller CLA 2007-10-25 03:40:44 EDT
I20071023-0800

The Error Log view does not refresh when new errors are logged.

I have "Activate on new events" (should be called "Activate on New Events") enabled and the Error Log view does come to front on new events (but does not show them).

Workaround: click "Restore Log".
Comment 1 Chris Aniszczyk CLA 2007-10-25 10:10:55 EDT
can't reproduce from HEAD... damn log view...

yes, it should be "Activate on New Events"
Comment 2 Chris Aniszczyk CLA 2007-10-25 10:11:25 EDT
keeping you in the loop here Jacek 
Comment 3 Markus Keller CLA 2007-10-25 11:55:52 EDT
- Markus Keller: Try it with a big log file.
I pasted
:pserver:bogus@nada.eclipse.org:/cvsroot/eclipse
into the CVS Repositories view, and then refreshed a few times. Then I duplicated the .log's content a few times (blew it up to about 800KB). After a restart, I'm seeing the effect constantly.

- Chris Aniszczyk: ok, I see it now also
Comment 4 Chris Aniszczyk CLA 2007-10-25 12:26:41 EDT
Let's look at this one for M3 Jacek.

With this log error bugs, you're getting to 50 bugs in no time ;)
Comment 5 Jacek Pospychala CLA 2007-10-25 13:27:43 EDT
yes i'm looking into it
Comment 6 Jacek Pospychala CLA 2007-10-29 05:00:39 EDT
Created attachment 81426 [details]
patch

I think there is a different problem - entries are added to wrong session.
Attached is patch.

I'll also attach an example plugin that I've used to create error events.
Comment 7 Jacek Pospychala CLA 2007-10-29 05:01:27 EDT
Created attachment 81427 [details]
error generator

adds a button, that generates some NPE.
Comment 8 Chris Aniszczyk CLA 2007-10-29 10:22:41 EDT
excellent, looks like we found a culprit here.
Comment 9 Chris Aniszczyk CLA 2007-10-29 10:22:43 EDT
Created attachment 81455 [details]
mylyn/context/zip