Skip to content
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

[4.3 Dev 3] Undo in Script Editor is dangerously dysfunctional (OK in 4.2) #89060

Closed
daviesaz opened this issue Mar 1, 2024 · 13 comments
Closed

Comments

@daviesaz
Copy link

daviesaz commented Mar 1, 2024

Tested versions

  • Reproducible in 4.3 Dev 3, not in 4.3

System information

Mac OS Sonoma 14.2.1, Intel processor

Issue description

Undo at least sometimes undoes something back in history other than the most recent change. It seems to ignore text changes and go back to a recent structural change.

Steps to reproduce

In the editor, create a Node2D. Add a script to the Node2D and, in the script editor, type in a second "pass" operation on the _ready method. Hit Cmd-Z.

In earlier versions, the second "pass" is deleted. In 4.3 Dev 3, the whole script is deleted from the Node2D

Minimal reproduction project (MRP)

N/A

@Riteo
Copy link
Contributor

Riteo commented Mar 2, 2024

not in 4.3

Did you mean 4.2? :P

@akien-mga
Copy link
Member

Please test 4.3-dev4, I've seen report of such an issue fixed in that snapshot.

@daviesaz
Copy link
Author

daviesaz commented Mar 2, 2024 via email

@luevano
Copy link
Contributor

luevano commented Mar 7, 2024

@akien-mga just tested in 4.3-dev4, can't reproduce.

@akien-mga
Copy link
Member

Closed as fixed in 4.3-dev4. @daviesaz Please let us know if you still reproduce the issue in that version or later ones.

@caimantilla
Copy link

I've got no clue what was going on here, but both dev5 and master have been very problematic for me. I can't get the script editor to undo, nor can I even close the current script. Even if I remap the Close Scene shortcut (why was it changed??) all that CMD+W does is stop inspecting the current resource. Very unfortunate, I'm liking the other GUI changes that I've noticed in 4.3, but there's something seriously wrong with the script editor.

@caimantilla
Copy link

Closed as fixed in 4.3-dev4. @daviesaz Please let us know if you still reproduce the issue in that version or later ones.

I just tried 4.3-dev4, and everything works as expected with it. Even 4.3-dev3 has better behavior than 4.3-dev5, as at least I can close the script in that version, but it's otherwise the same deal as 4.3-dev3. There must have been some regression between 4.3-dev4 and 4.3-dev5.

@kitbdev
Copy link
Contributor

kitbdev commented Mar 17, 2024

@caimantilla It looks like the Close Scene shortcut was changed in #88913
The undo problem sounds like it is different and a new issue can be opened for it. It seems to work fine for me on windows, and it may be related to #85325.

@caimantilla
Copy link

@caimantilla It looks like the Close Scene shortcut was changed in #88913 The undo problem sounds like it is different and a new issue can be opened for it. It seems to work fine for me on windows, and it may be related to #85325.

From what I remember, close script didn't even work after I changed the close scene keybind back to the old one. Just think the script editor isn't receiving shortcuts at all

@lostminds
Copy link

Also seeing this, the bug from 4.3dev3 where undo in the script editor instead undid changes in open scenes was fixed in 4.3dev4, but is now back again in 4.3dev5. Interestingly it seems specific to undo/redo. Other keyboard shortcuts like copy/paste correctly target the active script editor.

@daviesaz
Copy link
Author

daviesaz commented Mar 19, 2024 via email

@caimantilla
Copy link

...And now it seems to be fixed.

@kitbdev
Copy link
Contributor

kitbdev commented Apr 2, 2024

...And now it seems to be fixed.

It looks like it was mentioned on another issue and then fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants