0
Fixed (Unreleased)

2a Code generation failure when re-using same macro multiple times

Lazlo Bonin (Lead Developer) 1 year ago updated 1 year ago 2
ArgumentException: An item with the same key has already been added. Key: MyRigidbody
System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) (at <437ba245d8404784b9fbab9b439ac908>:0)
Ludiq.Bolt.CompositeGeneration`1[TDeclaration].AliasMember (System.Object alias, Ludiq.Bolt.IMemberGeneration member) (at Assets/Ludiq/Bolt.Core/Editor/Generation/Generations/CompositeGeneration.cs:157)
Ludiq.Bolt.FieldGeneration.Alias (System.Object alias) (at Assets/Ludiq/Bolt.Core/Editor/Generation/Generations/FieldGeneration.cs:23)
Ludiq.Bolt.FlowGraphVariableGenerator.Declare (Ludiq.Bolt.ClassGeneration class) (at Assets/Ludiq/Bolt.Flow/Editor/Generation/FlowGraphVariableGenerator.cs:25)
Ludiq.Bolt.FlowGraphGenerator`1[TFlowGraph].DeclareGraphMembers (Ludiq.Bolt.ClassGeneration class) (at Assets/Ludiq/Bolt.Flow/Editor/Generation/FlowGraphGenerator.cs:41)
Ludiq.Bolt.FlowMacroGenerator.DeclareGraphMembers (Ludiq.Bolt.ClassGeneration class, Ludiq.Bolt.FlowMacroUnit macroUnit) (at Assets/Ludiq/Bolt.Flow/Editor/Generation/FlowMacroGenerator.cs:18)
Ludiq.Bolt.FlowMacroUnitGenerator.DeclareMembers (Ludiq.Bolt.ClassGeneration class) (at Assets/Ludiq/Bolt.Flow/Editor/Units/BTS/FlowMacroUnitGenerator.cs:24)
Ludiq.Bolt.FlowGraphGenerator`1[TFlowGraph].DeclareGraphMembers (Ludiq.Bolt.ClassGeneration class) (at Assets/Ludiq/Bolt.Flow/Editor/Generation/FlowGraphGenerator.cs:47)
Ludiq.Bolt.FlowBehaviourGenerator.Declare (Ludiq.Bolt.ClassGeneration class) (at Assets/Ludiq/Bolt.Flow/Editor/Generation/FlowBehaviourGenerator.cs:40)
Ludiq.Bolt.BoltClassGenerator.Declare (Ludiq.Bolt.DocumentGeneration document, Ludiq.CodeDom.CodeTypeReference reference) (at Assets/Ludiq/Bolt.Core/Editor/Generation/Generators/BoltClassGenerator.cs:65)
Ludiq.Bolt.BoltTypeGenerator`2[TType,TGeneration].Ludiq.Bolt.IRootTypeGenerator.Declare (Ludiq.Bolt.DocumentGeneration document, Ludiq.CodeDom.CodeTypeReference reference) (at Assets/Ludiq/Bolt.Core/Editor/Generation/Generators/BoltTypeGenerator.cs:46)
Ludiq.Bolt.RootGeneration.DeclareType (Ludiq.Bolt.BoltType type) (at Assets/Ludiq/Bolt.Core/Editor/Generation/Generations/RootGeneration.cs:59)
Ludiq.Bolt.RootGeneration.Type (Ludiq.Bolt.BoltType type) (at Assets/Ludiq/Bolt.Core/Editor/Generation/Generations/RootGeneration.cs:70)
Ludiq.Bolt.CodePreviewWindow.Generate () (at Assets/Ludiq/Bolt.Core/Editor/Generation/CodePreviewWindow.cs:441)
UnityEngine.Debug:LogException(Exception)
Ludiq.Bolt.CodePreviewWindow:OnFailureGUI() (at Assets/Ludiq/Bolt.Core/Editor/Generation/CodePreviewWindow.cs:409)
Ludiq.Bolt.CodePreviewWindow:_OnGUI() (at Assets/Ludiq/Bolt.Core/Editor/Generation/CodePreviewWindow.cs:304)
Ludiq.LudiqEditorWindow:OnGUI() (at Assets/Ludiq/Ludiq.Core/Editor/Windows/LudiqEditorWindow.cs:140)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr) (at /Users/builduser/buildslave/unity/build/Modules/IMGUI/GUIUtility.cs:187)
Bolt Version:
2a
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
Bolt 2