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

Bug 488989

Summary: [tern] Make sure the proper libs are loaded correctly based on the ecmaVersion in the .tern-project file
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: 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-03 16:59:18 EST
We need to do some post-processing on the .tern-project entries prior to trying to start the server with them.

For example, if a user sets ecmaVersion to 6, we need to make sure the ecma5 and ecma6 libs are included. If the user sets ecmaVersion to 5, we need to make sure that the ecma6 lib is not loaded (even if they put it in their .tern-project file).

We should also sort the lib entries prior to passing them in to Tern, that will avoid the weird ecma5 / ecma6 lib dependency I found.