cancel
Showing results for 
Search instead for 
Did you mean: 

eclipse find&replace ignores paste command

abo
Active Contributor
0 Kudos
202

Using the latest Eclipse / ADT (but it happened also with the previous versions), I hit ctrl-F to start find&replace: I enter the "find" string "/ui2/cl_json", move to the "replace" field and hit ctrl-V, to paste the stored valued "z_ui2_json".

Nothing happens.... or rather: the field remains empty, but the text was pasted into the sourcecode at the cursor position, which is definitely NOT what I was looking for.

Can anyone else reproduce this behaviour? I'd call it a bug, or at the very least an incomplete feature.

View Entire Topic
Tomas_Buryanek
Active Contributor

Hello, I just tried this out of curiosity and could not replicate this issue (see edit below).
CTRL+F, write "/ui2/cl_json", click on down arrow (to open Replace functionality), CTRL+V to paste "z_ui2_json". Result as expected:

Tomas_Buryanek_0-1734075088501.png

I am on Eclipse:
Version: 2024-09 (4.33.0)
Build id: 20240905-0614

Tomas_Buryanek_1-1734075263444.png

EDIT: I just updated to Eclipse:
Version: 2024-12 (4.34.0)
Build id: 20241128-0757

And now I can confirm there really is bug 😀
But most likely in Eclipse and not ADT? Because my ADT version is same like before (newest).

After CTRL+V:

Tomas_Buryanek_0-1734075993395.png
EDIT2: Seems like Eclipse recently reworked FIND/REPLACE function and there is a way to switch to old version: https://stackoverflow.com/questions/79012836/eclipse-2024-09-is-there-a-way-to-get-the-old-find-repl...

abo
Active Contributor
0 Kudos
Interesting finding, thanks for backing this up. I would not swear under oath that I had the same issue before the upgrade but that's because of the holidays in between 😄
Tomas_Buryanek
Active Contributor
@abo Plese see my EDIT2. There is a way to switch to old find/replace window. And when I tried it works OK. So only new replace/find "overlay" has this bug. Apparently it is new feature so with bugs as expected 😄
jmodaal
Active Contributor
0 Kudos
Very annoying bug! Thanks for the link how to switch to the old Find/Replace function.