Skip to content
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

Godot Git Plugin (4.1+) .gdextension not recognized #267

Open
CodyChase88 opened this issue Jan 9, 2025 · 6 comments
Open

Godot Git Plugin (4.1+) .gdextension not recognized #267

CodyChase88 opened this issue Jan 9, 2025 · 6 comments
Labels

Comments

@CodyChase88
Copy link

CodyChase88 commented Jan 9, 2025

File compatibility using Godot_v4.3-stable_win64 and Godot Git Plugin (4.1+).

When trying to enable the plugin (Project -> Project Settings -> Plugins) I get the following error:

Unable to load addon script from path: 'res://addons/godot-git-plugin/godot-git-plugin.gd'.

the current use of the plugin uses '.gdextension' files instead of '.gd' which is what Godot seems to be expecting.

I've verified the correct expected file structure to ensure I'm not missing any of the required dependencies:

addons/
└── godot-git-plugin/
├── git_plugin.gdextension
├── plugin.cfg
├── LICENSE
├── THIRDPARTY.md
├── win64/ (for Windows) or equivalent for your platform
│ ├── libgit_plugin.windows.editor.x86_64.dll
│ ├── libgit_plugin.windows.editor.x86_64.lib
│ ├── libgit_plugin.windows.editor.x86_64.exp

But cannot get Godot to recognize the plugin without the godot-git-plugin.gd file

@IvanOfThings
Copy link

I have the same problem, same files structure but godot does not recognize the plugin

@LexGear
Copy link

LexGear commented 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
Copy link

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.

@SeanRamey
Copy link

Same issue here also.

@Calinou Calinou added the bug label Jan 21, 2025
@Calinou
Copy link
Member

Calinou commented Jan 21, 2025

Can you try modifying addons/godot-git-plugin/plugin.cfg and replace this line:

script="godot-git-plugin.gd"

With this line:

script="git_plugin.gdextension"

There are no GDScript files within this repository, so I assume the GDExtension file is the new entry point.

@cgmartin
Copy link

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):

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants