Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Oomph » Preferences are recorded, but not loaded (!)
Preferences are recorded, but not loaded (!) [message #1722148] Wed, 03 February 2016 06:12 Go to next message
Roman Chyla is currently offline Roman ChylaFriend
Messages: 6
Registered: February 2016
Junior Member
Hi,
I share my eclipse configuration across machines. Oomph is recording preferences into user.setup - and they get committed into a repository; when I change machines, 'git pull'/restart will give me the most recent environment

Example user setup is here: https://github.com/romanchyla/dotfiles/blob/master/eclipse/org.eclipse.oomph.setup/setups/user.setup


so I was working on machine A, thenmoved to machine B. It is the same Eclipse/java/oomph version. But it never loads my keyboard shortcuts (it happily overwrites them! So at least I can confirm it is writing into the same file)

But I don't know if the '/instance/org.eclipse.ui.workbench/org.eclipse.ui.commands' setup tasks gets executed; yet some other preferences, eg: /instance/org.python.pydev/INTERPRETER_PATH_NEW, are loaded just fine

I can't see anything in the log [see below] - and have no idea how to debug this. (A conflict in the binding? Can I run the preferences import manually? What triggers the update? - I think I used to see the oomph quick flash spinning thingy before...but not any more - but i don't know any more...)

I am starting to think that it is a bug. Anybody can shed light on this problem?

Thanks!

roman

Eclipse Mars, Oomph Setup Workbench 1.3.0.v20150923-1022 org.eclipse.oomph.setup.workbench.feature.group Eclipse Oomph Project

log:

