Facepunch / sbox-issues

176 stars 12 forks source link

Cloud.SoundEvent causes compile error on initial project load #6950

Open chrisspieler opened 5 hours ago

chrisspieler commented 5 hours ago

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

  1. 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.
  2. Open the .sbproj
  3. See that a compile error appears and is logged
  4. Close the s&box editor

Expected behavior

Whether or not a project loads should not depend on whether it has been loaded before.

Media/Files

sbox-dev.log Image

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.

chrisspieler commented 3 hours ago

Issue still persists after fix to issue #6942