Search Issue Tracker
Fixed in 2022.2.X
Fix In Review for 2022.1.X
Votes
0
Found in
2022.1
2022.1.0a6
2022.1.0f1
Issue ID
1424612
Regression
Yes
WaitForDomainReload does not trigger script reload when running the Editor from CLI
How to reproduce:
1. Download the attached project
2. Navigate to your Editor install directory
3. Execute the following terminal command "./Unity -runTests -testPlatform editmode -testFilter "BuildTests" -projectPath $PROJECT_PATH$ -testResults $PROJECT_PATH$/results.xml -logfile $PROJECT_PATH$/Editor.log -batchmode"
4. Wait until test execution finishes
5. Open and inspect the results.xml file
Expected results: All applicable build tests succeed (Il2CPP tests may fail if the required module was not installed for the Editor version. Tests cases that use graphics APIs which are not supported by the platform are skipped)
Actual results: The tests fail with the following error message - "Error building Player: A script reload is pending. Allow scripts to reload before building."
Reproducible with: 2022.1.0a6, 2022.1.0f1, 2022.2.0a3
Not reproducible with: 2019.4.38f1, 2020.3.33f1, 2021.3.1f1, 2022.1.0a5
Notes:
1. Tested on Windows10 and macOS 12.0.1
2. Test Framework version 1.1.31 was used during testing
3. The issue does not reproduce when the Editor is launched normally and the tests are executed via Test Runner
4. The issue reproduces with and without -batchmode argument
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
Resolution Note (fix version 2022.2):
Fixed in Unity - 2022.2.0a4 and above