When a project that uses Cloud.SoundEvent is freshly cloned or its .sbox folder was deleted, the initial load of a project will fail with a compile error. Loading this project a second time will not show the error.
To Reproduce
Clone Testbed in to a new directory, like: git clone https://github.com/Facepunch/sbox-scenestaging
Alternatively, delete the .sbox directory from an existing sbox-scenestaging project folder.
Open the .sbproj
See that a compile error appears and is logged
Close the s&box editor
Expected behavior
Whether or not a project loads should not depend on whether it has been loaded before.
Describe the bug
When a project that uses Cloud.SoundEvent is freshly cloned or its .sbox folder was deleted, the initial load of a project will fail with a compile error. Loading this project a second time will not show the error.
To Reproduce
git clone https://github.com/Facepunch/sbox-scenestaging
.sbox
directory from an existing sbox-scenestaging project folder.Expected behavior
Whether or not a project loads should not depend on whether it has been loaded before.
Media/Files
sbox-dev.log
Additional context
This issue might be more general than what I've described - this is just the scenario under which I can reliably reproduce the issue.