Search Issue Tracker
Not Reproducible
Votes
0
Found in
2019.1.0a10
Issue ID
1214278
Regression
No
Visual C# Compiler cannot find source files because it is looking at old file locations
To reproduce:
1. Open attached project.
2. Run test: Tests -> MoveFilesAround
3. Inspect console.
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)
Copyright (C) Microsoft Corporation. All rights reserved.
error CS2001: Source file 'C:\unity2\Tests\EditModeAndPlayModeTests\DirectoryMonitoring\Assets\gen\dir0\subdir0\Script_uEZKsjlVfPkSawq.cs' could not be found.
...
Refreshing fixes the issue for now.
But we plan to optimize refresh to not refresh non modified files, in that case, compilation error will not go away until I modify a script and force compilation that way.
This happens in a very specific scenario where refresh is called multiple times with some changes in between them. Test stops after last refresh, and then compilation fails
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
Add comment