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
- Bunch of "TargetParameterCountException" errors thrown in the Editor Console when opening the "Adaptive Probe Volumes" tab in the "Lighting" window
- Non-removable serialized data for a renderer feature still appears even when the renderer feature is deleted
- URP Cascaded Shadows do not have a falloff in Player when the Player is built not in Development Mode
- Grid in animation preview window is rendered on top of the object
- WebGPU Graphics.RenderPrimitives fails on MeshTopology.Quads with Validation errors when exceeding 64k vertices
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