Facepunch / sbox-issues

173 stars 11 forks source link

S&box editor crashes when opening certain project containing library #5466

Open chrisspieler opened 3 months ago

chrisspieler commented 3 months ago

Describe the bug

S&box will crash when opening a project that contains a library whose ident matches that of the project.

To Reproduce

  1. Open the attached project in the S&box editor
  2. Wait for the editor to crash

Expected behavior

The S&box editor shouldn't crash when I open a project. It should not be possible to create an ident conflict in a project.

Media/Files

Steam ID: 76561198000586141 Log.log freecam.zip

Additional context

No response

chrisspieler commented 3 months ago

The problem is that I tried creating a library named freecam but the project is also named freecam. So I guess the editor got confused and crashed. Deleting the Libraries/freecam folder works around the issue.

Opinions:

  1. It should not be possible to create a library that has the same ident as the containing project.
  2. If a project is opened that contains a library with the same ident as the project, the user should be instructed to fix the issue.