godot-git-plugin icon indicating copy to clipboard operation
godot-git-plugin copied to clipboard

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

Open vikram3 opened this issue 2 years ago • 11 comments

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

vikram3 avatar Apr 30 '23 07:04 vikram3

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

clemens-tolboom avatar May 03 '23 09:05 clemens-tolboom

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.

markeel avatar May 25 '23 04:05 markeel

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 avatar May 25 '23 13:05 clemens-tolboom

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.

clemens-tolboom avatar May 25 '23 13:05 clemens-tolboom

Just want to follow up. Got same error on

  • Ubuntu 24.04
  • Godot v4.2.2
  • Plugin v3.1.1, downloaded from AssetLib
ERROR: Attempt to open script 'res://addons/godot-git-plugin/godot-git-plugin.gd' resulted in error 'File not found'.
   at: load_source_code (modules/gdscript/gdscript.cpp:1025)
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.
   at: _load (core/io/resource_loader.cpp:274)

brccabral avatar Jun 04 '24 02:06 brccabral

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. ,

mikhail-zvinchuk avatar Jul 09 '24 09:07 mikhail-zvinchuk

i too

Lyumih avatar Jul 25 '24 02:07 Lyumih