get error after add new type

FlowCanvas Forums Support get error after add new type

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1598
    wang37921
    Participant

    hi,
    i add https://github.com/lbv/litjson/releases/download/v0.9.0/LitJson.dll to assets/plugin
    then, add litjson namespace into flowcanvas new type.
    then right click on the flowscript canvas, no menu popup anymore. and get a error stack:

    AmbiguousMatchException: Ambiguous matching in method resolution
    System.Reflection.Binder+Default.SelectProperty (BindingFlags bindingAttr, System.Reflection.PropertyInfo[] match, System.Type returnType, System.Type[] indexes, System.Reflection.ParameterModifier[] modifiers) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/Binder.cs:573)
    System.MonoType.GetPropertyImpl (System.String name, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Type returnType, System.Type[] types, System.Reflection.ParameterModifier[] modifiers) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoType.cs:313)
    System.Type.GetProperty (System.String name, BindingFlags bindingAttr) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Type.cs:890)
    ParadoxNotion.ReflectionTools.RTGetProperty (System.Type type, System.String name) (at Assets/ParadoxNotion/FlowCanvas/Framework/_Commons/Runtime/Other/ReflectionTools.cs:570)
    ParadoxNotion.ReflectionTools.GetAccessorProperty (System.Reflection.MethodInfo method) (at Assets/ParadoxNotion/FlowCanvas/Framework/_Commons/Runtime/Other/ReflectionTools.cs:953)
    ParadoxNotion.ReflectionTools.IsObsolete (System.Reflection.MemberInfo member, Boolean inherited) (at Assets/ParadoxNotion/FlowCanvas/Framework/_Commons/Runtime/Other/ReflectionTools.cs:852)
    FlowCanvas.FlowGraphExtensions.AppendTypeReflectionNodesMenu (FlowCanvas.FlowGraph graph, UnityEditor.GenericMenu menu, System.Type type, System.String baseCategory, Vector2 pos, FlowCanvas.Port sourcePort, System.Object dropInstance) (at Assets/ParadoxNotion/FlowCanvas/Module/Design/FlowGraphExtensions.cs:459)
    FlowCanvas.FlowGraphExtensions.AppendAllReflectionNodesMenu (FlowCanvas.FlowGraph graph, UnityEditor.GenericMenu menu, System.String baseCategory, Vector2 pos, FlowCanvas.Port sourcePort, System.Object dropInstance) (at Assets/ParadoxNotion/FlowCanvas/Module/Design/FlowGraphExtensions.cs:367)
    FlowCanvas.FlowGraph.OnCanvasContextMenu (UnityEditor.GenericMenu menu, Vector2 mousePos) (at Assets/ParadoxNotion/FlowCanvas/Module/FlowGraph.cs:174)
    NodeCanvas.Framework.Graph.GetAddNodeMenu (Vector2 canvasMousePos) (at Assets/ParadoxNotion/FlowCanvas/Framework/Design/PartialEditor/EDITOR_Graph.cs:460)
    NodeCanvas.Framework.Graph.HandleEvents (UnityEngine.Event e, Vector2 canvasMousePos) (at Assets/ParadoxNotion/FlowCanvas/Framework/Design/PartialEditor/EDITOR_Graph.cs:430)
    NodeCanvas.Framework.Graph.ShowGraphControls (UnityEngine.Event e, Vector2 canvasMousePos) (at Assets/ParadoxNotion/FlowCanvas/Framework/Design/PartialEditor/EDITOR_Graph.cs:144)
    NodeCanvas.Editor.GraphEditor.OnGUI () (at Assets/ParadoxNotion/FlowCanvas/Framework/Design/Editor/Windows/GraphEditor.cs:518)
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
    Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
    System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
    System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
    UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:285)
    UnityEditor.HostView.Invoke (System.String methodName) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:278)
    UnityEditor.HostView.InvokeOnGUI (Rect onGUIPosition) (at C:/buildslave/unity/build/Editor/Mono/HostView.cs:245)

    #1603
    Gavalakis
    Keymaster

    Hello,

    Thanks for letting me know.
    I will try importing litjson and see what is going wrong, even though I already have some suspicions.
    By the way, you don’t have to add all the types that litjson comes with to work with litjson. I have’t yet used LitJson, but I presume that only adding the main static type of the library (the one that has the Serialize and Deseralize for example) will suffice to work with it instead of adding all the types that are included in the library.

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.