| Summary: | Content assist not initialized correctly after editor input changes | ||
|---|---|---|---|
| Product: | [ECD] Orion | Reporter: | Mark Macdonald <mamacdon> |
| Component: | Editor | Assignee: | Project Inbox <orion.editor-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 5.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
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/msg03444.html |
1. Create 2 files: foo.txt (empty file) and bar.js (containing anything -- even a single semicolon ";" will do). 2. Open foo.txt in the editor, then Reload the page (this is important) 3. Now click bar.js in the file tree -- this will change your editor input without reloading the page. 4. Type some JS code that triggers content assist, for example: "foo". (note the dot afterward) 5. At this point an error occurs: > Error retrieving content assist proposals contentAssist.js:286 > Error: Maximum call stack size exceeded > at Object.PluginRegistry.internalRegistry.handleServiceError (http://localhost:8080/orion/pluginregistry.js:1029:29) > at Object._messageHandler [as handler] (http://localhost:8080/orion/pluginregistry.js:389:55) > at http://localhost:8080/orion/pluginregistry.js:1075:33 > ... From here on, you can only get template proposals -- type inferencing is dead. If you reload the page while bar.js is open, content assist works OK. What seems to be breaking it is when the editor initially loads a non-JS file, then you switch to a non-JS file. Oddly however, if bar.js is an empty file, there is no problem switching to it.