Skip to content

CustomAction with Void Output - Editor crash with couldn't create file... #9

@mgmhunt

Description

@mgmhunt
  1. Creating custom action
  2. Add an output with Void Output (try to create Action output).
  3. Get following error... editor crashes due to compile error.

(other output types seem to work)

NullReferenceException: Object reference not set to an instance of an object GenericTypedChildItem.get_RelatedTypeName () (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Graphs/Data/GenericTypedChildItem.cs:61) Invert.uFrame.ECS.Templates.CustomActionDesignerTemplate.TemplateSetup () (at Assets/uFrame/Plugins/Editor/uFrame.ECS.Templates/TemplateConfigs.cs:1185) Invert.Core.GraphDesigner.TemplateClassGenerator2[Invert.uFrame.ECS.CustomActionNode,Invert.uFrame.ECS.Templates.CustomActionDesignerTemplate].ProcessTemplate () (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Compiling/CodeGen/CodeTemplates/impl/TemplateClassGenerator.cs:257)
Invert.Core.GraphDesigner.TemplateClassGenerator2[Invert.uFrame.ECS.CustomActionNode,Invert.uFrame.ECS.Templates.CustomActionDesignerTemplate].Initialize (Invert.Core.GraphDesigner.CodeFileGenerator codeFileGenerator) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Compiling/CodeGen/CodeTemplates/impl/TemplateClassGenerator.cs:215) Invert.Core.GraphDesigner.CodeFileGenerator.CreateOutput () (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Compiling/CodeGen/CodeTemplates/impl/CodeFileGenerator.cs:44) Invert.Core.GraphDesigner.FileGeneratorBase.ToString () (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Compiling/CodeGen/CodeTemplates/impl/FileGeneratorBase.cs:12) Invert.Core.GraphDesigner.CompilingSystem.GenerateFile (System.IO.FileInfo fileInfo, Invert.Core.GraphDesigner.CodeFileGenerator codeFileGenerator) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/CompilingSystem.cs:252) UnityEngine.Debug:LogException(Exception) Invert.Core.GraphDesigner.Unity.UnityPlatform:LogException(Exception) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Unity/UnityPlatform.cs:77) Invert.Core.InvertApplication:LogException(Exception) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Core/InvertApplication.cs:532) Invert.Core.GraphDesigner.CompilingSystem:GenerateFile(FileInfo, CodeFileGenerator) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/CompilingSystem.cs:256) Invert.Core.GraphDesigner.<Generate>c__Iterator87:MoveNext() (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/CompilingSystem.cs:220) Invert.Core.GraphDesigner.Unity.TaskSystem:Update() (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Unity/TaskSystem.cs:21) Invert.Core.GraphDesigner.Unity.ElementsDesigner:<Update>m__303(IUpdate) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Unity/ElementsDesigner.cs:70) Invert.Core.EventManager1:Signal(Action1) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Core/EventManager.cs:30) Invert.Core.InvertApplication:SignalEvent(Action1) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Core/InvertApplication.cs:376)
Invert.Core.GraphDesigner.Unity.ElementsDesigner:Update() (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Unity/ElementsDesigner.cs:70)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Coudln't create file /Assets/uFrameCode/CustomActions/IsUnityEditor.designer.cs
UnityEngine.Debug:Log(Object)
Invert.Core.GraphDesigner.Unity.UnityPlatform:Log(String) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Unity/UnityPlatform.cs:72)
Invert.Core.InvertApplication:Log(String) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Core/InvertApplication.cs:448)
Invert.Core.GraphDesigner.CompilingSystem:GenerateFile(FileInfo, CodeFileGenerator) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/CompilingSystem.cs:257)
Invert.Core.GraphDesigner.c__Iterator87:MoveNext() (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/CompilingSystem.cs:220)
Invert.Core.GraphDesigner.Unity.TaskSystem:Update() (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Unity/TaskSystem.cs:21)
Invert.Core.GraphDesigner.Unity.ElementsDesigner:m__303(IUpdate) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Unity/ElementsDesigner.cs:70)
Invert.Core.EventManager1:Signal(Action1) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Core/EventManager.cs:30)
Invert.Core.InvertApplication:SignalEvent(Action1) (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Core/InvertApplication.cs:376) Invert.Core.GraphDesigner.Unity.ElementsDesigner:Update() (at Assets/uFrame/Plugins/Editor/uFrame.Editor/Systems/Unity/ElementsDesigner.cs:70) UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions