Bug 2492

Summary: [Hob2] Blank error message after updating to latest master branch
Product: [Build System, Metadata & Runtime] Hob Reporter: Belen Barros Pena <belen.barros.pena>
Component: hobAssignee: Shane Wang <shane.wang>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: jessica.zhang, jiajun.xu, poky.bs.watcher, poky.watcher, sgw, shane.wang, song.liu, srifenbark
Version: 1.3   
Target Milestone: 1.3 M1   
Hardware: x86   
OS: Multiple   
Whiteboard: Patch out under review
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
blank-error.png
none
clearing up old settings message.png
none
clearing up old settings message - annotated.png none

Description Belen Barros Pena 2012-05-24 10:33:43 UTC
Created attachment 530 [details]
blank-error.png

After pulling the master branch to get the latest changes, I got a blank error message when launching Hob (see attached blank-error.png). When you click the 'Close' button in the error, Hob closes. 

Shane explained this is due to Hob keeping old settings that might be invalid after the branch updates. It can be fixed by issuing 'rm .hob/ -rf' to clear any old settings. 

If this error is detected at launch, Hob should clear any old settings itself so that users don't need to see the error, issue the command themselves and then relaunch.

See the attached 'clearing up old settings message.png' and 'clearing up old settings message - annotated.png' for details of the design, which follow the Gnome HIG (http://developer.gnome.org/hig-book/3.0/windows-progress.html.en), which say: "If progress of a task makes a window temporarily unusable, do not present a modal dialog-like progress window in front of it. Instead, present progress somewhere in the original window, making all its other elements temporarily insensitive. This helps reduce visual clutter."

I am assuming that the process will not take too long, so I have not included a 'Cancel' option. If this assumption is incorrect, we will need to add a 'Cancel' button.
Comment 1 Belen Barros Pena 2012-05-24 10:34:34 UTC
Created attachment 531 [details]
clearing up old settings message.png
Comment 2 Belen Barros Pena 2012-05-24 10:36:53 UTC
Created attachment 532 [details]
clearing up old settings message - annotated.png
Comment 3 Belen Barros Pena 2012-05-24 10:37:15 UTC
See also bug 2483
Comment 4 Belen Barros Pena 2012-05-24 10:38:47 UTC
Scott, if you have a chance, would you mind reviewing the copy of the message (see 'clearing up old settings message.png').

Thanks!

Belen
Comment 5 Scott Rifenbark 2012-05-24 11:57:03 UTC
Belen, 

I reviewed this and I don't have any suggestions.  Looks just fine.

Scott
Comment 6 Belen Barros Pena 2012-05-24 14:32:56 UTC
Thanks, Scott!

Reopening for Shane and his team to work on the implementation.

Cheers

Belen
Comment 7 Shane Wang 2012-06-11 02:56:02 UTC
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=25785d8ddfccfc12af0c677cb519f133be158d1f to fix setting compatible issue between different Hob versions

and

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c0b92702d367466641f88371fbcbc0fdebdbbb96 to fix the blank message issue

for the dialog to clean old settings, leave it to https://bugzilla.yoctoproject.org/show_bug.cgi?id=2338
Comment 8 Belen Barros Pena 2012-06-12 12:54:46 UTC
Hi Shane: I cannot longer replicate this issue. When I update the master branch Hob's interface opens without problems. So I am going to take that as a confirmation that the bug has been fixed.

Regarding the message, I'll update 2338 to make sure we implement the message as part of the fix.

Belen