Skip to content
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

Add more context to some Window errors #82590

Conversation

YuriSizov
Copy link
Contributor

@YuriSizov YuriSizov commented Sep 30, 2023

We have some error messages throughout the engine which have pretty vague statements in them, without pointing to any specific context. This PR addresses a couple such examples in Window (and Control).

Mainly, this PR unifies the checks and the error message for the infamous transient parent exclusive child operation, and adds some details about the current node, the parent, and the other child that conflicts with our current node. Since this message can happen in the editor without much user agenda, we need all 3 to understand where it's coming from.

For example, we have this issue with the MSBuild panel when building fails:

godot windows editor dev x86_64 mono_2023-09-30_20-12-02

Seems like the progress bar that appears during the build conflicts with the error message that we pop at the end. This wasn't so obvious before and required more debugging and digging. (cc @raulsntos this should help!)


PS. Rest in peace, "Transient parent has another exclusive child." You are "Attempting to make child window exclusive, but the parent window already has another exclusive child." now.

scene/main/window.cpp Outdated Show resolved Hide resolved
@akien-mga akien-mga requested review from bruvzg and a team September 30, 2023 19:09
@YuriSizov YuriSizov force-pushed the window-you-come-to-me-on-this-day-the-day-when-my-child-becomes-exclusive-with-a-transient-parent-to-ask-for-this branch from 7b17bf7 to 53172d9 Compare September 30, 2023 19:44
Copy link
Member

@akien-mga akien-mga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@akien-mga akien-mga merged commit 1e819ae into godotengine:master Oct 2, 2023
15 checks passed
@akien-mga
Copy link
Member

Thanks!

@YuriSizov YuriSizov deleted the window-you-come-to-me-on-this-day-the-day-when-my-child-becomes-exclusive-with-a-transient-parent-to-ask-for-this branch October 2, 2023 11:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants