Steps to reproduce:
- Create a new project
- Open Edit > Preferences > External Tools
- Make sure Visual Studio is selected as the External Script Editor
- Open Edit > Preferences > Asset Pipeline
- Set Auto Refresh to Enabled
- Create a new C# script, or modify an existing C# script, using Visual Studio or Visual Studio Code
- Save the script
- Wait for Unity to automatically refresh the script
- Open Edit > Preferences > Asset Pipeline again
- Set Auto Refresh to Disabled
- Modify the same C# script again
- Save the script
- In the Unity Editor, select the modified script in the Project window
- Observe the Console
Actual Result: The Console starts spamming warnings such as [Worker4] Import Error Code:(4)
Expected Result: The Console remains clean
Reproducible with: 6000.0.0f1, 6000.0.76f1, 6000.3.16f1, 6000.4.9f1, 6000.5.0b10, 6000.6.0a6
Reproducible on: Windows 11
Not reproducible on: No other environments tested
Notes:
-Reproducible when scripts are modified in both Visual Studio and Visual Studio Code
-A manual refresh of the changed script resolves the issue