-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Headless builds: No support for error popups/dialogs #57016
Comments
Should a compile-time define be able to handle this by using One open question is what to do when there are multiple choices possible. I think the dialog should always be confirmed in headless mode. This is likely done by pressing the |
Headless builds are no longer separate builds in 4.0, it's just a |
I wonder whether we should do that by default or exit with an error unless an additional CLI arg is given ( I.e. then the first time you run into this you are very obviously confronted with the decision to confirm all prompts by default (the error could even point out the CLI arg). I guess we could also just do it and assume all users who use |
I am concerned about adding a different mode that needs to be tested. Headless is a separate mode and gets less amounts of testing already. |
This issue bit me today. I spent several hours trying to figure out how to accept a dialog prompt when running in headless mode in CI (otherwise it hangs indefinitely). Eventually I tracked it down to the |
I think this is causing an issue with a
Update:
|
The trouble with auto-confirming a restart prompt is that in a typical headless scenario like a CI script, there's now a new orphan editor process you have to find and wait for, which is pretty awkward (unless there's an easy solution I'm missing). It might be better to simply exit with a certain error code rather than restarting when headless. |
The issue is, we need to define an universal solution for all AcceptDialogs and ConfirmationDialogs. I don't see a way to provide more granular behavior that would allow simply exiting the editor (without restarting it) when there's a ConfirmationDialog that proposes quitting and restarting the editor. |
Agreed, currently I have to handle a fresh git clone of the project in the build script by running This is obviously not a desired workflow... |
Things like
EditorNode::immediate_confirmation_dialog
:godot/editor/editor_node.cpp
Line 4877 in 34f6572
...currently don't handle
headless
mode at all, which is problematic as they are in some cases used for critical information, errors and even to confirm required editor restarts.Currently, in
headless
mode, this just leads to that information being quietly supressed.(One example is the popup for restarting/quitting the editor if new GDExtensions are detected: #53163)
The text was updated successfully, but these errors were encountered: