Bug 489536 - Keys/Shortcuts not saved / resetted after restart
Summary: Keys/Shortcuts not saved / resetted after restart
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: IDE (show other bugs)
Version: 4.5.2   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2016-03-14 07:50 EDT by Savas Ziplies CLA
Modified: 2021-09-14 04:31 EDT (History)
4 users (show)

See Also:


Attachments
Eclipse Log (509.32 KB, application/octet-stream)
2016-03-16 11:01 EDT, Savas Ziplies CLA
no flags Details
Eclipse Workbench XMI (477.71 KB, application/octet-stream)
2016-03-16 11:06 EDT, Savas Ziplies CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Savas Ziplies CLA 2016-03-14 07:50:58 EDT
Hi there

I got an issue since I did the Eclipse update to 4.5.2.

Since then, my keys/shortcut preferences do not seem to be saved. After every restart (manually and automatic), the keys are resetted back to the standard and I have to setup my own customization. During the session itself it works fine, until a restart.

I am running Eclipse Mars.2 (4.5.2 after update in Eclipse itself) as Admin on Windows 10.

Am I missing something here? If you need more information, please let me know.



Thanks in advance
Comment 1 Brian de Alwis CLA 2016-03-15 22:57:18 EDT
Keybindings are now saved with the E4 application model in the <workspace>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi.  How are you starting Eclipse?
Comment 2 Savas Ziplies CLA 2016-03-16 04:41:03 EDT
Hi there

I am just calling eclipse.exe on Windows as Administrator (no compatibility mode).

eclipse.ini reads
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-vm
C:/Program Files/Java/jdk1.8.0_45/bin/javaw.exe
-product
org.eclipse.epp.package.php.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
--launcher.appendVmargs
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms512m
-Xmx2048m


Thanks
Comment 3 Brian de Alwis CLA 2016-03-16 09:23:58 EDT
Could you please attach your workbench.xmi file and the log file (<workspace>/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi and <workspace>/.metadata/.log)?

How did you install your Eclipse originally?
Comment 4 Savas Ziplies CLA 2016-03-16 11:01:41 EDT
Created attachment 260348 [details]
Eclipse Log
Comment 5 Savas Ziplies CLA 2016-03-16 11:06:07 EDT
Created attachment 260349 [details]
Eclipse Workbench XMI

Hi

Files have been attached.

I originally just downloaded the zip file, extracted and launched. Update to the new versions through the internal Update Functionality of the IDE.


Thanks
Comment 6 Brian de Alwis CLA 2016-03-22 13:06:57 EDT
What's an example of some custom keybindings that you've added?
Comment 7 Savas Ziplies CLA 2016-03-23 05:19:06 EDT
Hi

I am normally unbinding "Insert Service" as I want to free up ctrl+shift+s for saving all files (I cannot live without ^^).

In the current session it would then work. After a restart "Insert Service" is set back to ctrl+shift+s.


Best
Comment 8 Brian de Alwis CLA 2016-04-08 12:02:27 EDT
I can see in your workbench.xmi that your previous binding for CTRL+SHIFT+S to com.dubture.symfony.ui.command.insertService has been deleted, and has been re-bound to "org.eclipse.ui.file.saveAll".

So I suspect that your 'Symphony' must be re-binding the command on startup.  You can check your Preferences > General > Start Up and Shutdown and see if they provide an startup note; it may be that disabling their startup may prevent the unbinding.  Unfortunately there's little else that we can do in this case.

Unfortunately we don't have any logging to record how and when keybindings are modified to confirm the above.  You can try some the Remote Debug Connection approach [1] and add a breakpoint at org.eclipse.ui.internal.keys.BindingService#addBinding() and #removeBinding() and log some output.

[1] https://wiki.eclipse.org/How_to_report_a_deadlock#Remote_Debug_Connection
Comment 9 Savas Ziplies CLA 2016-04-11 02:51:24 EDT
Ahh... thanks a lot for that hint.

I will try to figure out, why it is resetting all the time. But that hint is worth a lot to look for why this happens.


Thanks
Comment 10 Muhmud Ahmad CLA 2019-10-16 22:14:04 EDT
Thanks for the hint; for me it was Oomph Common UI
Comment 11 Bence Bakon CLA 2021-09-14 04:31:41 EDT
Turning off Oomph Common UI in Preferences -> General -> Startup and Shutdown solved this issue for me.