How to reproduce:
- Create and open a new project
- Import the attached “AutoStaticsCleanupTest“ script
- In the Project window right click on the imported script and select “Reimport”
- Observe the Console window
- Open the “Editor.log” file and search for warning CS8785:
Actual result: There is a warning in the Editor.Log that is not displayed in the Console window in the Editor
Expected result: The warning appears in the Console window
Reproducible with: 6000.6.0a6, 6000.6.2f1, 6000.7.0b2, 7000.0.0a1
Could not test with: 6000.0.0f1, 6000.3.25f1 (Unity.Scripting.LifecycleManagement was not yet introduced) 6000.6.0a5 (no warning appears in the Console or Editor.Log)
Reproducible on: Windows 11
Not reproducible on: No other environment tested
Note: Upgrading versions might make the warning also not show up in the Editor.Log