Godot cannot create folder in "new project" dialog if there are invalid characters in the name and doesn't scrub input for folders
Tested versions
- Found in v4.2.1.stable.official, likely reproducible in other versions
System information
Godot v4.2.1.stable - Windows 10.0.19045 - Vulkan (Forward+) - integrated Intel(R) HD Graphics 530 (Intel Corporation; 31.0.101.2111) - Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 Threads)
Issue description
If you attempt to create a project with the name having invalid folder characters in the name and press "Create folder", then it will say "cannot create folder". If you manually make a folder without special characters(or temporarily change the name of the project, create the folder, then change the name back), then everything functions normally. What I would expect is for Godot to do some input scrubbing and remove/replace invalid characters in the name,
Steps to reproduce
- Attempt to create a project.
- Name it something with an invalid character(such as a question mark ? in it).
- Press "Create folder".
Minimal reproduction project (MRP)
N/A
I think that the characters being replaced with underscores(like GitHub) would work well
On Thu, Apr 25, 2024, 11:02 AM Borges-IST-2003 @.***> wrote:
What should the expected behaviour be? Either the wrong characters be removed from the filename or godot saying tha the change is not possible right?
— Reply to this email directly, view it on GitHub https://github.com/godotengine/godot/issues/90026#issuecomment-2077645333, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATOOUFW2BG4LAPP5ZMARF3DY7ESJRAVCNFSM6AAAAABFO6LHT6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZXGY2DKMZTGM . You are receiving this because you authored the thread.Message ID: @.***>