-
-
Notifications
You must be signed in to change notification settings - Fork 22k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extension_list.cfg in .godot folder is deleted when opening a project #97900
Comments
Further testing shows that commenting out the line EDIT: Testing again, it stops the deleting/regenerating behaviour from happening, but throws an error and fails to load the GDExtension:
|
Tested again with a randomly picked GDExtension from the AssetLib (Lua GDExtension) and can reproduce consistently as described in the original comment, also producing the exact same errors and warning. |
Could it be related to #97532, where it might mistakenly mark an extension as removed (and then deleting the line from extension_list.cfg)? That's the only PR from the changelog for 4.4-dev3 that I can make sense of would lead to the behaviour described in the issue. |
I also have the same problem for my project on It however seems unrelated to #97532 -> I compiled the engine on commit f4af820 only reverting the changes in the |
Ok, I debugged the editor loading and identified the issue. I am not certain why the alternating pattern exists, however this regression was caused by #95678 , specifically an optimization exiting early when the loaded file is not a script file (see here and expand So either this optimization needs to be reverted, or before that check, there would need to be an explicit check for If you tell me how exactly you would want to solve it, I would also be up for doing a PR for it. |
My opinion is without merit as I have never directly opened a PR for godot before but it seems like an explicit check is what would be best, as it would keep the optimizations from the PR but fix the GDExtension issue? |
@NetroScript I just created a PR based on your modifications with some optimizations to reload the file extensions list and some code reorganizing. Also, I added you as CoAuthor! |
Tested versions
System information
Godot v4.4.dev3 - macOS 14.5.0 - Multi-window, 1 monitor - Metal (Forward+) - integrated Apple M1 (Apple7) - Apple M1 (8 threads)
Issue description
When opening a project that has a GDExtension addon, the extension_list.cfg file in the .godot folder is deleted.
If running the project, it will throw errors if the addon is referenced in a script. The deletion of the extension_list.cfg file only happens every other time the project is opened. If the project is closed and opened again, the extension_list.cfg file is generated, and the addon works as expected. If the project is closed, and then opened again, the extension_list.cfg file is once again deleted. This can be consistently reproduced, where every even session recreates the config file and every odd session deletes it.
When opening the project in a session that deletes the extension_list.cfg file, it also throws the following errors and warning when the editor is opened:
Steps to reproduce
Minimal reproduction project (MRP)
extension-list-config-file.zip
The text was updated successfully, but these errors were encountered: