
BUG: Fuzzy finder in Unit Option Wizard when I try to insert a new type
I try to insert a new type ( from InControl Plugin) and when I open the menu Unit Option Wizard and try to add (+) a new Type in TAB Types, imediately I receive this error in Console and nothing happens:
ArgumentException: The type 'System.Void' may not be used as a type argument.
System.RuntimeType.ThrowIfTypeNeverValidGenericArgument (System.RuntimeType type) (at /Users/builduser/buildslave/mono/build/mcs/class/referencesource/mscorlib/system/rttype.cs:2213)
System.RuntimeType.SanityCheckGenericArguments (System.RuntimeType[] genericArguments, System.RuntimeType[] genericParamters) (at /Users/builduser/buildslave/mono/build/mcs/class/referencesource/mscorlib/system/rttype.cs:2229)
System.RuntimeType.MakeGenericType (System.Type[] instantiation) (at /Users/builduser/buildslave/mono/build/mcs/class/referencesource/mscorlib/system/rttype.cs:4268)
Ludiq.TypeOptionTree+<>c.<Prewarm>b__12_1 (System.Type t) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Reflection/TypeOptionTree.cs:57)
System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () (at <343a9087da3d49afa2e34d0d54bcb75a>:0)
System.Linq.Enumerable+<ConcatIterator>c__IteratorE`1[TSource].MoveNext () (at <343a9087da3d49afa2e34d0d54bcb75a>:0)
System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () (at <343a9087da3d49afa2e34d0d54bcb75a>:0)
System.Collections.Generic.HashSet`1[T].UnionWith (System.Collections.Generic.IEnumerable`1[T] other) (at <343a9087da3d49afa2e34d0d54bcb75a>:0)
System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection, System.Collections.Generic.IEqualityComparer`1[T] comparer) (at <343a9087da3d49afa2e34d0d54bcb75a>:0)
System.Collections.Generic.HashSet`1[T]..ctor (System.Collections.Generic.IEnumerable`1[T] collection) (at <343a9087da3d49afa2e34d0d54bcb75a>:0)
Ludiq.LinqUtility.ToHashSet[T] (System.Collections.Generic.IEnumerable`1[T] enumerable) (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Utilities/LinqUtility.cs:38)
Ludiq.TypeOptionTree.Prewarm () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Reflection/TypeOptionTree.cs:57)
Ludiq.FuzzyWindow+<>c__DisplayClass31_0.<Initialize>b__0 () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:326)
Ludiq.FuzzyWindow.Work () (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:217)
UnityEngine.Debug:LogException(Exception)
Ludiq.FuzzyWindow:Work() (at C:/Users/Lazlo/Projects/Ludiq/Ludiq.Core/Editor/Interface/Fuzzy/FuzzyWindow.cs:222)
System.Threading.ThreadHelper:ThreadStart()
Customer support service by UserEcho
Hi Pr. Anderson Valerio, welcome to the community!
It seems like InControl is using unsafe pointers in its method signatures and Bolt is having trouble converting those. I'll look into it so that it properly skips these methods but keeps the usable ones.
Thank you. To solve that problem, I create a empyt project, copy my assets to there, import again Bolt, Incontrol, etc and works fine!
Very odd, it seems you had void in your types somehow. Adding safety checks to make sure that doesn't happen.
Ok !!!
I take the same problem again, when I changed the .Net from 3.5 to 4.6 ! When restart I take the same erro message. I back to 3.5 again and work normal!
Great!!! I'm very happy to use Bolt, it's a great tool !!!