Bug 1270

Summary: hob layer is broken
Product: [Build System, Metadata & Runtime] Hob Reporter: Jessica <jessica.zhang>
Component: hobAssignee: Joshua Lock - Disabled <josh>
Status: RESOLVED OBSOLETE QA Contact:
Severity: minor    
Priority: Low CC: jessica.zhang, jiajun.xu, lianhao.lu, liping.ke, poky.bs.watcher, poky.watcher
Version: unspecified   
Target Milestone: 1.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 1271    

Description Jessica 2011-07-21 23:25:15 UTC
When I tried to add a layer in hob, first noticed all the packages are wiped out and in the command line, the following trace:

Traceback (most recent call last):
  File "/home/jzhang/poky-master/bitbake/lib/bb/ui/hob.py", line 267, in update_model
    self.model.set_selected_image(self.selected_image)
  File "/home/jzhang/poky-master/bitbake/lib/bb/ui/crumbs/tasklistmodel.py", line 517, in set_selected_image
    image_contents=True)
  File "/home/jzhang/poky-master/bitbake/lib/bb/ui/crumbs/tasklistmodel.py", line 395, in include_item
    name = self[item_path][self.COL_NAME]
TypeError: could not parse subscript as a tree path
Comment 1 Joshua Lock - Disabled 2011-07-22 09:52:09 UTC
I can't reproduce this here on Poky master with the meta-demo layer. Which layer were you adding? How did you add it?
Comment 2 Jessica 2011-07-22 10:01:31 UTC
I added meta-rt, I first using the layer menu under file, then used add layer under Layers Add Layers.  Now after clean up my layer mess and restart hob, I can't reproduce it either, so I'll lower the priority to low since now it ended into a sighting...btw, why we have layer item under File.  If possible, I'd like us to have one place to manipulate layer to avoid unnecessary complexity of code and lead to errors...
Comment 3 Jessica 2011-08-08 13:40:21 UTC
Seems can't reproduce the issue with latest hob