| Summary: | [tern-project] Including .json at the end of a custom index results in a JavaScript error | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Sebastian Pahnke <pahnke.sebastian> |
| Component: | JS Tools | Assignee: | Michael Rennie <Michael_Rennie> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Michael_Rennie |
| Version: | 13.0 | ||
| Target Milestone: | 13.0 | ||
| Hardware: | PC | ||
| OS: | Mac OS X | ||
| Whiteboard: | |||
Fixed in: http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=cd7d2bcee8df135b4448ca8626120be2ebe8ce3a Thanks Sebastian! |
Consider the tern-project file below. If you use it as is, the content assist works fine. However, if you include the .json extension, a JavaScript exception is thrown, because the file is not found. The reason is a typo in a RegExp in ternWorkerCore/_loadDef /$.json/i should be /\.json$/i tern-project: { "ecmaVersion": 5, "libs": [".definitions/test"] }