@Geeorge , I’m still seeing anomalies. There were a number of errors when I imported BindingSystem into the project. I didn’t capture those.
Unity 2023.3.18f1 on macOS 14.2.1 (Apple Silicon/M2 Pro).
This error is re-appearing when the scripts recompile:
NullReferenceException: Object reference not set to an instance of an object
Postica.BindingSystem.Serialization.BindDatabase.IsValidScriptableObjectType (System.Type t) (at <e550877f6be34210ae5744868d0448d7>:0)
Postica.BindingSystem.Serialization.BindDatabase+<>c.<GetAllScriptedTypes>b__38_0 (System.Type t) (at <e550877f6be34210ae5744868d0448d7>:0)
System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
System.Linq.Enumerable+ConcatIterator`1[TSource].MoveNext () (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value) (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
Postica.BindingSystem.Serialization.BindDatabase.GetAllScriptedTypes () (at <e550877f6be34210ae5744868d0448d7>:0)
Postica.BindingSystem.Serialization.BindDatabase.BuildDatabase () (at <e550877f6be34210ae5744868d0448d7>:0)
Postica.BindingSystem.Serialization.BindDatabase.RebuildTree () (at <e550877f6be34210ae5744868d0448d7>:0)
Postica.BindingSystem.Serialization.BindDatabase.get_Database () (at <e550877f6be34210ae5744868d0448d7>:0)
Postica.BindingSystem.Serialization.Reserializer.OnPostprocessAllAssets (System.String[] importedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromAssetPaths, System.Boolean didDomainReload) (at <e550877f6be34210ae5744868d0448d7>:0)
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <fd2d3e9b010a4ba4b3fdc0456cd6b40b>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.RuntimeMethodInfo.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <fd2d3e9b010a4ba4b3fdc0456cd6b40b>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <fd2d3e9b010a4ba4b3fdc0456cd6b40b>:0)
UnityEditor.AssetPostprocessingInternal.InvokeMethod (System.Reflection.MethodInfo method, System.Object[] args) (at /Users/bokken/build/output/unity/unity/Editor/Mono/AssetPostprocessor.cs:1168)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets, System.Boolean didDomainReload) (at /Users/bokken/build/output/unity/unity/Editor/Mono/AssetPostprocessor.cs:395)
UnityEditor.AssetPostprocessingInternal:PostprocessAllAssets(String[], String[], String[], String[], String[], Boolean) (at /Users/bokken/build/output/unity/unity/Editor/Mono/AssetPostprocessor.cs:408)
Also:
Exception thrown while invoking [DidReloadScripts] method 'Postica.BindingSystem.Serialization.BindDatabase:RebuildTree ()' : NullReferenceException: Object reference not set to an instance of an object
Postica.BindingSystem.Serialization.BindDatabase.IsValidScriptableObjectType (System.Type t) (at <e550877f6be34210ae5744868d0448d7>:0)
Postica.BindingSystem.Serialization.BindDatabase+<>c.<GetAllScriptedTypes>b__38_0 (System.Type t) (at <e550877f6be34210ae5744868d0448d7>:0)
System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
System.Linq.Enumerable+ConcatIterator`1[TSource].MoveNext () (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
System.Linq.Enumerable+SelectEnumerableIterator`2[TSource,TResult].MoveNext () (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
System.Linq.Enumerable.Contains[TSource] (System.Collections.Generic.IEnumerable`1[T] source, TSource value) (at <2bcf4fe59a1e4290a8c851a306d34b0f>:0)
Postica.BindingSystem.Serialization.BindDatabase.GetAllScriptedTypes () (at <e550877f6be34210ae5744868d0448d7>:0)
Postica.BindingSystem.Serialization.BindDatabase.BuildDatabase () (at <e550877f6be34210ae5744868d0448d7>:0)
Postica.BindingSystem.Serialization.BindDatabase.RebuildTree () (at <e550877f6be34210ae5744868d0448d7>:0)