cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

[solved] eclipse find&replace ignores paste command

abo
Active Contributor
0 Likes
1,382

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.

Accepted Solutions (1)

Accepted Solutions (1)

Tomas_Buryanek
Product and Topic Expert
Product and Topic Expert

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 Likes
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
Product and Topic Expert
Product and Topic Expert
@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 Likes
Very annoying bug! Thanks for the link how to switch to the old Find/Replace function.

Answers (1)

Answers (1)

JaschaS
Explorer

To me it seems like this:

There was a bug that was fixed shortly before the release of 4.34.

But in editors from ADT, this bug is still present. Maybe they were built on top of Eclipse's code from before the fix.

You can see that it works in Eclipse's general editor when creating a text file from File -> New -> Other -> General -> Untitled Text File.