Search Issue Tracker

Active

Under Consideration for 6000.6.X

Votes

0

Found in

6000.0.76f1

6000.3.16f1

6000.4.9f1

6000.5.0b10

6000.6.0a6

Issue ID

UUM-143866

Regression

No

Import Error Code (4) warnings spam in Console when selecting a modified C# script with Auto Refresh disabled and Visual Studio set as External Script Editor

CodeEditors

-

Steps to reproduce:

  1. Create a new project
  2. Open Edit > Preferences > External Tools
  3. Make sure Visual Studio is selected as the External Script Editor
  4. Open Edit > Preferences > Asset Pipeline
  5. Set Auto Refresh to Enabled
  6. Create a new C# script, or modify an existing C# script, using Visual Studio or Visual Studio Code
  7. Save the script
  8. Wait for Unity to automatically refresh the script
  9. Open Edit > Preferences > Asset Pipeline again
  10. Set Auto Refresh to Disabled
  11. Modify the same C# script again
  12. Save the script
  13. In the Unity Editor, select the modified script in the Project window
  14. 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

Add comment

Log in to post comment