-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Create new project with default "Create folder" selected, not working in Godot 4.3.* #93973
Comments
Reproducible on 4.3.beta2 & 4.3 master [b97110c] on macOS 15.0. Screen.Recording.2024-07-05.at.15.06.16.movPerhaps some form of sanitization could make the behavior consistent. |
This looks like there may be a discrepancy in expected behavior—
Is it documented somewhere how this is supposed to behave? |
It looks like this functionality was proposed in godotengine/godot-proposals#4749. According to that proposal, the current implementation works correctly. A similar concern about this feature being unintuitive was raised in this comment on the related PR. Perhaps the proposal should be reopened for further discussion? I'm somewhat unfamiliar with Godot's proposal process, maybe a maintainer can clarify |
Reproducible on Godot 4.3RC2 on Windows 10. |
Create Folder button toggles appending the project name to path: godot.windows.editor.dev.x86_64_KSDpUzJoCz.mp4The project name is appended automatically when you Browse path: godot.windows.editor.dev.x86_64_eJz6khxUH5.mp4The only case when it "doesn't work" is when you manually modify the Path field. We can:
Note that for the latter option we still need to show the project's folder name somehow, so it would be a new label somewhere. |
I would think of it differently; instead of appending the "Project name" input box text to the "Project path" input box text, simply, at the moment of pressing the "Create & Edit" button:
This way, it would work well for all cases. |
The project name appended to path follows the project naming style set in editor settings. Thus having a preview of the name is needed, otherwise users would be confused why their folder is named differently. |
The UX problem here is that "Create Folder" does two things:
Users may want to create a folder, but customize the name of that folder. So I think it should behave somewhat like this:
What would prevent this from working currently? |
You mean like it does currently? The problem is that the path can be changed to an existing, non-empty folder. Currently it results in a warning. We can't modify the Path field when user changes it manually. |
What do you think about if a user manually inserts a shared path for their projects folder from the clipboard and with the "Create folder" option enabled, the project name is added at the end of the project path field? |
LineEdit has no signal for pasting text from clipboard, so manually appending something would make it impossible to write in the field (the text would change each time you type a character). |
It turns out that then it will be possible to update the path after insertion only when using text_submitted signal (Paste the copied path and confirm with the Enter key)? |
This comment has been minimized.
This comment has been minimized.
I always type in the project base path, so the "Create Folder" checkbox has legit never worked for me. The old button worked. I would expect it to just tack on the project name as a subdirectory of whatever I typed in. Not being able to type in the directory if I want to have it generate the folder is a pain, especially since it defaults to the documents directory and I have a godot projects directory I have all my quick test projects in. Can't you just tack it on as soon as you go out of the project path edit box or change the project name? Could possibly even add it to the right of the cursor as you're typing, as long as the string to the right matched the new folder string. Just feels super janky and broken right now. Edit: Also, if I type in "E:\projects\godot" then click browse to quickly fix the directory not creating, it brings up the file dialogue to "E:\projects". If "Create Folder" is unchecked, it will open to "E:\projects\godot" as expected. |
Tested versions
System information
Ubuntu 22.04.4 LTS - Godot v4.3.beta2.official [b75f048]
Issue description
When creating a new project, the "Create Folder" option is selected by default, but it is not working.
If I leave the option checked (as it comes) and press the CREATE AND EDIT button, it creates the project without creating a new folder with the project's name. However, if before pressing the CREATE AND EDIT button I uncheck and recheck the "Create Folder" option, in that case, it does create the folder.
Video for new proyect
Steps to reproduce
Test 1
Test 2
Possible fixes:
Minimal reproduction project (MRP)
no MRP, only video to see bug
Grabación de pantalla desde 05-07-24 11:27:01.webm
The text was updated successfully, but these errors were encountered: