Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360897 - RSE - Editor could not be initialized.
Summary: RSE - Editor could not be initialized.
Status: NEW
Alias: None
Product: Target Management
Classification: Tools
Component: RSE (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 7
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: dsdp.tm.rse-inbox CLA
QA Contact: Martin Oberhuber CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-13 18:56 EDT by Aaron CLA
Modified: 2011-10-31 22:15 EDT (History)
2 users (show)

See Also:


Attachments
Initial Java Runtime Error when duplicating the problem (5.79 KB, text/plain)
2011-10-13 18:58 EDT, Aaron CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron CLA 2011-10-13 18:56:04 EDT
Build Identifier: M20110909-1335

I am using a remote project (Linux host) and if I leave file open when I close Eclipse and re-open I get the error "Could not open the editor: Editor could not be initialized.".  See the error details in the attached file "eclipse initial runtime error.txt".  This same error can be replicated by "closing" a local project and opening it again with a file open.

This is cause because the connection to the server is not yet established.  This is part of the bug.  The editor should either close the files before exiting, or, establish a connection to the remote system first.

What makes this MUCH MUCH more annoying is, after establishing the RSE connections and attempting to open the file, the error "Resource '/{projectname}/{filename}' does not exist."  In my case "Resource '/DCCM-Dev_dccm-dev/functions.php' does not exist.".  The only way I can find to get rid of this message is to go to the projects .indexes directory under the workspace and delete the history.index file.  (My path is workspace\.metadata\.plugins\org.eclipse.core.resources\.projects\DCCM-Dev_dccm-dev\.indexes)

I have not experienced the inability to open the file on a local project, but the java runtime error does occur if you have "closed" the project with a file open and then close the IDE.

Reproducible: Always

Steps to Reproduce:
1. Create a remote project from RSE
2. Open a file in the remote project
3. Close eclipse without closing the project or file.
4. Open eclipse
5. Close the runtime error.
6. Establish the RSE session (say by double-clicking on the project name to open it) and try to open the file that was previously open.

---- Local runtime bug ----
1. Create a local project
2. Open a file
3. "Close" the project with the file open.
4. Close Eclipse
5. Open Eclipse.
6. --- Note --- The file should open on a local project, but not a remote project even after the RSE session is established.
Comment 1 Aaron CLA 2011-10-13 18:58:12 EDT
Created attachment 205159 [details]
Initial Java Runtime Error when duplicating the problem
Comment 2 Aaron CLA 2011-10-13 19:06:26 EDT
A "work around" to this bug is to close any open files before closing Eclipse, or a project especially if they are a part of an RSE remote project.

A work around to the 2nd part of the bug, the "resource X not found" for RSE projects is to close the java run-time error and then close eclipse before establishing the RSE session or attempting to open the file.  This will prevent the need to delete the histroy.index file.
Comment 3 Remy Suen CLA 2011-10-13 21:52:32 EDT
RSE bugs go to RSE.
Comment 4 Aaron CLA 2011-10-14 12:10:26 EDT
(In reply to comment #3)
> RSE bugs go to RSE.

I put it in the UI only because part of it is not RSE specific.  The Java Runtime Error will occur if you have a file open in a project, close the project, close eclipse and open it again.  The "second part" of the bug, the resource not being found, is RSE specific.
Comment 5 Remy Suen CLA 2011-10-14 13:25:24 EDT
(In reply to comment #4)
> The Java
> Runtime Error will occur if you have a file open in a project, close the
> project, close eclipse and open it again.  The "second part" of the bug, the
> resource not being found, is RSE specific.

Not sure I quite understand or see the problem you're describing. If I close a local project, the opened file's editor gets closed. When I restart Eclipse, I have no editors open and no errors.
Comment 6 Aaron CLA 2011-10-31 22:15:18 EDT
Sorry about that.  Appears as the local project portion of my report was a conflict somewhere between a plugin I had and the android tools.  I will tinker around some more to see if I can duplicate it again.

I am still able to duplicate the RSE part of this bug with a clean install.