Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326589 - Reloading target platform causes target bundles to go missing
Summary: Reloading target platform causes target bundles to go missing
Status: RESOLVED WORKSFORME
Alias: None
Product: PDE
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.6.1   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: 3.7   Edit
Assignee: PDE-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-29 15:43 EDT by Bryan Hunt CLA
Modified: 2011-01-31 14:37 EST (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 Bryan Hunt CLA 2010-09-29 15:43:09 EDT
We ran into a case where we updated the target platform on a machine and when we reloaded the target platform from the UI, most of the bundles in the target were not "found" which caused build to fail.  I've given Curtis the workspace and target platform for further investigation.
Comment 1 Curtis Windatt CLA 2010-09-29 15:52:16 EDT
I will continue to do some investigating.  People have reported errors like this occasionally, where restarting Eclipse fixes things.

What I know so far:
The target definition resolves correctly (all bundles are downloaded and available).
The preferences are storing the correct values (and are loaded correctly at startup).
The problem only occurs when reloading the target.

The problem must occur somewhere around the LoadTargetDefinitionJob.  There we create a state using urls from the target definition vs at startup where we get them from the preferences.  The resulting state contains no bundles from the target, so it is failing completely.  However, it doesn't seem to have anything to do with the contents of the target as recreating the target in another workspace makes things work again.
Comment 2 Curtis Windatt CLA 2010-10-07 15:43:45 EDT
I have been unable to reproduce using a copy of the workspace that was causing the problem.  We also have seen the opposite problem (reloading works but restarting fails) in bug 327136.
Comment 3 Curtis Windatt CLA 2010-10-18 15:26:22 EDT
Removing milestone, it doesn't look like we'll be able to do anything about this at this time.  I have been unable to reproduce and the problem is transient (using the same target on different workspaces or machines works correctly).
Comment 4 Curtis Windatt CLA 2011-01-31 14:37:57 EST
Closing as WORKSFORME.  We haven't been able to reproduce enough to have any idea what the cause is.