handzlikchris / FastScriptReload

Hot Reload implementation for Unity. Iterate on code insanely fast without breaking play session. Supports any editor. 1. Play 2. Make change 3. See results
https://immersivevrtools.com/projects/fast-script-reload
MIT License
1.53k stars 112 forks source link

InvalidOperationException: Sequence contains no matching element #128

Open auxtern opened 5 months ago

auxtern commented 5 months ago

I encountered the following error message:

InvalidOperationException: Sequence contains no matching element
System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) (at <3f2ee08277b24b2380a7e1ec14a64598>:0)
FastScriptReload.Runtime.AssemblyChangesLoaderResolver.Resolve () (at Assets/FastScriptReload/Scripts/Runtime/AssemblyChangesLoaderResolver.cs:23)
FastScriptReload.Editor.FastScriptReloadManager.Update () (at Assets/FastScriptReload/Scripts/Editor/FastScriptReloadManager.cs:424)
UnityEditor.EditorApplication.Internal_CallUpdateFunctions () (at <f93bd3edf91b4a63915fe4205912d7fa>:0)
handzlikchris commented 5 months ago

Hi, can you send a small reproducible example please.

SimBys commented 3 months ago

I had the same problem, couldn't reproduce in new project, but I fixed it by deleting the Library folder (Unity rebuilds it next time you open the project).