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

Bug 470509

Summary: Orion Node Tern plugin can choose wrong dependency
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Michael Rennie <Michael_Rennie>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public, Silenio_Quarti, steve_northover
Version: 9.0   
Target Milestone: 10.0   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2015-06-18 12:09:40 EDT
Steps:

1. Grab the Ace editor code: https://github.com/ajaxorg/ace.git
2. have some other repos in your workspace that also have one or more scripts with the name 'editor.js'
3. open 'popup.js' from Ace
4. open the decl for the required 'Editor' in the line var Editor = require('../editor').Editor <- this decl
5. In my testing sometimes the wrong dep would be loaded (the relative path code fails to find the right one)
Comment 1 Michael Rennie CLA 2015-06-24 14:55:58 EDT
Fixed in:

http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=56f71bf57e3c21e2bfacc107aae4a62fbe6b5b84

Also added new test suite for the scriptResolver