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
- Rotation Property collapses after changing Interpolation Type In Animation window
- It is possible to enter impossible Scope name in the Scope Registries of Package Manager Project settings
- 'EditorSceneManager.sceneCount' reports the wrong count when called by an 'EditorSceneManager.sceneClosed' event
- Entering large values in keyframe “Value” causes Curve to disappear and spams Mesh Bounds errors in the Console window
- [Android][iOS][UnityPlayerActivity] Legacy InputField.onEndEdit is not called when ending text edit
Resolution Note (fix version 2022.2):
Fixed in Unity - 2022.2.0a4 and above