Godot4.4-dev5: Breaks my mock implementation, get_method_list
provides invalid method info for get_primary_rotation_axis
#99531
Labels
Milestone
Tested versions
v4.4.dev5.mono.official [9e60984]
System information
All
Issue description
I'm providing a mocking util for testing in my plugin GdUnit4 and the test are broken now.
![Image](https://private-user-images.githubusercontent.com/347037/388889012-f3851dd3-d676-44aa-bb83-4e973318df95.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk3NDY2NjgsIm5iZiI6MTczOTc0NjM2OCwicGF0aCI6Ii8zNDcwMzcvMzg4ODg5MDEyLWYzODUxZGQzLWQ2NzYtNDRhYS1iYjgzLTRlOTczMzE4ZGY5NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNlQyMjUyNDhaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1jYzEyY2NiNzBiNjJiYzhmOTJhZDcxYjYxZjZmYjI4MmM0ODNkYjlhOWQyMGE5NTNlMzhhZjQ2NDlmYWJjN2I0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Nji5xyj1DEbrndbNKbreHxsH4_-oe1duvoU2uvsc9gc)
My tests try to mock all Godot classes, and it fails now on
LookAtModifier3D#get_primary_rotation_axis
The method is documented as
But the
Vector3
has no enumAxis
defined.Steps to reproduce
Run the script to check the provided method info.
The output is:
I use the provided method info to build the mocking class, and it will not be compiling about missing enum
Vector3.Axis
e.g. use a valid script code will show the compile error
var axis_typed :Vector3.Axis = modifier.get_primary_rotation_axis()
Parse Error: Built-in types don't contain nested types.
Same issues for all classes inherits from
SpriteBase3D
Minimal reproduction project (MRP)
n/a
The text was updated successfully, but these errors were encountered: