Search Issue Tracker
Fixed in 2017.2.0f3
Fixed in 5.6.X, 2017.1.X
Votes
0
Found in
5.6.1p1
Issue ID
921652
Regression
No
[Editor] Compilation error in the editor code after a failed platform specific compilation error
Steps to reproduce:
1. Open the attached project(CompilationError.zip)
2. Build for Windows Standalone (x64) -> There build should fail because of a compilation error in *NewBehaviourScript.cs*.
3. Open *NewBehaviourScript.cs* and remove the "using UnityEditor;", return to the Editor
4. You will get the following error:
Assets/Code/Imagine/Editor-Tools/Build.cs(3,7): error CS0246: The type or namespace name `FunHouse' could not be found. Are you missing an assembly reference?`.
Expected result: Unity should not throw the error
Actual result: After a build fails and a compilation error is fixed, the assemblies are not being updated (Unity keeps using the runtime Assembly-CSharp-firstpass.dll) and Editor scripts in the Plugins folder are not included in the assemblies
Workaround:
Reimport the assets or restart the Editor
Note:
Unable to test with 5.4/5.5 due the errors
Reproduced with: 5.6.1p1, 5.6.2f1, 2017.1.0b10, 2017.2.0a4
Fixed in: 2017.2.0b2
Backported to: 5.6.3p4, 2017.1.1p1
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- UnityLinker causes crash when outputting snapshot data for very large projects
- Camera Preview does not detect multiple cameras with same GameObject name
- Crash on TypeTreeIterator::Children() when renaming a corrupted asset while Asset Serialization is set to Mixed
- Cameras (Camera.targetDisplay) render only to Display 0 in the Player when Multi-Display setup is used and DX12 API is set
- [Vulkan] _CameraOpaqueTexture produces a feedback effect on Android Adreno devices when using Vulkan
Add comment