Getting error with overriding the main loop type

Godot Version

4.7.2

Question

Hi! I am making (for fun) a game with no nodes based off a video by overlite. (linked below)

I have a script overriding the main loop type, and i get the error

E 0:00:00:460 main.gd:4 @ @implicit_new(): Parameter “SceneTree::get_singleton()” is null.
<C++ Source> scene/debugger/scene_debugger.cpp:586 @ parse_message()
main.gd:4 @ @implicit_new()

twelve times every time i run it.

I believe it has something to do with the debuger trying to debug the scene (which does not exist)

Post a minimal reproduction example.

What that video shows is interesting in the way code golf is interesting. It has no practical value and if you aren’t proficient enough with GDScript & Godot to troubleshoot this yourself, you are much better off following an example where the main point isn’t to show only one node in the editor.

/end soapbox