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

Bug 329504

Summary: XGCONF product view scripts don't see full Program object
Product: [Technology] RTSC Reporter: Jon Rowlands <rowlands>
Component: ToolsAssignee: Dave Russo <d-russo>
Status: ASSIGNED --- QA Contact:
Severity: normal    
Priority: P3 CC: dfriedland, sascha
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Jon Rowlands CLA 2010-11-04 21:21:24 EDT
XGCONF instantiates the xdc.cfg.Program object for product view
scripts, to allow filtering of the product view based on device.
For simplicity, not everything in Program is instantiated, e.g.
the platform is, but the target is not.

Some platform packages reference missing parts of the Program
object and fail while executing the product view script. The
failure is partially mitigated since the product view does not
completely fail, it just loses the filter capability, but the
behavior is unexpected and undesirable.

To reproduce, use ti.platforms.evmDA830 platform in a project
based on XDCtools 3.21, and look for an error on the debug
console while refreshing the product view:
  TypeError: Cannot read property "target" from undefined

The Program object should be fully instantiated. Care should be
taken not to noticeably increase the time it takes to populate
the product view.