Bug 350172 - PDE cached state is not cleared after switching architectures
Summary: PDE cached state is not cleared after switching architectures
Status: RESOLVED WONTFIX
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.7   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: readme
Depends on:
Blocks:
 
Reported: 2011-06-23 12:55 EDT by DJ Houghton CLA
Modified: 2012-07-31 06:50 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2011-06-23 12:55:47 EDT
Version: 4.1.0
Build id: I20110620-1631

This is a weird scenario so I don't know how common it is, but I can't seem to figure out how to get my workspace back into a working state.

- I was on an old 32-bit Mac running an older build (last week's 4.1 i-build)
- I got a new machine
- I copied my workspace and builds over to the new machine
- I ran and updated Eclipse to the new build

I have a lot of problems in my workspace basically saying that it can't find some SWT classes that are in the x86_64 fragment. When I look at the plug-in dependencies for the bundles, SWT is there but not the new fragment. 

I've made several changes to the Target Platform in an attempt to get things functioning again including throwing away my Target Platform and creating a new one from the new install (with the 64-bit fragments). Nothing seems to help. 

Any ideas?
Comment 1 DJ Houghton CLA 2011-06-23 13:16:14 EDT
Is there a way to clear state and start from scratch? I've tried everything I can think of and really don't want to have to rebuild my workspace. (and potentially all my workspaces which were created with the other architecture?)  I've tried adding SWT and its fragment to the workspace but that doesn't help. I even get compile errors when I try and create a new HelloWorld project which references SWT.
Comment 2 Curtis Windatt CLA 2011-06-27 16:09:31 EDT
With Eclipse shut down, you can try to delete the cached State.  It is in Workspace/.metadata/.plugins/org.eclipse.pde.core  There will be two folders named <string of digits>.target and <string of digits>.workspace.  Alternatively, you could just delete the whole PDE metadata folder, but it would remove all your targets and other data.
Comment 3 DJ Houghton CLA 2011-06-28 09:19:32 EDT
Thanks Curtis. Removing the digit-folders didn't work but deleting the whole folder and then re-creating my target platform worked.
Comment 4 Curtis Windatt CLA 2011-06-28 10:55:26 EDT
There isn't any realistic changes PDE will make here.  Marking the bug as a readme and closing as WONTFIX.
Comment 5 DJ Houghton CLA 2011-06-28 10:58:24 EDT
Agreed, this is a very corner case and I don't anticipate many people change architectures and keeping the same workspaces. Thanks for your help with the work-around.