Generic ActionTask not in a namespace generates AOTClasses with syntax errors

NodeCanvas Forums Support Generic ActionTask not in a namespace generates AOTClasses with syntax errors

Tagged: 

This topic contains 2 replies, has 2 voices, and was last updated by  timv 3 hours, 4 minutes ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13783

    timv
    Participant

    When I generate AOTClasses.cs it contains these lines with syntax errors (notice the .):

    		class _RemoveElementFromListByIndex_System_Boolean : .RemoveElementFromListByIndex<System.Boolean>{}
    		class _RemoveElementFromListByIndex_System_Single : .RemoveElementFromListByIndex<System.Single>{}
    		class _RemoveElementFromListByIndex_System_Int32 : .RemoveElementFromListByIndex<System.Int32>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Vector2 : .RemoveElementFromListByIndex<UnityEngine.Vector2>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Vector3 : .RemoveElementFromListByIndex<UnityEngine.Vector3>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Vector4 : .RemoveElementFromListByIndex<UnityEngine.Vector4>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Quaternion : .RemoveElementFromListByIndex<UnityEngine.Quaternion>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Keyframe : .RemoveElementFromListByIndex<UnityEngine.Keyframe>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Bounds : .RemoveElementFromListByIndex<UnityEngine.Bounds>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Color : .RemoveElementFromListByIndex<UnityEngine.Color>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Rect : .RemoveElementFromListByIndex<UnityEngine.Rect>{}
    		class _RemoveElementFromListByIndex_UnityEngine_ContactPoint : .RemoveElementFromListByIndex<UnityEngine.ContactPoint>{}
    		class _RemoveElementFromListByIndex_UnityEngine_ContactPoint2D : .RemoveElementFromListByIndex<UnityEngine.ContactPoint2D>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Collision : .RemoveElementFromListByIndex<UnityEngine.Collision>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Collision2D : .RemoveElementFromListByIndex<UnityEngine.Collision2D>{}
    		class _RemoveElementFromListByIndex_UnityEngine_RaycastHit : .RemoveElementFromListByIndex<UnityEngine.RaycastHit>{}
    		class _RemoveElementFromListByIndex_UnityEngine_RaycastHit2D : .RemoveElementFromListByIndex<UnityEngine.RaycastHit2D>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Ray : .RemoveElementFromListByIndex<UnityEngine.Ray>{}
    		class _RemoveElementFromListByIndex_UnityEngine_Space : .RemoveElementFromListByIndex<UnityEngine.Space>{}
    		class _RemoveElementFromListByIndex_System_DateTime : .RemoveElementFromListByIndex<System.DateTime>{}
    		class _RemoveElementFromListByIndex_UnityEngine_LayerMask : .RemoveElementFromListByIndex<UnityEngine.LayerMask>{}

    RemoveElementFromListByIndex is not in any namespace.

    #13798

    Gavalakis
    Keymaster

    Thanks for the bug report. To fix this quickly, you can open up ReflectionTools.cs and replace line #317 (within FriendlyName method) with this:

    
    s = compileSafe && !string.IsNullOrEmpty(t.Namespace)? t.Namespace + "." + t.Name : t.Name;
    

    Let me know if you can’t find the correct line.
    Thank you.

    #13802

    timv
    Participant

    Thanks, I’ll try it out.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.