Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse Keeps Losing My Project
Eclipse Keeps Losing My Project [message #682098] Fri, 10 June 2011 08:01 Go to next message
Eclipse UserFriend
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 #701676 is a reply to message #682098] Mon, 25 July 2011 08:36 Go to previous messageGo to next message
Eclipse UserFriend
I guess it's unanswerable.
Re: Eclipse Keeps Losing My Project [message #723050 is a reply to message #701676] Wed, 07 September 2011 10:12 Go to previous messageGo to next message
Eclipse UserFriend
This 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.
Re: Eclipse Keeps Losing My Project [message #723245 is a reply to message #723050] Thu, 08 September 2011 03:07 Go to previous messageGo to next message
Eclipse UserFriend
On 9/7/2011 4:12 PM, Brandon wrote:
> This message has been read over 2000 times and never answered.

http://catb.org/~esr/faqs/smart-questions.html

There is not enough information in your post about your environment.

_You_ want something solved, _you_ should deliver the information to
help you.


> 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.

Standard debugging precedure is e.g. starting Eclipse in JVM debug mode
and see what happens when it freezes.

Standard debugging procedure is also checking all administrative files
(eclipse.ini, and the hidden directories that contain admin information
ybout the project).


Also 30 files is hardly "a large C++ project". Stop whining, please.
Re: Eclipse Keeps Losing My Project [message #723275 is a reply to message #723050] Thu, 08 September 2011 04:39 Go to previous messageGo to next message
Eclipse UserFriend
Brandon wrote on Wed, 07 September 2011 16:12
This 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.
Re: Eclipse Keeps Losing My Project [message #723570 is a reply to message #723275] Thu, 08 September 2011 16:46 Go to previous messageGo to next message
Eclipse UserFriend
Axel Mueller wrote on Thu, 08 September 2011 04:39
Brandon wrote on Wed, 07 September 2011 16:12
This 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 #723678 is a reply to message #723570] Fri, 09 September 2011 02:52 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
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.
Re: Eclipse Keeps Losing My Project [message #723775 is a reply to message #723678] Fri, 09 September 2011 08:47 Go to previous messageGo to next message
Eclipse UserFriend
Axel Mueller wrote on Fri, 09 September 2011 02:52
Quote:
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 #723777 is a reply to message #723775] Fri, 09 September 2011 08:52 Go to previous messageGo to next message
Eclipse UserFriend
Incidentally, I haven't lost my project at the moment, but to see the menus, I just tried File->Import, and it doesn't take me to any choice about "Existing projects." It takes me to an Import dialogue box, where I am required to choose General, C/C++, CVS, etc.
Re: Eclipse Keeps Losing My Project [message #723987 is a reply to message #723777] Sat, 10 September 2011 03:35 Go to previous messageGo to next message
Eclipse UserFriend
In "General" category there is "Existing Project into Workspace". If you start typing in "type filter text": "Existing" it will filter options that do not have "Existing".
Re: Eclipse Keeps Losing My Project [message #724486 is a reply to message #723987] Mon, 12 September 2011 09:08 Go to previous messageGo to next message
Eclipse UserFriend
Ah, I see. Thanks. I still wonder why the malfunction happens, though.
Re: Eclipse Keeps Losing My Project [message #724539 is a reply to message #724486] Mon, 12 September 2011 11:01 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

I had a very similar problem happen this morning when I powered up my Fedora 15 VirtualBox guest under Windows 7. I cranked up Eclipse (CDT) and got some kind of initialization error which I neglected to note down. When I clicked that message away I saw that I had no projects in my workspace and could find no obvious way to import them. The import "Existing Project into Workspace" under General suggestion did the trick. Thanks! But it's another less than intuitively obvious way to fix a problem that I keep encountering in Eclipse. And, of course, I don't understand why it happened in the first place. Is there a log somewhere?
Re: Eclipse Keeps Losing My Project [message #725662 is a reply to message #682098] Thu, 15 September 2011 09:36 Go to previous messageGo to next message
Eclipse UserFriend
I just tried the import thing and it worked. This is a faster recover than I could do before, but why does this happen and why can't they fix it?
Re: Eclipse Keeps Losing My Project [message #831681 is a reply to message #682098] Thu, 29 March 2012 03:39 Go to previous messageGo to next message
Eclipse UserFriend
I'm experiencing similar symptoms on Ubuntu 10.10

Eclipse Version:
Version: 3.5.2
Build id: M20100211-1343

When I start Eclipse it has lost all of my projects.
I can re-import them, but obviously something is wrong.

I've included the .metadata/.log for reference.

  • Attachment: Eclipse.log
    (Size: 91.68KB, Downloaded 212 times)
Re: Eclipse Keeps Losing My Project [message #831686 is a reply to message #831681] Thu, 29 March 2012 03:51 Go to previous message
Eclipse UserFriend
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.
Previous Topic:Create C++ class programmitically
Next Topic:Inspect unicode variable in CDT
Goto Forum:
  


Current Time: Sun Jun 22 21:08:07 EDT 2025

Powered by FUDForum. Page generated in 0.12169 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top