!SESSION 2016-02-03 00:06:21.589 -----------------------------------------------
eclipse.buildId=4.5.1.M20150904-0015
java.version=1.8.0_66
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.ui 2 2 2016-02-03 00:08:34.226
!MESSAGE Invalid property category path: org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build (bundle: org.eclipse.cdt.ui, propertyPage: org.eclipse
.cdt.managedbuilder.ui.properties.BuildLogPreferencePage)
!SESSION 2016-02-03 00:08:36.738 -----------------------------------------------
eclipse.buildId=4.5.1.M20150904-0015
java.version=1.8.0_66
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -data file:/dvt/workspace2/ -os linux -ws gtk -arch x86_64 -product org.eclipse.epp.package.jee.product
Re: Preferences are recorded, but not loaded (!) [message #1722267 is a reply to message #1722148] Wed, 03 February 2016 16:24 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Roman,

You can always perform tasks manually using Help -> Perform Setup
Tasks. If you check the "Show all triggered tasks" you can at least
see which tasks are there and even the disabled ones (the ones that
think they don't need to perform).

On 03.02.2016 14:04, Roman Chyla wrote:
> Hi,
> I share my eclipse configuration across machines. Oomph is recording
> preferences into user.setup - and they get committed into a
> repository; when I change machines, 'git pull'/restart will give me
> the most recent environment
>
> Example user setup is here:
> https://github.com/romanchyla/dotfiles/blob/master/eclipse/org.eclipse.oomph.setup/setups/user.setup
>
>
> so I was working on machine A, thenmoved to machine B. It is the same
> Eclipse/java/oomph version. But it never loads my keyboard shortcuts
> (it happily overwrites them! So at least I can confirm it is writing
> into the same file)
>
> But I don't know if the
> '/instance/org.eclipse.ui.workbench/org.eclipse.ui.commands' setup
> tasks gets executed; yet some other preferences, eg:
> /instance/org.python.pydev/INTERPRETER_PATH_NEW, are loaded just fine
>
> I can't see anything in the log [see below] - and have no idea how to
> debug this. (A conflict in the binding? Can I run the preferences
> import manually? What triggers the update? - I think I used to see the
> oomph quick flash spinning thingy before...but not any more - but i
> don't know any more...)
>
> I am starting to think that it is a bug. Anybody can shed light on
> this problem?
> Thanks!
>
> roman
>
> Eclipse Mars, Oomph Setup Workbench 1.3.0.v20150923-1022
> org.eclipse.oomph.setup.workbench.feature.group Eclipse Oomph Project
>
> log:
>
> !SESSION 2016-02-03 00:06:21.589
> -----------------------------------------------
> eclipse.buildId=4.5.1.M20150904-0015
> java.version=1.8.0_66
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.jee.product
> Command-line arguments: -os linux -ws gtk -arch x86_64 -product
> org.eclipse.epp.package.jee.product
>
> !ENTRY org.eclipse.ui 2 2 2016-02-03 00:08:34.226
> !MESSAGE Invalid property category path:
> org.eclipse.cdt.managedbuilder.ui.properties.Page_head_build (bundle:
> org.eclipse.cdt.ui, propertyPage: org.eclipse
> cdt.managedbuilder.ui.properties.BuildLogPreferencePage)
> !SESSION 2016-02-03 00:08:36.738
> -----------------------------------------------
> eclipse.buildId=4.5.1.M20150904-0015
> java.version=1.8.0_66
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments: -product org.eclipse.epp.package.jee.product
> Command-line arguments: -data file:/dvt/workspace2/ -os linux -ws gtk
> -arch x86_64 -product org.eclipse.epp.package.jee.product
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Preferences are recorded, but not loaded (!) [message #1722312 is a reply to message #1722267] Thu, 04 February 2016 06:13 Go to previous messageGo to next message
Roman Chyla is currently offline Roman ChylaFriend
Messages: 6
Registered: February 2016
Junior Member
Thank you, Ed, I completely missed that option. The load is there, however it does ignore the ui.commands - even when I run it manually.

When I update the user.setup, other affected key are detected (and become active) - and when I run the manual update, the log shows the new value was set. However, the /instance/org.eclipse.ui.workbench/org.eclipse.ui.commands is never marked as 'changed'; EVEN IF I manually edit it inside the Eclipse value editor.

And there is no error in Eclipse or oomph setup.log

Does that seem like a bug?


Re: Preferences are recorded, but not loaded (!) [message #1722315 is a reply to message #1722312] Thu, 04 February 2016 07:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Roman,

How is the value represented? If it's an XML blob, then it needs to
some specialized support in PreferenceTaskImpl because by default, a
preference task whose value is an XML blob will only perform if the
current value in the IDE is absent.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=475139
https://bugs.eclipse.org/bugs/show_bug.cgi?id=470430

If that's the case, please open a Bugzilla with details about how this
specific preference and we can see about providing specialized support
for it.


On 04.02.2016 07:13, Roman Chyla wrote:
> Thank you, Ed, I completely missed that option. The load is there,
> however it does ignore the ui.commands - even when I run it manually.
> When I update the user.setup, other affected key are detected (and
> become active) - and when I run the manual update, the log shows the
> new value was set. However, the
> /instance/org.eclipse.ui.workbench/org.eclipse.ui.commands is never
> marked as 'changed'; EVEN IF I manually edit it inside the Eclipse
> value editor.
> And there is no error in Eclipse or oomph setup.log
>
> Does that seem like a bug?
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Preferences are recorded, but not loaded (!) [message #1722559 is a reply to message #1722315] Fri, 05 February 2016 18:27 Go to previous messageGo to next message
Roman Chyla is currently offline Roman ChylaFriend
Messages: 6
Registered: February 2016
Junior Member
Hi Ed,
Yes, it is a serialized XML blob - and what you say is consistent with my experience that shortcuts are loaded once (but then never again). Maybe some sort of switch 'override, if present' would solve the situation (?)

I'll open a ticket. Thanks!
Re: Preferences are recorded, but not loaded (!) [message #1722565 is a reply to message #1722559] Fri, 05 February 2016 19:48 Go to previous message
Roman Chyla is currently offline Roman ChylaFriend
Messages: 6
Registered: February 2016
Junior Member
please see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=487371
Previous Topic:[SOLVED] Application of properties from a project setup file to a running IDE instance
Next Topic:[Eclipse Installer] Select project twice (with different streams)
Goto Forum:
  


Current Time: Fri Apr 26 05:46:04 GMT 2024

Powered by FUDForum. Page generated in 0.03372 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top