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

Bug 494588

Summary: Investigate producing type indexes on the fly
Product: [ECD] Orion Reporter: Michael Rennie <Michael_Rennie>
Component: JS ToolsAssignee: Project Inbox <orion.client-inbox>
Status: CLOSED WONTFIX QA Contact:
Severity: enhancement    
Priority: P3    
Version: 10.0   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Michael Rennie CLA 2016-05-25 16:32:04 EDT
A follow up to bug 484833 - we should investigate ways to create and load indexes on the fly - from either code (for example from the node_modules entry) or from an existing index (for example from a definitelyTyped index).

Tern has support for creating indexes from source, and prior to 0.18.1 had support for reading definitelyTyped index files.

A few things to think about:

1. I already tried loading ts (typescript) on the client side to play with this - this will never work, ts is too huge, even minified its almost 1MB.

2. we should investigate making a server-side plug-in. This will be dead simple for the node-based server, but will require running ts (or other scripts) in the Java VM for the Java server.

3. the final option would be to create a parser + collector ourselves ( the most work, but would allow us to keep it super light-weight compared to using ts or its ilk.
Comment 1 Michael Rennie CLA 2017-01-10 15:40:14 EST
Closing as part of a mass clean up of inactive bugs. Please reopen if this problem still occurs or is relevant to you. For more details see:

https://dev.eclipse.org/mhonarc/lists/orion-dev/msg04002.html