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

Bug 426550

Summary: CTRL+Arrow shortcut disabled by Code Recommenders
Product: z_Archived Reporter: Raphaël Flores <raf64flo>
Component: RecommendersAssignee: Project inbox <recommenders-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: johannes.dorn, sewe
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux-GTK   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=426557
Whiteboard:
Attachments:
Description Flags
Eclipse configuration details none

Description Raphaël Flores CLA 2014-01-24 03:55:00 EST
Created attachment 239297 [details]
Eclipse configuration details

Installing code recommenders via the markerplace makes the CTRL+Arrow shortcut disabled.

No way to move a word forward or backward, 

Note this bug is not reproducible in Spring Tool Suite Version: 3.4.0.RELEASE, Build Id: 201310051614.

The version of Eclipse I use is: Kepler Service Release 1, Build id: 20130919-0819

Follow my installation details: 

  Code Recommenders Developer Tools	2.0.4.v20131223-1704	org.eclipse.recommenders.rcp.feature.feature.group	Eclipse Code Recommenders
  Eclipse IDE for Java EE Developers	2.0.1.20130919-0803	epp.package.jee	null
  Glance Core	1.1.1	com.xored.glance.feature.group	xored software, Inc.
  Glance CVS	1.1.1	com.xored.glance.cvs.feature.group	xored software, Inc.
  Glance GEF	1.1.1	com.xored.glance.gef.feature.group	xored software, Inc.
  Google Plugin for Eclipse 4.3	3.5.0.v201312191331-rel-r43	com.google.gdt.eclipse.suite.e43.feature.feature.group	Google, Inc.
  Google Web Toolkit SDK 2.5.1	2.5.1	com.google.gwt.eclipse.sdkbundle.feature.feature.group	Google, Inc.
  ShellEd	2.0.3	net.sourceforge.shelled.feature.group	null
Comment 1 Johannes Dorn CLA 2014-01-24 04:08:59 EST
What did you bind to that shortcut? Preferences -> General -> Keys

Have you tried ALT + Arrow Key. For me, that jumps to the next/previous word.

Are you sure this only happens with Code Recommenders installed, not on a fresh Kepler SR 1 installation? 

Spring might have defined different shortcuts.
Comment 2 Raphaël Flores CLA 2014-01-24 04:24:49 EST
(In reply to Johannes Dorn from comment #1)
> What did you bind to that shortcut? Preferences -> General -> Keys

The binding is correct in the preference page, Ctrl+Left is binded to "Previous Word" command in the "Editing Text" category.


> Have you tried ALT + Arrow Key. For me, that jumps to the next/previous word.

Alt+Left is by default binded to "Backward history" for me. It still works.


> Are you sure this only happens with Code Recommenders installed, not on a
> fresh Kepler SR 1 installation? 

Yes sure, if I uninstall Code recommenders, the shortcut works again. If i reinstall again, the shorcut is overriden by smthg even if it is corrected binded in the preference page.


> Spring might have defined different shortcuts.

The binding preference is identical for "Previous Word" command in Eclipse and STS.
Comment 3 Raphaël Flores CLA 2014-01-24 04:37:31 EST
Just tried with a freshly installation of eclipse-jee-kepler-R-linux-gtk-x86_64.tar.gz with a new workspace and a new Java project. I can reproduce the bug.
Comment 4 Raphaël Flores CLA 2014-01-24 04:46:11 EST
Note that if I restart Eclipse once again after the restart required by the installation, the shorcuts works as expected without any modification.

The bug seems to occur only after the first Eclipse's restart.
Comment 5 Johannes Dorn CLA 2014-01-24 05:04:17 EST
This seems to be another manifestation of Bug 422642.
Are other shortcuts, such as quick fix not working until a restart as well?
Comment 6 Andreas Sewe CLA 2014-01-24 05:10:37 EST
This might be the recently closed Bug 425994 (triggered when the "Enable intelligent code completion" special proposal is shown for the first time).

@Raphaël: Can you have a look at the Error Log to see whether something like this stacktrace [1] shows up there? If so, you have hit Bug 425994. It's already fixed on our head update site [2] and will be (as part of Code Recommenders 2.0.5) on the other update sites next Tuesday.

[1] <https://bugs.eclipse.org/bugs/attachment.cgi?id=239100>
[2] <http://download.eclipse.org/recommenders/updates/head/>
Comment 7 Johannes Dorn CLA 2014-01-24 05:16:36 EST
@Andreas: I'm pretty sure, this issue here is not related to the autocompletion bug, as that is related to code completion while this occurs without any code completion involved.

I've installed from the head update site and still get broken shortcuts until a restart.
Comment 8 Johannes Dorn CLA 2014-01-24 05:28:31 EST
I think i can confirm that this is not a Code Recommenders bug.

I've managed to reproduce the same behavior by installing "Maven Integration for Eclipse (Juno and newer) 1.4" from the marketplace.

The problem seems to occur when the welcome screen gets displayed after installing a plugin that adds itself to the overview page of the welcome screen. 

Since installing Code Recommenders or M2E results in the welcome screen, the issue occurs after both installations.

I will open a new bug for this.
Comment 9 Andreas Sewe CLA 2014-01-24 05:32:44 EST
@Johannes: Great job in narrowing this down! Thanks.
Comment 10 Raphaël Flores CLA 2014-01-24 06:15:19 EST
@Andreas: I got such stacktrace in my error log, but only once, cannot get it again at the installation step.

@Johannes: seems that I can't edit bug status, so I let you manage/close it.

Thanks to all. o/
Comment 11 Johannes Dorn CLA 2014-01-24 06:30:27 EST

*** This bug has been marked as a duplicate of bug 426557 ***
Comment 12 Marcel Bruch CLA 2014-06-19 06:34:02 EDT
Closing for 2.1