godotengine / godot-git-plugin

Git implementation of the VCS interface in Godot
MIT License
677 stars 67 forks source link

Can't enable add-on due to missing `godot-git-plugin.gd` file #183

Open vikram3 opened 1 year ago

vikram3 commented 1 year ago

Unable to load addon script from path: 'res://addons/godot-git-plugin/godot-git-plugin.gd'. This might be due to a code error in that script. Disabling the addon at 'res://addons/godot-git-plugin/plugin.cfg' to prevent further errors.

image

clemens-tolboom commented 1 year ago

On MacOS Godot_v4.0.3-rc1_macos.universal.app downloading through the AssetLib v3.0.0 I get no godot-git-plugin.gd file.

tree addons 
addons
└── godot-git-plugin
    ├── LICENSE
    ├── THIRDPARTY.md
    ├── git_plugin.gdextension
    ├── linux
    │   └── libgit_plugin.linux.editor.x86_64.so
    ├── macos
    │   └── libgit_plugin.macos.editor.universal.dylib
    ├── plugin.cfg
    └── win64
        ├── libgit_plugin.windows.editor.x86_64.dll
        ├── libgit_plugin.windows.editor.x86_64.exp
        └── libgit_plugin.windows.editor.x86_64.lib

By adding the mentioned file with content

@tool
extends EditorPlugin

I see image

markeel commented 1 year ago

I thought that VCS plugin didn't use the enable mechanism. So I think this can be closed, unless we want to do an enhancement where GDExtension plugins do in fact get enabled in the Plugins tab (or are shown as enabled automatically and can't be disabled).

Per: https://github.com/godotengine/godot-git-plugin/wiki/Git-plugin-v3

Note: you do NOT need to manually enable the plugin in the Project > Project Settings > Plugins tab. In fact, you can't; that tab is for script-based plugins, GDExtension plugins, like this one, will be loaded automatically.

clemens-tolboom commented 1 year ago

Interesting but weird 'workflow' ... I want to disable the plugin thus need to be able to enable right?

I try to use this plugin (to move it forward?) but it still does not match my git workflow (git add --patch / git add file-x) .. guess it's not in the way (but will it break when added to .gitignore?

clemens-tolboom commented 1 year ago

I can confirm no need for enabling and thus https://github.com/godotengine/godot-git-plugin/issues/183#issuecomment-1532709104 was my bad?

(tbc) IIRC I did not see the 'Commit tab' on a pristine project thus tried to enable.

brccabral commented 2 months ago

Just want to follow up. Got same error on

mikhail-zvinchuk commented 1 month ago

Hi this issue has resurfaced.

I get

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

And I can seemingly fix it by adding said file as done by this person.

clemens-tolboom

File is not currently present in latest build at 3.1.1 https://github.com/godotengine/godot-git-plugin/releases/download/v3.1.1/godot-git-plugin-v3.1.1.zip or if installed through Asset Library.

I have some free time I can dedicate to fixing this, it that is needed. ,

Lyumih commented 4 weeks ago

i too

unfa commented 6 days ago

This happens for me always. I got this plug-in working fro a short while, and after then every time I install it it just shoqs this when I try to enable it in Project settings:

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

This happens both on Linux and Windows with Godot 4.2 and 4.3.