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
- Frame Debugger is not disabled when switching Scenes if the Frame Debugger window is not open during the transition
- Standalone Profiler Targets another Project if a Standalone Profiler was launched in it before when switching between Edit or Play Mode Targets
- Crash on ForwardRenderLoopJob when opening a specific project
- [Android] Memory leak and eventual crash on Snapdragon 8 Gen 1+ devices when a Clear Pass is executed after Framebuffer Fetch
- PhysicsRaycaster ray length is incorrect when casting from rotated Camera
Resolution Note (fix version 2022.2):
Fixed in Unity - 2022.2.0a4 and above