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

Bug 488804

Summary: Without a .tern-project file, Orion tooling behaves differently based on the order that files are selected
Product: [ECD] Orion Reporter: Steve Northover <snorthov>
Component: JS ToolsAssignee: Olivier Thomann <Olivier_Thomann>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P2 CC: Olivier_Thomann
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Steve Northover CLA 2016-03-01 17:19:12 EST
1) get minesweeper-demo
2) select index.html
3) refresh the browser with index.html selected
4) click on main()
5) Open Declaration (it goes there)
6) click on setValue()
7) Open Declaration (is goes there)
8) click on main.js
9) refresh the browser with main.js selected
10) click on setValue()
11) Open Declaration
12) BUG: 'could not find declaration'

This is a long standing issue with Orion tooling when it is used without RequireJS or another module system.  The fact that it is subject to the order in which you select the files can obscure bugs.

Could we do this:  If you click on a file that does not have a module system and there is no .tern-project file, flush Tern and throw away all information except the information for the file that you just clicked on?

If you request an operation that needs Tern to do cross file actions and there is no .tern-project file, we prompt for the file (include a link in the error message or something).
Comment 1 Olivier Thomann CLA 2016-03-03 17:38:37 EST

*** This bug has been marked as a duplicate of bug 487279 ***