RED icon indicating copy to clipboard operation
RED copied to clipboard

Ctrl + Z acts on wrong tab after switching using keyboard shortcuts

Open JessefSpecialisterren opened this issue 4 years ago • 11 comments

To reproduce:

  1. Open any two .robot files
  2. Do a trivial edit in one of them
  3. Switch to the other one using Ctrl + PageUp or Ctrl + PageDown
  4. Do another trivial edit
  5. Press Ctrl + Z
  6. Notice how your trivial edit made in step 4 isn't reverted
  7. Switch tabs to the other .robot file
  8. Notice how your trivial edit made in step 2 is reverted

I can consistently reproduce this on RED 0.9.5 on Windows 10. This bug has caused me to lose bits of code multiple times already 😅. Note that I cannot reproduce this using plain text files, only with Robot Framework files.

Let me know if you're able to reproduce this, I would love to see this fixed 🙂!

JessefSpecialisterren avatar Sep 10 '20 12:09 JessefSpecialisterren

HI, yes it is reproducible. We have it reported internally too.

joanna-may avatar Sep 11 '20 06:09 joanna-may

Hi,

When can we expect fix for this issue?

Pawci3oo avatar Oct 06 '20 16:10 Pawci3oo

Hi,

we had little time for RED recently and as a result we do not know yet what is the cause of this.

From what I've checked this is reproducible with eclipse version 4.16 and RED product at version 0.9.5 was updated to use precisely this version. I can also reproduce it with newest eclipse 4.17 released few weeks ago. Nothing had changed in this code area in RED recently so it must be caused by eclipse change - however it may be some API misuse so the actual fix could be made on RED side. Anyway further investigation is required.

As a workaround currently one can use eclipse 4.15 (2020-03) and install RED in it.

michalanglart avatar Oct 06 '20 20:10 michalanglart

Hi,

I can confirm that the problem is not only when switching tabs using "Ctrl + PageUp" or "Ctrl + PageDown", but also when using the mouse to switch tabs.

I have two videos if needed.

SkyFoxCoder avatar Dec 17 '20 17:12 SkyFoxCoder

Hi,

Do you have visibility about the correction of this bug ? We can't use the latests versions of Eclipse because of that (4.16 to 4.19). It's a shame because RED plugin is very helpful otherwise.

Thanks

meriadecgithub avatar Mar 24 '21 15:03 meriadecgithub

I have problems with not working undo/redo for robot files in many situations after upgrading Eclipse. It's almost unusable with this bug because I can't work without undo/redo.

s-ludvik avatar Mar 30 '21 16:03 s-ludvik

I downgraded to Eclipse 2019-03 this morning and did some tests:

Eclipse 2019-03

  • opened three robot files and placed them side by side in the editor
  • made a change in the first file -> undo/redo buttons remain unchanged
  • made a change in the second file -> undo/redo buttons remain unchanged
  • made a change in the third file -> undo/redo buttons switch to yellow und funktionality is normal - but only for the third file -> doing the same steps using ctrl-z works, so the problem here is in the buttons (menu "Edit")

Eclipse 2020-03 - regarding the button problems in the previous test I concentrated on keys now:

  • opened two robot files
  • made a change in the first file
  • made a change in the second file
  • saved both files using the "save-all" button
  • made ctrl-z in first file -> works
  • made ctrl-z in second file -> works

Eclipse 2020-12 - the version I was previously using

  • opened two robot files
  • made a change in the first file
  • made a change in the second file
  • saved both files using the "save-all" button
  • made ctrl-z in first file -> nothing happens
  • switch to the second file -> the change was reverted!

So in version 2020-12 a SAVED file is changed by a wrong undo :'(

This problem has been consuming lots of my time, it's a desaster. I will go back to 2020-03.

I put all this information especially for other people who are facing this problem and can't find any knowledge about it.

s-ludvik avatar Mar 31 '21 07:03 s-ludvik

@michalanglart Is it possible to fix this bug and release together with RF 4.0 support?

Pawci3oo avatar Mar 31 '21 19:03 Pawci3oo

Hi,

first of all we will know next week how much work we would be able to do in RED development in nearest future.

However no matter the outcome I doubt there will be a single release covering both. This bug is annoying for many people so once we would fix it we would release a version.

Support for RF 4.0 requires more effort probably so we wouldn't wait for that with a release when having this bug fixed.

So far I've spent some time on 2 or 3 occasions looking for the cause of this bug however no luck yet.

michalanglart avatar Mar 31 '21 19:03 michalanglart

Is there a chance this bug will get fixed? Being stuck on Eclipse 2020-03 is becoming a problem.

s-ludvik avatar Oct 04 '21 05:10 s-ludvik

This bug is still active in Eclipse 2021-12 :(

s-ludvik avatar Feb 24 '22 10:02 s-ludvik