Search Issue Tracker
By Design
Votes
0
Found in
2018.3.0a6
2018.4.9f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1187120
Regression
Yes
Building in batchmode after deleting a file completes the build successfully, but logs an error about the missing file
How to reproduce:
1. Open user-submitted project (Empty_Project_removefile)
2. Build the project
3. Close the project and delete the ClassToBeRemoved.cs and its meta file from Assets/TestAsm folder
4. Build the project in batchmode with the following arguments: -batchmode -quit -executeMethod BuildScript.BuildFromCommandLine
5. Once the build completes successfully check the Editor.log
Expected result: no errors are logged
Actual result: error CS2001: Source file `Assets/TestAsm/ClassToBeRemoved.cs' could not be found is logged
Reproducible with: 2018.3.0a6, 2018.4.10f1, 2019.2.8f1, 2019.3.0b5, 2020.1.0a7
Not reproducible with: 2017.4.32f1, 2018.3.0a5
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
- Out-of-bounds memory access with multiple CanvasRenderers under a Canvas when using Mesh API
- Inspector tries to access file after it was deleted when the file was locked in Inspector window
- Changing Transform values in Search window Inspector loses focus while dragging and stopping mouse without releasing dragging action
- Saving changes on the dirty VFX Graph during the Play mode throws "The referenced script (Unknown) on this Behaviour is missing!" warnings
- VFX Graph Debug Info overlaps the "Initialize" block debug info by default
Resolution Note:
The only part that fails is the initial compile attempt. Later in the log, but before it calls into the user code, the asset database refreshes the assets and detects the deleted file, triggers a recompile which does succeed. Then continues on to build successfully. The log shows the recompile with the following lines:
Refresh: trashing asset cf3ece5c714b9b943a973f5cd27039e5
- Starting compile Library/ScriptAssemblies/TestAsm.dll
- Finished compile Library/ScriptAssemblies/TestAsm.dll