Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 249149

Summary: [Preferences] Target platform selection is not fully remembered always
Product: [Eclipse Project] PDE Reporter: Patrick Schonbach <schoenbach>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: caniszczyk, chetankumar, curtis.windatt.public, jcompagner, ralf
Version: 3.4.1   
Target Milestone: 3.5   
Hardware: All   
OS: All   
Whiteboard:

Description Patrick Schonbach CLA 2008-09-30 13:15:04 EDT
When I select a set of plugins in the "Target platform" page, often three of the selected plugins are missing after every restart of Eclipse. How can that be?
Comment 1 Chris Aniszczyk CLA 2008-09-30 13:17:22 EDT
Can you give a concrete example?
Comment 2 Patrick Schonbach CLA 2008-09-30 13:24:05 EDT
Not easy. I have a lot of stuff installed. Is it possible to obtain a list of all plugins installed which also can be copied to be posted here?
Comment 3 Curtis Windatt CLA 2008-10-08 12:31:16 EDT
(In reply to comment #2)
> Not easy. I have a lot of stuff installed. Is it possible to obtain a list of
> all plugins installed which also can be copied to be posted here?
> 

How is your target platform set up?  Are you pointing to the default location (the current install), or another folder?  Any additional plug-in locations?  Do you have the preference set to only use installed plug-ins?

http://mea-bloga.blogspot.com/2008/04/new-target-platform-preference.html

Assuming you are pointing to a 3.4 or later install, and have the option checked, you can see what is installed in that location by finding the bundles.info file located in the configuration\org.eclipse.equinox.simpleconfigurator directory.  We read this file to determine the contents of the target platform.
Comment 4 Patrick Schonbach CLA 2008-10-08 13:13:39 EDT
(In reply to comment #3)
> How is your target platform set up?  Are you pointing to the default location
> (the current install), or another folder?  Any additional plug-in locations?  

I still use the classic update and several extension locations.

> Do you have the preference set to only use installed plug-ins?

Yes, it is enabled.

Comment 5 Johan Compagner CLA 2008-11-13 06:12:38 EST
i also have this all the time when i restart eclipse

But only of the additional location that i have

I use 3.4.1 to develop against 3.3.x so my target platfom point to a 3.3.x installation that has its own plugins and 2 other plugin dirs configured.

there own plugins are all selected and a few plugins of 1 of the plugin dir is are selected and none from the other.

Besides that i have a additional location (dir) where from the 15 plugins 2 are selected and the rest not.

If i restart i loose almost all (except 1??) from the plugin dir of the 3.3.x installation and from the additional location both are also deselected again.

This happens after every restart, so if i restart i have to set the selection again. What is weird that 1 plugin in the extra plugin dir of the 3.3 installation is always selected and the others are just deselected everytime as are the 2 from the additinal location..
Comment 6 Johan Compagner CLA 2008-11-13 06:31:19 EST
can somebody point me where that information of the target platform is stored? Then i will try to debug it myself a bit.
Comment 7 Johan Compagner CLA 2008-11-13 06:53:37 EST
ok i find the prefs: org.eclipse.pde.core.prefs and then i guess: checkedPlugins property

How does that property work?? If i deselect for example org.eclipse.draw2d (the one from my additional location)  i get 3 entries in that property of that.
and if i select one then i got 2 entries?? So it seems almost that it is not checkedPlugins but notCheckedPlugins?

And now it makes all much more sense to me..
Because all the plugins that are constantly forgotten have multiply versions in the same or over different locations!

So the way things are stored is wrong. The version number should be appended to the checkedPlugins (which are the not checked plugins...)
So that you can do a much better match for it. Now if i have 1 version not checked all versions are unchecked because the all match to that same string
So the only way for me to let it work is delete all the entires from the file and then yes they are all selected (but all the different versions at onces)
Comment 8 Curtis Windatt CLA 2008-11-13 09:23:56 EST
Hopefully this can be cleaned up as part of our work to improve the target platform story.  Marking as 3.5 to keep it on the radar.
Comment 9 Curtis Windatt CLA 2009-03-16 13:03:24 EDT
Most likely caused by problems keeping the version information, should be improved in 3.5M6.

*** This bug has been marked as a duplicate of bug 233095 ***
Comment 10 Chetan Kumar CLA 2009-11-12 09:17:49 EST
  I am facing a similar problem with respect to target platform preferences.
After a workbench restart, i am not able to see my target definition(s) in the preference page. I can see only 2 options "Target platform" and "Running platform"
More over, when i open click on apply/OK after changing some other preference which is in no way related to my target platform preference page ... the target is reset (to something wrong) and i have compilation errors in the whole workspace. I'll have to reset the target platform by opening the correct target definition file. Is this a known behavior or bug ?

   My target definition contains links to eclipse directories of different plug-ins and doesn't point to any update site or remote location.
Comment 11 Curtis Windatt CLA 2009-11-12 10:38:28 EST
(In reply to comment #10)
> I am facing a similar problem with respect to target platform preferences.
> After a workbench restart, i am not able to see my target definition(s) in the
> preference page. I can see only 2 options "Target platform" and "Running
> platform"
> More over, when i open click on apply/OK after changing some other preference
> which is in no way related to my target platform preference page ... the target
> is reset (to something wrong) and i have compilation errors in the whole
> workspace. I'll have to reset the target platform by opening the correct target
> definition file. Is this a known behavior or bug ?
> 
>    My target definition contains links to eclipse directories of different
> plug-ins and doesn't point to any update site or remote location.

Please file a new bug with steps to reproduce.
Comment 12 Chetan Kumar CLA 2009-11-14 13:11:50 EST
(In reply to comment #11)
> Please file a new bug with steps to reproduce.
Done. bug 295164