Search Issue Tracker
Won't Fix
Votes
6
Found in
2017.2.4f1
Issue ID
1108524
Regression
No
[General] Unclear error messages and script component issues when importing a project from Unity 2017.2
To reproduce:
1. Import user's attached project to any release 2017.4-2019.1
Expected: comprehensible error message appears, script components are not affected in any way
Actual: "InvalidOperationException" error appears, script component is shown as either "Nothing selected" or "(Script)"
Reproduced in: 2017.4,17f1. 2018.2.20f1, 2018.3.1f1, 2019.1.0a12
Note1: 2019.1 has more severe outcome. On defocusing and refocusing editor, a new behavior is introduced: clicking anywhere on editor forces recompilation to start and fail after short period of time. This makes editor unusable and impossible to quit by simple means.
Note2: script names are correct in 2018.3 and 20019.1
Note3: full console error:
InvalidOperationException: Sequence contains no matching element
System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <389a581424f249b6bfedc5bb6d85fb6d>:0)
UnityEditor.Scripting.ScriptCompilation.EditorCompilation.CompileScripts (UnityEditor.Scripting.ScriptCompilation.EditorScriptCompilationOptions options, UnityEditor.BuildTargetGroup platformGroup, UnityEditor.BuildTarget platform) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilation.cs:632)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface+<CompileScripts>c__AnonStorey2.<>m__0 () (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:177)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface.EmitExceptionAsError[T] (System.Func`1[TResult] func, T returnValue) (at C:/buildslave/unity/build/Editor/Mono/Scripting/ScriptCompilation/EditorCompilationInterface.cs:75)
UnityEditor.Scripting.ScriptCompilation.EditorCompilationInterface:CompileScripts(EditorScriptCompilationOptions, BuildTargetGroup, BuildTarget)
On 2019.1 there's also error:
Microsoft (R) Visual C# Compiler version 2.9.1.65535 (9d34608e)Copyright (C) Microsoft Corporation. All rights reserved.
Comments (13)
-
clj1973
Jan 18, 2019 01:27
I have the same issue after importing into 2018.3.2.f1
-
carlos_m_orozco
Jan 13, 2019 22:22
i have the same issue
-
carlos_m_orozco
Jan 13, 2019 22:22
i have the same issue
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
- Required SpriteMask class (ID 331) is stripped when "Strip Engine Code" is enabled
- “Maximized serialized file backup not found” error is thrown when minimizing a window in a newly opened project
- Build stack trace contains invalid lines when building with IL2CPP using scripts with delegates containing generic types in the signature
- Entities Systems window has a “Show Full Player Loop” dropdown which does nothing when clicked after enabling “Show Full Player Loop”
- Entities Hierarchy Search “Show/Hide” button’s Lens Icon is blurry when the Editor is on an external monitor
Resolution Note (2019.3.X):
It was found that "DevXUnityObfuscatorProU523" tool is changing things up in Unity's compilation pipeline internal code through reflection. Since this tool is modifying Unity internal code that shouldn't be modified, we will won't fix this issue.