Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 329504 - XGCONF product view scripts don't see full Program object
Summary: XGCONF product view scripts don't see full Program object
Status: ASSIGNED
Alias: None
Product: RTSC
Classification: Technology
Component: Tools (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Dave Russo CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-04 21:21 EDT by Jon Rowlands CLA
Modified: 2012-12-05 14:21 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.