Mutagen-Modding / Mutagen

A .NET library for analyzing, creating, and manipulating Bethesda mods
GNU General Public License v3.0
117 stars 32 forks source link

IItemGetter FormLink Autogenerated UI failure #504

Closed Noggog closed 7 months ago

Noggog commented 7 months ago
[SynthesisSettingName("The material ingot")]
public IFormLinkGetter<IItemGetter> Ingot { get; set; } = FormLinkGetter<IItemGetter>.Null;

Seems to cause an error in synthesis

System.ArgumentException: Error creating reflected settings: An exception was thrown while activating Mutagen.Bethesda.Synthesis.WPF.ReflectionSettingsVM.
   at Mutagen.Bethesda.Synthesis.WPF.ProvideReflectionSettingsBundle.<>c__DisplayClass4_1.<ExtractBundle>b__2(ReflectionSettingsConfig s, Int32 index) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis.WPF\VMs\ProvideReflectionSettingsBundle.cs:line 71
   at System.Linq.Enumerable.SelectIterator[TSource,TResult](IEnumerable`1 source, Func`3 selector)+MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.ToArray()
   at Mutagen.Bethesda.Synthesis.WPF.ProvideReflectionSettingsBundle.<>c__DisplayClass4_0.<ExtractBundle>b__1(Assembly assemb) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis.WPF\VMs\ProvideReflectionSettingsBundle.cs:line 52
   at Noggog.Utility.AssemblyLoading.ExecuteAndUnload[TRet](String assemblyPath, WeakReference& alcWeakRef, Func`2 getter, Func`1 loadContextGetter) in D:\a\CSharpExt\CSharpExt\Noggog.CSharpExt\Utility\AssemblyLoading.cs:line 59
   at Noggog.Utility.AssemblyLoading.ExecuteAndForceUnload[TRet](String assemblyPath, Func`2 getter, Func`1 loadContextGetter) in D:\a\CSharpExt\CSharpExt\Noggog.CSharpExt\Utility\AssemblyLoading.cs:line 74
   at Mutagen.Bethesda.Synthesis.WPF.ExtractInfoFromProject.ExecuteAndUnload[TRet](String exec, Func`2 getter) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis.WPF\ExtractInfoFromProject.cs:line 72
   at Mutagen.Bethesda.Synthesis.WPF.ExtractInfoFromProject.Extract[TRet](TargetProject targetProject, CancellationToken cancel, Func`2 getter) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis.WPF\ExtractInfoFromProject.cs:line 64
   at Mutagen.Bethesda.Synthesis.WPF.ProvideReflectionSettingsBundle.ExtractBundle(TargetProject targetProject, ReflectionSettingsConfig[] targets, IObservable`1 detectedLoadOrder, IObservable`1 linkCache, CancellationToken cancel) in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis.WPF\VMs\ProvideReflectionSettingsBundle.cs:line 47
   at Mutagen.Bethesda.Synthesis.WPF.AutogeneratedSettingsVm.<>c__DisplayClass13_0.<<-ctor>b__6>d.MoveNext() in D:\a\Synthesis\Synthesis\Mutagen.Bethesda.Synthesis.WPF\VMs\AutogeneratedSettingsVm.cs:line 52