HxGodot / hxgodot

A Haxe GDExtension for Godot 4
MIT License
232 stars 11 forks source link

Can't export functions that have 'PackedStringArray' or 'PackedByteArray' parameters #22

Closed ElCosmoXD closed 1 year ago

ElCosmoXD commented 1 year ago

Hello, I'm trying to connect my node to the request_completed signal of an HTTPRequest node, the function in which I'm connecting the signal is like this:

@:export
function httpQueryCompleted(res: Int, response_code: Int, headers: PackedStringArray, body: PackedByteArray) { }

but when I try to compile it, it throws the following errors:

./src/example/HxExample.cpp(2244): error C2039: 'PackedByteArray_obj': is not a member of 'godot'
\bin\include\godot/variant/__Variant.h(13): note: see declaration of 'godot'
./src/example/HxExample.cpp(2244): error C3083: 'PackedByteArray_obj': the symbol to the left of a '::' must be a type
./src/example/HxExample.cpp(2244): error C2039: '___binding_callbacks': is not a member of 'godot'
\bin\include\godot/variant/__Variant.h(13): note: see declaration of 'godot'
./src/example/HxExample.cpp(2251): error C2039: 'PackedStringArray_obj': is not a member of 'godot'
bin\include\godot/variant/__Variant.h(13): note: see declaration of 'godot'
./src/example/HxExample.cpp(2251): error C3083: 'PackedStringArray_obj': the symbol to the left of a '::' must be a type
./src/example/HxExample.cpp(2251): error C2039: '___binding_callbacks': is not a member of 'godot'
\bin\include\godot/variant/__Variant.h(13): note: see declaration of 'godot'
./src/example/HxExample.cpp(2458): error C2039: 'PackedByteArray_obj': is not a member of 'godot'
\bin\include\godot/variant/__Variant.h(13): note: see declaration of 'godot'
./src/example/HxExample.cpp(2458): error C3083: 'PackedByteArray_obj': the symbol to the left of a '::' must be a type
./src/example/HxExample.cpp(2458): error C2039: '___binding_callbacks': is not a member of 'godot'
\bin\include\godot/variant/__Variant.h(13): note: see declaration of 'godot'
./src/example/HxExample.cpp(2465): error C2039: 'PackedStringArray_obj': is not a member of 'godot'
\bin\include\godot/variant/__Variant.h(13): note: see declaration of 'godot'
./src/example/HxExample.cpp(2465): error C3083: 'PackedStringArray_obj': the symbol to the left of a '::' must be a type
./src/example/HxExample.cpp(2465): error C2039: '___binding_callbacks': is not a member of 'godot'
\bin\include\godot/variant/__Variant.h(13): note: see declaration of 'godot'
dazKind commented 1 year ago

Yes, we currently don't allow the generation of the types since they are not tested, yet.