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

Bug 366628

Summary: [Generation] Logging an INFO message to generation dialog will mark generation as failed
Product: [Technology] Tigerstripe Reporter: Navid Mehregani <nmehrega>
Component: PluginAssignee: Project Inbox <tigerstripe.plugin-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: valentin
Version: unspecified   
Target Milestone: 0.5M0   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:
Attachments:
Description Flags
Generation dialog
none
Generator used
none
Patch
none
Patch containing a Q7 test for this case none

Description Navid Mehregani CLA 2011-12-13 16:01:41 EST
Build Identifier: 

Using the PluginLog.reportStatus(...) API to log an Info message will mark generation as "Failed"!  See attached snapshot for more details.

I've also attached the generator used.  Notice line#119 on MyRunnableRule:
		PluginLog.reportStatus(new Status(IStatus.INFO, "pluginID", "my message."));

This shouldn't cause generation to fail

Reproducible: Always
Comment 1 Navid Mehregani CLA 2011-12-13 16:02:01 EST
Created attachment 208346 [details]
Generation dialog
Comment 2 Navid Mehregani CLA 2011-12-13 16:02:57 EST
Created attachment 208347 [details]
Generator used
Comment 3 Alena Repina CLA 2011-12-20 03:04:30 EST
Created attachment 208591 [details]
Patch

Navid, I've fixed the bug and attached a patch.
Comment 4 Alena Repina CLA 2011-12-20 03:15:09 EST
Created attachment 208592 [details]
Patch containing a Q7 test for this case

Navid, I've also created a Q7 test for such a case and attached it in the testPatch.txt
Comment 5 Valentin Yerastov CLA 2011-12-20 06:37:32 EST
patch has been applied
Comment 6 Navid Mehregani CLA 2012-01-04 17:04:35 EST
Looks good. Thanks!