Godot Version
4.3
Question
As part of my code, I’ve created a placeholder scene that is instantiated, then should be immediately killed.
What I’ve done , is type QueueFree();
in the first line of _Ready
in a script attached to the root node of type Node2D
.
and the scene tree:

Note: ColorRect is irrelevant. The error appears whether it is there or not.
This will generate the compiler error CS0155, and will fail to build, alongside the message;
The type caught or thrown must be derived from System.Exception(30,20)
and will state the file;
C:\Users\[me]\Documents\GitHub\Critical-Damage\Godot.SourceGenerators\Godot.SourceGenerators.GodotPluginsInitializerGenerator\GodotPlugins.Game.generated.cs(30,20)
Can someone smarter than me help fix this, please?