-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
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
Saving duplicates my Folder reference #76021
Comments
I can reproduce this problem, it seems to happen if the folder name is uppercase, it would then create an exact copy of the folder in lowercase. It wont happen if the folder name is all lowercase. OS: Windows 10, Vulkan Edit: I did try to reproduce it again, but i could not. I did try to create another file inside another folder with uppercase letters, but it did work just fine. This did never happen before while using lowercase foldernames and only uppercase script names. |
I think this can happen when you create a script, but the path you provide for the script does not match the name casing of the folders (e.g. you have Scripts folder, but your script path is |
Yeah I just tested and it's the case. The editor should either fix path input casing or don't allow using wrong path. |
The problem disappear after I moved one of the files from one of the folders to the other. The only file did not was duplicated between folders |
I am still seeing this problem in 4.2.1 |
Okay, so the repo steps are:
Expected: Either you're given a warning that the original location doesn't exist, or the scene gets saved to the new folder with the same name even thought it has a different case (ie. NewFolder/NEWFOLDER/newfolder/etc.) Actual: You now have two folders with the same name but different case in the Godot filesystem. Both folders seem to have the same contents. I've tracked the core problem to In |
I think I've narrowed the problem down to |
I found a much easier way to duplicate this. Instead of deleting and making folders, you simply rename the folder that the resource is in in your OS File Manager (OS being Windows or Mac, as this issue isn't in Linux) and save the file again in the editor. I've found a way to prevent the folders from being duplicated, so fixing this specific bug, but I've observed a related problem. While I've ensured that the folder isn't duplicated, the open scene and open scripts still have their location set to be a slightly different place. After renaming the folder, you can then open up the same file and instead of it recognising its already open, it just opens it up again. This means you can have the exact same resource opened up multiple times: |
Okay, I've created a PR to deal with the specific bug listed in this report; namely duplicated folders. More widespread handling of Godot case should be a separate bug. |
Godot version
4.0.2 (latest)
System information
Windows 10, Intel(R)HD Graphics Family, 20.19.15.5171, GLES3
Issue description
If i save my scene the folder duplicates ,i think there is bug on editor. Because i checked my game files if it really duplicates the folder . But it didn't.
2023-04-13.17-51-20.mp4
Steps to reproduce
Crtl + S
Also when deleting the folder all duplicated folders is deleted too.
Minimal reproduction project
N/A
The text was updated successfully, but these errors were encountered: