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

Bug 432194

Summary: Content assist not initialized correctly after editor input changes
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: EditorAssignee: 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:

Description Mark Macdonald CLA 2014-04-07 15:26:23 EDT
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.
Comment 1 John Arthorne CLA 2015-05-05 16:19:40 EDT
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