godot-cpp icon indicating copy to clipboard operation
godot-cpp copied to clipboard

Why a `[native_extensions]` field in the `test/project/project.godot` ?

Open touilleMan opened this issue 2 months ago • 1 comments

Godot version

n/a

godot-cpp version

n/a

System information

n/a

Issue description

The project.godot in the tests contains a [native_extensions] entry:

https://github.com/godotengine/godot-cpp/blob/5910c0e8a2a1ab236016ccfb6983bf018470c4f3/test/project/project.godot#L18-L20

However, as far as I know, this entry has no use:

  • searching for native_extensions in Godot and Godot-CPP source code doesn't return anything
  • no other projects that I know of use this entry
  • obviously not providing this entry doesn't prevent the extension from being loaded and used by Godot ;-)

So I think this entry should be removed, as it is misleading (especially since it is totally undocumented and Godot-CPP is most likely regarded as providing "the right way"® of doing thing regarding GDExtension usage)

Steps to reproduce

n/a

Minimal reproduction project

n/a

touilleMan avatar Oct 06 '25 08:10 touilleMan

I agree with your assessment that [native_extensions] isn't needed. I don't know why it's there - it's probably left over from some historical change, although, I'm not personally aware of that history.

A PR to remove it would be welcome! :-)

dsnopek avatar Oct 06 '25 17:10 dsnopek