"A file or folder with this name already exists" errors when renaming folder to a different name #82543
Description
Godot version
Godot v4.2.dev (44e399e)
System information
Mageia 9 - X11 - GLES3 (Compatibility) - AMD Radeon RX Vega M GL Graphics (vegam, LLVM 15.0.6, DRM 3.52, 6.4.9-desktop-4.mga9) () - Intel(R) Core(TM) i7-8705G CPU @ 3.10GHz (8 Threads)
Issue description
I have this simple setup, using Split Mode:
If I try to rename a folder (e.g. player
) in the thumbnails view, a number of bugs occur:
Start renaming with F2 or Right click > Rename
- Keep the same name, and click in the FileSystem dock: no change, no error, as expected
- Keep the same name, and click outside the FileSystem dock:
- If clicking in the Scene tree (positioned in the same column for me), no change, no error
- If clicking in the Inspector, or 3D viewport, an error is shown that it can't be renamed as the name is taken
And a transient window elusive child error from that popup.
- Change the name to something unique (e.g.
player2
), then confirm the change with the mouse:- If clicking in the FileSystem dock, the rename works sometimes, and the folder is entered automatically, which seems weird to me. The selection is also out of sync between the tree view and the thumbnails view:
- But in other times with the same steps, it fails with the error about a file name conflict. Not sure how to reproduce reliably, it seems to happen maybe 10% of the time for me.
- If clicking in the Scene tree, same behavior as above.
- If clicking in the Inspector, or 3D viewport, same file conflict error as above.
- Change the name to something unique (e.g.
player2
), then confirm the change with the Enter:- Same behavior as with mouse click.
Some of these bugs seem specific to the Split Mode, but others seem to also happen in Tree view. It feels very buggy overall, it needs a thorough fixup pass.
Seems to be a regression which happened between 4.2-dev1 and 4.2-dev3. 4.2-dev2 is outright crashing on start so I can't test further. In dev1, I don't get the dialog about file name conflicts. I do get the weird behavior that editing a folder name enters the folder, and makes the selection out of sync in Split Mode, so that's a pre-existing and different bug.
Steps to reproduce
See above.
Minimal reproduction project
Reproducible in a brand new project.
Activity