New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shortcut key not working in release 4.14.0.RELEASE #746
Comments
I am also facing this issue and can confirm this. unable to rename anything in Java sources. |
I tried to reproduce this. I am on a Mac, so maybe the exact keyboard shortcuts are not 100% identical to other platforms. In my case, the latest STS 4.14.0 release invokes the rename operation on Alt-Cmd-R in a Java editor for example. This is identical to the behavior of a standard Eclipse 2022-03 installation. The shortcut doesn't show up on the menu items (for some reason), but if you open the Can you take a look at this to see whether the shortcut has maybe changed or is on a different key combination for you? |
Can confirm on Linux, Eclipse 20220310-1457 with STS addon site. I even had a conflict with "Rename" in category "File" and "Rename - Refactoring" in category "Refactor - Java" on "Shift + Alt + R", but didn't help to resolve this. |
Is this behavior different from a plain Eclipse installation? |
Yes, for me in eclipse Version: 2022-03 (4.23.0) with the default key settings the renaming shortcut is working |
@ThomasD281 Which exact distribution of Eclipse? On which OS? And what exact keybinding on your system? Asking to be able to understand and reproduce this exactly... :-) |
The shortcut doesn't work, yes, but if select with left-button over class name, parameter, property or variable, and entry 'refactor->rename' the renaming operation itself doesn't work. An error is produced. But only if select renaming on editor file. If select renaming classes from project explorer, all will be fine. |
@ofornes-basecat This sounds/looks like a slightly different problem. Is this an upgraded instance of STS4? The error log that you attached is pointing into a direction where multiple versions of JDT types are around, so I am wondering what might have caused this. Question to all here: |
I have been having this problem for last 1 month (STS 4.9.0.RELEASE-e4.18.0) surely and upgraded to STS 4.14.0 yesterday and yet the problem persisted. So, tried by downloading STS 4.14.0 on Eclipse 4.23.0 and still problem exists. |
Running upgraded version of STS from 4.13.1 to 4.14.0 on mac os. Error log when pressing shortcut for refactor -> rename in java source window see attached log |
@ThomasD281 This looks like the same error as @ofornes-basecat reported above, but I am still puzzled why that happens or how to reproduce that. Installed a fresh STS 4.13.1 release on my machine (macOS), upgraded to 4.14.0, but the keyboard shortcut (Cmd-Alt-R) still works when the cursor is, for example, on a class name in the Java editor. Can you open a Console view, then choose "Host OSGi Console" from the drop-down, and type in |
found only these 2 (attached the whole output of the ss command) |
Do you have Lombok installed/added to your IDEs? |
This is just a wild guess... From the installed bundles, everything looks fine, right versions of JDT are installed, so there no reason why the exception that you see in the logs should appear. I know that Lombok modifies JDT core at load time, therefore that could be an explanation (if you have the Lombok extension installed in your |
yes - I will re-install it again - maybe this helps |
Ok, can you uninstall Lombok and try again? |
The issue is already filed and marked as fixed on Lombok: projectlombok/lombok#3134 - fix version seems to be In case someone runs across this issue without Lombok being involved, please comment and we can re-open or create a new issue for that. |
uninstalling lombok and shortcut works again. thx for the help ... |
found same (running Ubuntu). resolved conflict but no joy. |
Just installed latest lombok "v1.18.23 "Edgy Guinea Pig" - 2022-03-16" from here and it worked. Thanks a lot. |
|
@martinlippert Yes, I have added lombok installed in my IDE |
I can confirm that lombok agent is the problem. Under the same context but without lombok agent, all works like a charm |
@martinlippert I test STS 13 upgraded to 14 and fresh install of STS 14.
I think the problem is only the lombok agent. |
@ofornes-basecat Thanks for double checking and confirming our initial results here. So everybody who uses Lombok should make sure to use the latest Lombok extension for Eclipse with the latest STS 4.14.0 release. |
It seems the issue is still not completely fixed. Try to rename the file using Crtl+Shift+R by clicking the on the file in the package explorer. The window and different options in the toolbar menu starts flickering. |
@shankarwww Do you have the Lombok extension installed as well? Or does the problem appear even without anything Lombok-related being installed? |
I found that this problem doesn't occur in STS 4.7.2, but in 4.8.0 and upper versions. |
yes, I have lombok plugin installed. |
As discussed in this issue, the problem got fixed in Lombok 1.18.24 (here is the related Lombok issue: projectlombok/lombok#3134), so please make sure you have the latest Lombok extension installed. |
In the 4.14.0.RELEASE, shortcut key like rename-refactoring(Alt+Shift+R) is not working. Open a class, select a method or class name to rename, some other dialog box is getting opened. The was issue in 4.13.0.RELEASE too where window use to shake when u try Alt+Shift+R.
The text was updated successfully, but these errors were encountered: