[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Project disappeared

Thank you for responding. My responses are below...

Garyl


Eric Rizzo wrote:
Garyl Erickson wrote:
I've been using Eclipse 3.1 & EPIC as an IDE for Perl development (on Windows) for a couple years, but I admit to not understanding much about how to use Eclipse itself and where it stores preferences or setup info. When I opened up Eclipse this morning, I got nothing but a welcome to Eclipse view. What happened to the previous view of my project? How do I get it back? I've tried changing workspaces, but I get the same thing.

The only way this could happen (baring some huge bug that no one has reported before) is that either the contents of your workspace directory was deleted/moved

The source code files I was working on are still where they were checked out -- it's just that Eclipse can't see them.


or you chose a different workspace when Eclipse prompted you at start-up.
Can you confirm that the workspace location you had used before is the same that you are using now? On Windows the default is
C:\Documents and Settings\<username>\workspace

This was created so long ago, I'm not positive which workspace I was
using, but there were only a limited number of possibilities -- assuming
workspaces can be determined by finding directories containing .metadata subdirectories. I tried each of them, to no avail.


Some more info that might be related ... I normally work in an RDC session on a Win2k server. However, the delay when typing is sometimes so painfully long, I tried starting Eclipse on the server console, too, to see if it was any faster. If I remember correctly, I got an error and it wouldn't start up. So I exited the Eclipse running in the RDC session and started it again on the server console. I think that's when the problem started, or perhaps after I closed that one and started Eclipse in the RDC session again. Does that give any clues what might have happened?

Open Project on the project menu is greyed out. Why? Do I have to open something else first?

Projects have to be created in or imported into the workspace in order to be Opened. If you fix the first problem you'r project(s) will show up again and then you can Close/Open them.



Where was the information stored that allowed Eclipse (or was it EPIC?) to open the same set of prespectives or views or projects or workspaces or whichever it was when it starts up?

It's all in the workspace (under the .metadata directory). Get back to your original workspace and all will return to normal ;-)

Apparently that's no longer possible for me. I guess exiting Eclipse overwrote the good setup info with bad, or something like that.


In an attempt to recover, I opened the most likely workspace and created a new Perl project in it with the same name as my lost one, which made the project directories show up again in Eclipse. Hurray! But this time, the content of the navigator view is different. It looks like each line now has CVS info that I never saw before and a lot of '>'s. Again, I have no idea why the change. (Where is this extra CVS info documented?) (I was using CVS outside of Eclipse.)

So I'm mostly up and working again, but entirely unclear as to what changed and why and where my settings went.

Is there documentation somewhere of which settings are stored in which .metadata files?

I found a file in one of the workspaces named .metadata\.plugins\org.eclipse.core.runtime\.settings\org.epic.perleditor.prefs that appeared to contain my customized settings for the Perl editor. I copied that to my chosen workspace and it restored those settings.

I found another .metadata tree in a sibling directory to My Documents, which doesn't seem like a likely place I would have created a workspace, as the source code files I was working on were in a workspace directory *within* My Documents, not parallel to it here, and there were no source files in this tree. This .metadata tree had a .metadata\.plugins\org.eclipse.core.resources\.projects directory with subdirectories named after my projects, each containing a .location file, containing the path to the directory containing the actual source code files (within My Documents). But two of these source directories have their own .metadata trees, while one has only a .project file (the other two have this file, too). Is this normal? Or do bogus .metadata trees get created just by switching to a different workspace directory that really isn't a workspace?


Eric