You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an export is performed with a GDExtension that extension is listed in the extension_list.cfg file in res://.godot
Even if the files that go into that extension are excluded from export (such as would be done for the Git plugin (which is editor only)) this file causes the exported binary to look for that extension. It cannot be found and an error is output.
This has been reported against the godot-git-plugin, but the real issue is the way an export ignores the exclusion filters for the contents of the extension_list.cfg
Steps to reproduce
Create a project that includes a GD Extension that is for the editor only (such as the official Git plugin),
Export that project and exclude the plugin folder by doing Resources->Export Mode = "Export all resources in the project except resources checked below", and clicking "addons/godot-git-plugin" folder
Run the exported project and observe the error: "ERROR: Error loading GDExtension configuration file: res://addons/godot-git-plugin/git_plugin.gdextension"
Minimal reproduction project (MRP)
There are 2 cases
Where the only GDExtension is the add-on that is excluded
The implemented solution to the problem of the error message
appearing when an excluded GDExtension in an export of a project, is
to filter the lines in the extension_list.cfg file to only include
those that are in the paths actually included for export. If there
are no entries remaining, don't write the file at all.
Tested versions
Problem found on v4.3.stable.official [77dcf97]
This problem appears to have existed in earlier version as well
System information
Godot v4.3.stable - Ubuntu 24.04.1 LTS 24.04 - Wayland - Vulkan (Forward+) - integrated Intel(R) UHD Graphics 770 (ADL-S GT1) - 12th Gen Intel(R) Core(TM) i7-12700K (20 Threads)
Issue description
When an export is performed with a GDExtension that extension is listed in the extension_list.cfg file in res://.godot
Even if the files that go into that extension are excluded from export (such as would be done for the Git plugin (which is editor only)) this file causes the exported binary to look for that extension. It cannot be found and an error is output.
This has been reported against the godot-git-plugin, but the real issue is the way an export ignores the exclusion filters for the contents of the extension_list.cfg
Steps to reproduce
Minimal reproduction project (MRP)
There are 2 cases
one-extension.zip
gdextension_example_cpp.zip
The text was updated successfully, but these errors were encountered: