Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » RCP in MacOS cannot create persistent projects?
RCP in MacOS cannot create persistent projects? [message #645200] Wed, 15 December 2010 16:38 Go to next message
Paul E. Keyser is currently offline Paul E. Keyser
Messages: 878
Registered: July 2009
Senior Member
MacOS, R 3.5

So, I had an RCP (developed in 3.4, on WinXP), and now have checked out
all its plug-ins in 3.5 MacOS
(eclipse-jee-galileo-SR2-macosx-cocoa-x86_64.tar: I have a 64-bit Mac,
so there is no 3.4 available).

I'm using the Common Navigator framework.

I run the RCP (after deleting from the .product file the win32 fragments
and adding the MacOs fragments), and ... my runtime workspace is empty.

That is surprising, to me, because I have also copied my whole WS from
the WinXP machine, including the .metadata directory (although the
Finder hides that).

Worse, if I create a new project in my WS, shut down the RCP and restart
-- the newly-created project is gone. I can see it (and all the others)
in the Finder.

What is going on here?

thanks
Paul
Re: RCP in MacOS cannot create persistent projects? [message #645526 is a reply to message #645200] Fri, 17 December 2010 10:25 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2108
Registered: July 2009
Senior Member
On 12/15/10 4:38 PM, Paul E. Keyser wrote:
> MacOS, R 3.5
>
> So, I had an RCP (developed in 3.4, on WinXP), and now have checked out
> all its plug-ins in 3.5 MacOS
> (eclipse-jee-galileo-SR2-macosx-cocoa-x86_64.tar: I have a 64-bit Mac,
> so there is no 3.4 available).
>
> I'm using the Common Navigator framework.
>
> I run the RCP (after deleting from the .product file the win32 fragments
> and adding the MacOs fragments), and ... my runtime workspace is empty.
>
> That is surprising, to me, because I have also copied my whole WS from
> the WinXP machine, including the .metadata directory (although the
> Finder hides that).
>
> Worse, if I create a new project in my WS, shut down the RCP and restart
> -- the newly-created project is gone. I can see it (and all the others)
> in the Finder.
>
> What is going on here?

Workspaces do NOT support being copied/moved around, especially from one
system to another, or from one operating system to another. That's
likely the root of your problems.

Eric
Re: RCP in MacOS cannot create persistent projects? [message #645826 is a reply to message #645526] Mon, 20 December 2010 12:20 Go to previous messageGo to next message
Paul E. Keyser is currently offline Paul E. Keyser
Messages: 878
Registered: July 2009
Senior Member
On 12/17/10 10:25 AM, Eric Rizzo wrote:
> On 12/15/10 4:38 PM, Paul E. Keyser wrote:

>
> Workspaces do NOT support being copied/moved around, especially from one
> system to another, or from one operating system to another. That's
> likely the root of your problems.
>
> Eric

OK, fair enough: user error. I have now tried in a fresh runtime-WS, and
there is no problem with persistence; I have then also exported from the
runtime Eclipse/RCP on the PC one of the projects in question, and then
imported it into the runtime Eclipse/RCP on the Mac -- and all is fine.

I fell into this user-error b/c a lot of people in my group here often
do move WS's around and copy them (never before from PC to Mac), and
have usually had success. I'd been suspcious, and rarely did it ... it
turns out my suspicion was correct.

Now -- where can I point them in the Help docs or the like to an
explanation of why this is a bad idea? (My single experience that it is
a bad idea is likely to get dismissed as a fluke or a special PC-to-Mac
issue).

thanks
Paul
Re: RCP in MacOS cannot create persistent projects? [message #645860 is a reply to message #645826] Mon, 20 December 2010 13:27 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2108
Registered: July 2009
Senior Member
On 12/20/10 12:20 PM, Paul E. Keyser wrote:
> On 12/17/10 10:25 AM, Eric Rizzo wrote:
>> On 12/15/10 4:38 PM, Paul E. Keyser wrote:
>
>>
>> Workspaces do NOT support being copied/moved around, especially from one
>> system to another, or from one operating system to another. That's
>> likely the root of your problems.
>>
>> Eric
>
> OK, fair enough: user error. I have now tried in a fresh runtime-WS, and
> there is no problem with persistence; I have then also exported from the
> runtime Eclipse/RCP on the PC one of the projects in question, and then
> imported it into the runtime Eclipse/RCP on the Mac -- and all is fine.
>
> I fell into this user-error b/c a lot of people in my group here often
> do move WS's around and copy them (never before from PC to Mac), and
> have usually had success. I'd been suspcious, and rarely did it ... it
> turns out my suspicion was correct.
>
> Now -- where can I point them in the Help docs or the like to an
> explanation of why this is a bad idea? (My single experience that it is
> a bad idea is likely to get dismissed as a fluke or a special PC-to-Mac
> issue).

Tell them to come ask here - the answer is always consistent: "Don't
copy or move workspaces, they're not designed for it and you're asking
for headaches." :-)

More seriously, this page has the following blurb, although it's sort of
a weakly made point and not really in the context you're looking for:
"You should not copy or move the workspace directory..."
http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.user/tasks/tasks-2.htm
Re: RCP in MacOS cannot create persistent projects? [message #645861 is a reply to message #645860] Mon, 20 December 2010 15:07 Go to previous message
Paul E. Keyser is currently offline Paul E. Keyser
Messages: 878
Registered: July 2009
Senior Member
On 12/20/10 1:27 PM, Eric Rizzo wrote:
> On 12/20/10 12:20 PM, Paul E. Keyser wrote:
>> On 12/17/10 10:25 AM, Eric Rizzo wrote:
>>> On 12/15/10 4:38 PM, Paul E. Keyser wrote:
>>

>> Now -- where can I point them in the Help docs or the like to an
>> explanation of why this is a bad idea? (My single experience that it is
>> a bad idea is likely to get dismissed as a fluke or a special PC-to-Mac
>> issue).
>
> Tell them to come ask here - the answer is always consistent: "Don't
> copy or move workspaces, they're not designed for it and you're asking
> for headaches." :-)
>
> More seriously, this page has the following blurb, although it's sort of
> a weakly made point and not really in the context you're looking for:
> "You should not copy or move the workspace directory..."
> http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse. platform.doc.user/tasks/tasks-2.htm
>

OK, I have added a similar sentence and that link to the page I maintain
in our internal wiki of "useful stuff about Eclipse" -- thanks!

-Paul
Previous Topic:Eclipse Compile Time Error Detection
Next Topic:Mutually exclusive feature installations?
Goto Forum:
  


Current Time: Sun Apr 20 18:11:12 EDT 2014

Powered by FUDForum. Page generated in 0.01692 seconds