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

Bug 488897

Summary: [problems] The metadata object passed through 'Show Problems' is incomplete
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: ClientAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: 12.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2016-03-02 16:04:11 EST
Steps:

1. create a new empty project
2. add a .tern-project file with the following contents:
{
	"plugins": {},
	"libs": ["ecma5"],
	"ecmaVersion": 5,
	"dependencyBudget": "A"
}
3. select the project, run the Show Problems menu item
4. notice the resulting view is empty, even though there is a problem in the .tern-project file

Debugging through and our validator check to make sure we are in a .tern-project file, it fails because 'metadata.name' is undefined. The platform editorContext provides this value, and so should the editorContext passed through the problems view.