I have an enum in an autoload script named PikbotUtilities with several values possible values:
enum Pikbot_type {RED, YELLOW, BLUE}

The object PikbotSpawner has an exported variable of that enum type, so that I can set its value with a dropdown list int he editor:
@export var type: PikbotUtilities.Pikbot_type = PikbotUtilities.Pikbot_type.RED


Everything was working perfectly 🙂

...But then I updated the enum to add a new value, BLACK, but I was getting errors saying that BLACK wasn't recognized as being part of the enum. It wasn't showing in the editor drop-down either. However, I just restarted Godot and now everything's working fine again and the BLACK option has become available.

So my question is: Is this normal? Do I have to do something to refresh the autoload, or is restarting Godot the usual way to work through this?

    Toxe I see, thanks for the confirmation! Hopefully next time I'll remember about this and won't waste 20 minutes banging my head against a wall :S

    a year later

    This bug is still there in Godot 4.3 as it happened to me today. Anyone know if it is something the godot team is working on ? Will this be fixed in 4.4 ?