Facepunch / sbox-issues

174 stars 11 forks source link

`FileSystem.Mounted` doesn't mount library content #5812

Closed badandbest closed 4 days ago

badandbest commented 2 months ago

Describe the bug

FileSystem.Mounted ignores files from libraries. This is really bad because it breaks every feature that relies on it.

To Reproduce

  1. In the Code folder, create a file with the extension ".test". image

  2. Find all files in FileSystem.Mounted with the ".test" extension.

    foreach ( var testExtension in FileSystem.Mounted.FindFile( "", "*.test", true ) )
    {
       Log.Info( testExtension );
    }
  3. FileSystem only mounts the file in the game project. image

Expected behavior

Content in libraries needs to be mounted to FileSystem

Media/Files

Project.zip

Additional context

This is likely the root cause of https://github.com/Facepunch/sbox-issues/issues/5522 because scss files also do not get mounted.

badandbest commented 2 weeks ago

Alex confirms libraries aren't mounted. image

Is there a reason for not mounting libraries? Does that break other features?

badandbest commented 4 days ago

After 6 months we can finally use UI in libraries. 🎉