Closed thygrrr closed 1 year ago
Thanks for the PR! Yeah, the Timer issue is weird. I will test this PR soon and give feedback :)
One quick question:
Is the deferring really needed in _exit_tree()
?
One quick question: Is the deferring really needed in
_exit_tree()
?
I don't think it is necessary, with added info now I think it's 50/50 between making it better vs making it worse given recent changes in 4.2 that perform a lot of operations after some modal dialogs, such as mesh upgrading, etc.
I see. I only get Timer was not added to the SceneTree. Either add it or set autostart to true.
in 4.2.beta3. So seems like deferring is not needed anymore?
The
"Timer was not added to the SceneTree. Either add it or set autostart to true."
error bug is still happening to me in 4.2.beta4
Fixed in https://github.com/Maran23/script-ide/pull/19 Thanks @thygrrr and @hydescarf for your hints! With Godot 4.2 beta I get no errors anymore. With Godot 4.1.3, I only get the index errors, but since they are fixed in 4.2, I guess we are good to go.
Partially fixes https://github.com/Maran23/script-ide/issues/16
The deferred setup, and avoiding to do work in _process before deferred setup has occurred, helps reduce the error messages seen in the described issue: