Correctly share Eclipse Product Setup [message #1835884] |
Tue, 15 December 2020 18:26 |
Claudio Weiler Messages: 31 Registered: August 2015 Location: Brazil |
Member |
|
|
Hi,
We have a Eclipse Product Setup. It is directly available through a git repository.
I'm having sync issues with this setup. I do a change in product setup, commit those, and try to "Perform Setup Tasks", but it is outdated, even with "Refresh Remote Cache".
If I go to "Navigate > Open Setup > Parent Models > product name", content is updated, but in "Perform Setup Tasks" not.
Thanks!
[Updated on: Tue, 15 December 2020 18:27] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Re: Correctly share Eclipse Product Setup [message #1836854 is a reply to message #1836794] |
Fri, 15 January 2021 16:56 |
Claudio Weiler Messages: 31 Registered: August 2015 Location: Brazil |
Member |
|
|
Hi Ed,
Ok, I have made a new set of tests, focused on java code formatter profiles.
Updated tasks are been performed, but:
- for "/instance/org.eclipse.jdt.ui/formatter_profile", it is, somehow, using an old value.
- for "/instance/org.eclipse.jdt.ui/org.eclipse.jdt.ui.formatterprofiles", it only accept changes with new profile name
[1] Formatter profile name
If I manually change java code formatter profile (lets say, to SDS) in installed eclipse, then when I restart eclipse or run Perform Setup Tasks, it is set back to SDSv2.
If I create a new profile in eclipse product setup file, named SDSv4, update both preferences, then when I restart eclipse or run Perform Setup Tasks, it do not change from SDSv2.
[2] Formatter profile settings
If I change profile settings, but maintain the same name, then, when I restart eclipse or run Perform Setup Tasks, it do not change profile settings accordingly.
If I change profile settings and/or the profile name, then, when I restart eclipse or run Perform Setup Tasks, it create the new profile with new settings (but do not change to it, see [1] above).
I have deleted ".eclipse/org.eclipse.oomph.setup/cache" contents, and can confirm that the new files added have the same content of remote file on each test.
Did some content searchs for "SDSv2" and find it on "~/.eclipse/org.eclipse.oomph.setup/setups/user.setup" file, with last update on december.
|
|
|
Re: Correctly share Eclipse Product Setup [message #1836880 is a reply to message #1836854] |
Sun, 17 January 2021 05:00 |
Ed Merks Messages: 33140 Registered: July 2009 |
Senior Member |
|
|
I can see why changing the profile without changing its name would cause the profile changes to look like they are ignored. That's because in ProfileChoicePreferenceHandler when the profile's name is applied (by perform) the code looks at the XML and applied the individual preference settings. So if the name doesn't change, this task will thinks nothing needs to be done.
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04655 seconds