Eclipse Keeps Losing My Project [message #682098] |
Fri, 10 June 2011 08:01  |
Eclipse User |
|
|
|
I have been creating a large Eclipse C++ project (13 .cpp files and 17 .h files, all less than 70 KB) for about four months. It is on Fedora Linux running under VMWare.
The Newcomers forum folks suggested that I try this question over here:
About a month ago, my computer froze and I was ultimately forced to pull the plug and re-boot with everything open. I am not sure if there is a causal relationship, but later that day, when I went into the project, for every open file, the editor showed an icon of white minus sign in a red circle and the words, "Could not open the editor. The file does not exist." The project was also conspicuously absent from the Project Explorer pane on the left. When I went into Project -> Properties, the Location showed "resource does not exist." All of my other projects, most of which had been earlier small warm-up exercises, continued to work fine. After some Googling for an explanation, I was forced to re-create the project. Then, the same thing happened again a week later, without me "pulling the plug" on the PC. Then this started happening every few days, and now it happens every second or third time I exit and re-enter Eclipse. I created a new VMWare virtual and re-installed Eclipse, bringing over only my source code files, but it didn't help. What is happening? Why is it happening? If it continues, soon I will have to move to a different IDE. I am getting faster at re-building the project, but still expending time and frustration on this. Has anyone seen this behavior before?
Thanks.
Brandon
|
|
|
|
|
|
|
Re: Eclipse Keeps Losing My Project [message #723570 is a reply to message #723275] |
Thu, 08 September 2011 16:46   |
Eclipse User |
|
|
|
Axel Mueller wrote on Thu, 08 September 2011 04:39Brandon wrote on Wed, 07 September 2011 16:12This message has been read over 2000 times and never answered. No matter how many times I re-install, and no matter how many brand new VMWare virtuals I re-install in, Eclipse randomly cannot find my project when I start up forcing me to re-create the project and re-enter the configuration information, and the whole Eclipse organization has no thoughts about it.
Where is your workspace and project stored? Locally on the virtual machine?
Is your VMWare session persistent?
Are the files .cproject and .project actually deleted from the file system (ls from the command line or open a file Explorer)?
As Hagen already suggested, you should provide more details about setup if you want any help.
Eclipse, my workspace, my project files, and everything else is stored in the virtual machine. The project files are not deleted or even harmed when this happens. To restore the project, I actually save the project files off, re-create the project, and copy them back and it works fine. I am not sure what you mean by the session being persistent. It gets powered down sometimes. When this happens and I start Eclipse, I see a white minus in a red circle where the editor should be showing my file. I am afraid I am unable to recall whether the vm being powered off is a pre-requisite for this behavior, but it happens frequently.
|
|
|
|
Re: Eclipse Keeps Losing My Project [message #723775 is a reply to message #723678] |
Fri, 09 September 2011 08:47   |
Eclipse User |
|
|
|
Axel Mueller wrote on Fri, 09 September 2011 02:52Quote:The project files are not deleted or even harmed when this happens. To restore the project, I actually save the project files off, re-create the project, and copy them back and it works fine.
When the project files are OK you can just import the project (File->Import->Existing projects). No need to recreate them.
Quote:I am not sure what you mean by the session being persistent.
http://www.vmware.com/support/ws3/doc/ws32_disks2.html
In case of a nonpersistent virtual machine all file modifications are lost when you shutdown.
Thanks. The import thing is good to know.
When I shut down the virtual, changes don't seem to be lost, and anyway, the problem isn't lost changes, it's that every time I start Eclipse, there is a chance that it will report that it cannot find my project.
|
|
|
|
|
|
|
|
|
Re: Eclipse Keeps Losing My Project [message #831686 is a reply to message #831681] |
Thu, 29 March 2012 03:51  |
Eclipse User |
|
|
|
Here is some further information (more complete log attached)
This happens if I try and open a file (that is in my history).
The target file does exist.
!SESSION 2012-03-29 08:40:40.083 -----------------------------------------------
eclipse.buildId=M20100211-1343
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IE
Command-line arguments: -os linux -ws gtk -arch x86
!ENTRY org.eclipse.ui 4 0 2012-03-29 08:41:35.925
!MESSAGE Unable to create editor ID org.eclipse.wst.jsdt.ui.CompilationUnitEditor: The file does not exist.
!STACK 1
org.eclipse.core.runtime.CoreException: The file does not exist.
at org.eclipse.core.internal.filebuffers.ResourceFileBuffer.create(ResourceFileBuffer.java:237)
: : :
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:559)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:514)
at org.eclipse.equinox.launcher.Main.run(Main.java:1311)
!SUBENTRY 1 org.eclipse.core.filebuffers 4 0 2012-03-29 08:41:35.926
!MESSAGE The file does not exist.
|
|
|
Powered by
FUDForum. Page generated in 0.12169 seconds