On 4.2.2. I want to set up a step on github CI to validate all gdscript in the project. There is a workaround to run --check-only
on all scripts, but it fails:
SCRIPT ERROR: Compile Error: Identifier not found: Globals
...
ERROR: Failed to load script "res://classes/example.gd" with error "Compilation failed".
It doesn't know of the autoload and fails.
So my questions are:
- Is it possible to get my autoloads loaded before the script is compiled?
- Is there another way to validate the scripts?
Thanks.