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
{{ message }}
Repository navigation
Godot Git Plugin (4.1+) .gdextension not recognized #267
Same issue. Including some additional output in case it helps with anyone searching for this:
Godot Engine v4.3.stable.mono.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started on port 6006 ---
--- GDScript language server started on port 6005 ---
Cannot get class 'GitPlugin'.
Received a nullptr VCS extension instance during construction.
Hi, I modified addons/godo-git-plugin/plugin.cfg with script="git_plugin.gdextension", and see this output:
Godot Engine v4.3.stable.mono.official (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors.
--- Debug adapter server started on port 6006 ---
--- GDScript language server started on port 6005 ---
Found a repository at C:/Users/myuser/Src/Godot Projects/test-project/.git/.
Selected repository path: C:/Users/myuser/Src/Godot Projects/test-project/.git/.
But when I select the Version Control panel, it is empty (screenshot below):
adding onto what was pointed out above (through doing the same thing of changing the script value in plugin.cfg to git_plugin.gdextension), for me instead of it showing version control or anything at all it just throws this into the console any time I try to turn on the plugin and does nothing else.
also as far as I can tell this bug has been there at least since v4.3 stable released cuz it has just thrown the same error that the op pointed out since then.
on version v4.3.stable.official [77dcf97d8]
I'm half sure this comment chain is going crazy...The .gdextension has always been and always will be.
The setup works perfectly fine (although I suppose the README could use an update). Here's the documentation for the intended behavior, which works fine on my machine.
Note: You may have to restart your editor to get the .gdextension working
I'm half sure this comment chain is going crazy...The .gdextension has always been and always will be. The setup works perfectly fine (although I suppose the README could use an update). Here's the documentation for the intended behavior, which works fine on my machine.
Note: You may have to restart your editor to get the .gdextension working
Ah. I've realized what the problem is.
This entire problem just happens when you try to enable the plugin via the plugins menu. It doesn't actually break at all it just throws the error the op brought up in the console cuz it's looking for a script that just never existed in the first place (and doesn't need to for the plugin to work).
Honestly I think from this a good addition would be to have a UI that shows up on install that just tells you not to try enabling it via the plugins menu (and better yet to just follow the setup instructions on the page you linked lol) cuz I completely forgot that was how it was meant to be set up from last time I used it lmao.
@cgmartin, to see anything in the Version Control panel, you must selet a commit from the commit list. You can find the commit list in the "Commit" tab, which is (by default) next to the Inspector/Node/History tabs:
However, if you want to be able to "fake"-enable the plugin without it throwing any errors, you can add this res://addons/godot-git-plugin/godot-git-plugin.gd:
@tool extends EditorPlugin
This prevents the error as there is now an (empty) plugin script to load; though it can be confusing if you try to "disable" the plugin that way, as the gdextension will be loaded nonetheless.
Everything is working, despite it looking like it isn't!
In the far right of your editor, you'll notice a new Commit (X) panel
That being said, there is some oddities with the way the plugin is configured. If script is required for addons, then it probably should come out of the box with an empty .gd script.
The plugin.cfg is pointing to a script that doesn't exist:
And I get the following errors:
ERROR: Attempt to open script 'res://addons/godot-git-plugin/godot-git-plugin.gd' resulted in error 'File not found'.
ERROR: Failed loading resource: res://addons/godot-git-plugin/godot-git-plugin.gd. Make sure resources have been imported by opening the project in the editor at least once.
If I attempt to use the git_plugin.gdextension it, naturally, fails:
ERROR: No loader found for resource: res://addons/godot-git-plugin/git_plugin.gdextension (expected type: Script)
Activity
IvanOfThings commentedon Jan 12, 2025
I have the same problem, same files structure but godot does not recognize the plugin
LexGear commentedon Jan 16, 2025
I just downloaded this addon and tried to enable it and got the same result on Godot 4.3.stable using version 3.1.1 of the addon. I am on Linux.
cgmartin commentedon Jan 16, 2025
Same issue. Including some additional output in case it helps with anyone searching for this:
SeanRamey commentedon Jan 21, 2025
Same issue here also.
Calinou commentedon Jan 21, 2025
Can you try modifying
addons/godot-git-plugin/plugin.cfgand replace this line:With this line:
There are no GDScript files within this repository, so I assume the GDExtension file is the new entry point.
cgmartin commentedon Jan 22, 2025
Hi, I modified
addons/godo-git-plugin/plugin.cfgwithscript="git_plugin.gdextension", and see this output:But when I select the Version Control panel, it is empty (screenshot below):
Trodgy commentedon Feb 16, 2025
adding onto what was pointed out above (through doing the same thing of changing the
scriptvalue inplugin.cfgtogit_plugin.gdextension), for me instead of it showing version control or anything at all it just throws this into the console any time I try to turn on the plugin and does nothing else.also as far as I can tell this bug has been there at least since v4.3 stable released cuz it has just thrown the same error that the op pointed out since then.
on version
v4.3.stable.official [77dcf97d8]kipwilliams commentedon Feb 18, 2025
I also see the same problem. And when I try and patch it lik @Trodgy has done, I see the exact same error
greenturtle537 commentedon Feb 22, 2025
I'm half sure this comment chain is going crazy...The .gdextension has always been and always will be.
The setup works perfectly fine (although I suppose the README could use an update). Here's the documentation for the intended behavior, which works fine on my machine.
Note: You may have to restart your editor to get the .gdextension working
https://github.com/godotengine/godot-git-plugin/wiki/Git-plugin-v3
@Trodgy @kipwilliams Let me know if this worked for you :)
Trodgy commentedon Feb 23, 2025
Ah. I've realized what the problem is.
This entire problem just happens when you try to enable the plugin via the plugins menu. It doesn't actually break at all it just throws the error the op brought up in the console cuz it's looking for a script that just never existed in the first place (and doesn't need to for the plugin to work).
Honestly I think from this a good addition would be to have a UI that shows up on install that just tells you not to try enabling it via the plugins menu (and better yet to just follow the setup instructions on the page you linked lol) cuz I completely forgot that was how it was meant to be set up from last time I used it lmao.
shoeffner commentedon Apr 12, 2025
Indeed, this is "purely cosmetic".
@cgmartin, to see anything in the Version Control panel, you must selet a commit from the commit list. You can find the commit list in the "Commit" tab, which is (by default) next to the Inspector/Node/History tabs:

However, if you want to be able to "fake"-enable the plugin without it throwing any errors, you can add this
res://addons/godot-git-plugin/godot-git-plugin.gd:This prevents the error as there is now an (empty) plugin script to load; though it can be confusing if you try to "disable" the plugin that way, as the gdextension will be loaded nonetheless.
Swivelgames commentedon Apr 16, 2025
Tip
Everything is working, despite it looking like it isn't!
In the far right of your editor, you'll notice a new
Commit (X)panelThat being said, there is some oddities with the way the plugin is configured. If
scriptis required for addons, then it probably should come out of the box with an empty.gdscript.The
plugin.cfgis pointing to a script that doesn't exist:And I get the following errors:
If I attempt to use the
git_plugin.gdextensionit, naturally, fails:Misc fixes and cleanup
Misc fixes and cleanup
Misc fixes and cleanup
Misc fixes and cleanup
Misc fixes and cleanup
Misc fixes and cleanup
Misc fixes and cleanup