Skip to main content



      Home
Home » Newcomers » Newcomers » Project disappeared
Project disappeared [message #224618] Mon, 30 July 2007 15:17 Go to next message
Eclipse UserFriend
Originally posted by: garyl.veicon.com

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.

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

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?

I'd be glad to read a manual, but after looking for hours, all I can seem
to find is info on Eclipse internals or programming Eclipse. Can someone
at least point me to a manual or FAQ that might help me figure out how to
find and restore my setup?

Thanks,
Completely perplexed
Re: Project disappeared [message #224919 is a reply to message #224618] Tue, 31 July 2007 12:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse5.rizzoweb.com

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


> 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 ;-)

Eric
Re: Project disappeared [message #224958 is a reply to message #224919] Tue, 31 July 2007 18:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: garyl.veicon.com

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.e pic.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
Re: Project disappeared [message #225812 is a reply to message #224958] Mon, 06 August 2007 02:41 Go to previous message
Eclipse UserFriend
G. Erickson wrote:
> Eric Rizzo wrote:
>> Garyl Erickson wrote:
>>> <snip> ... 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.
>


My problem is similar. I have a workspace pointing to another local
server. I opened Eclipse and it quite rightly warned me and I canceled
and started over. I connected the server and reopened Eclipse. This time
there were no warnings, but there was also nothing in the workspace
navigator view.

I tried opening another instance of Eclipse and selecting the workspace,
but it told me that it was already selected. OK. Close the second instance.

I tried creating a new project by Importing from CVS. This was
successful, and it created the project right next to the other projects
that Eclipse was no longer seeing. So, it is clear that just having the
files there does not the project make.

So, something was killed in the .metadata directory... I had a
look/search in .log .lock .version.ini etc and none of these files
contain a reference to the correctly displaying projects (let alone the
lost projects).

I also searched the Eclipse installation directory for hints of any
settings that might be defining the hidden and not-hidden projects.

Here is my version info. Thanks
Version: 3.2.2 Build id: M20070212-1330
Previous Topic:OOT: JRE 6 & WebSphere/WebLogic & Oracle 9i/10g & JBoss
Next Topic:TableViewer in TableViewer
Goto Forum:
  


Current Time: Sun May 11 19:29:19 EDT 2025

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

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

Back to the top