I have a detached script, and it has a class_name.
I can't use it. Godot says the class can't be fully loaded because of a script error or a cyclic dependency.
The script doesn't have any errors and I don't see a cyclic dependency:
res://detached scripts/piece_getter.gd:7 - Parse Error: The class "Piece" couldn't be fully loaded (script error or cyclic dependency).
modules/gdscript/gdscript.cpp:599 - Method failed. Returning: ERR_PARSE_ERRO
Is it that scripts must have scenes to be loaded by default? is it the problem that it's a detached script?
It's the only thing that I can think of that might be an issue.
Is that it?
EDIT: I closed Godot and re-opened it. The error went away. Consider this post closed.