Godot version:
b7320bc02ff6753cab
OS/device including version:
4.19.4-arch1-1-ARCH
Issue description:
When editing a script with export variables, failure in compilation leads to export variables to be lost
Conditions:
Steps to reproduce:
Minimal reproduction project:
LoseExport.zip
Now that it's mentioned, I have noticed recently that my scenes are losing their exported values at regular intervals. I can confirm that this is happening.
I've seen this too a lot on a project I use to try to reproduce bug reports, where script compilation failure often end up in my main scene losing its PackedScene export var (thus breaking the game).
I think this might be the actual cause of #23418
I think that this was introduced in #23639 (via bisecting + fixing); I've put up a potential PR in #24707 that seems to fix the issue.
Most helpful comment
Now that it's mentioned, I have noticed recently that my scenes are losing their exported values at regular intervals. I can confirm that this is happening.