| Summary: | Server API does not load required plugins properly (was: Tern server handles "type" request wrongly when running on Nodejs environment.) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Troy Tao <troytao> | ||||||
| Component: | JS Tools | Assignee: | Troy Tao <troytao> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | CC: | Michael_Rennie, steve_northover | ||||||
| Version: | 11.0 | ||||||||
| Target Milestone: | 12.0 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows 7 | ||||||||
| See Also: |
https://git.eclipse.org/r/68543 https://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=58f1082da48907e54c0022143a726ecb6b5c670e |
||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
Created attachment 260353 [details]
A second server example which talks to tern directly.
To see a correct output, you can set up another Nodejs script talking to tern directly without the JSTool API. I have uploaded a such example. New Gerrit change created: https://git.eclipse.org/r/68543 There does seem to be a bug in the default plugin loading. We should have the API server import ternDefaults.jjs and mixin the plugins on a default start up the same way we do in ternWorkerCore.js The API change to pass a file array should be removed. Gerrit change https://git.eclipse.org/r/68543 was merged to [master]. Commit: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=58f1082da48907e54c0022143a726ecb6b5c670e Closing fixed. Thanks Troy! |
Created attachment 260352 [details] A nodejs server example. To reproduce this bug, first get the build of JSTools, then write a Nodejs script (for example purpose, see the attachment) and run the script sending a "type" query to the JSTools API (which is the orionJavaScript.js in the example). The returned output turned out to be incomplete and useless.