godotengine / godot-git-plugin

Git implementation of the VCS interface in Godot
MIT License
703 stars 74 forks source link

Does not have libary for the current platform (PCRE) #82

Closed zwrawr closed 2 years ago

zwrawr commented 3 years ago

OS: Ubuntu 20.04 LTS

Unable to load addon script from path: 'res://addons/godot-git-plugin-v1.2.2/godot-git-plugin/git_api.gdns'. This might be due to a code error in that script.
Disabling the addon at 'res://addons/godot-git-plugin-v1.2.2/godot-git-plugin/plugin.cfg' to prevent further errors.
 GDScript language server started ---
  does not have a library for the current platform.
 Failed to get modified time for: res://addons/godot-git-plugin/git_api.gdnlib.
  does not have a library for the current platform.
 core/project_settings.cpp:209 - Property not found: editor_plugins/enabled
twaritwaikar commented 3 years ago

The error is probably because of the contents of the release .zip file being present one level deeper than they need to be.

In your case, try just copying res://addons/godot-git-plugin-v1.2.2/godot-git-plugin to res://addons/godot-git-plugin and then you can delete res://addons/godot-git-plugin-v1.2.2.

twaritwaikar commented 3 years ago

Just added a note of this in the wiki

twaritwaikar commented 3 years ago

Could you confirm that you have downloaded the plugin through the Asset Library?

zwrawr commented 3 years ago

I wasn't installing from the Asset Library but from the GitHub releases. When I install the Asset library version I get this error.

Godot Engine v3.3.4.stable.mono.official (c) 2007-2021 Juan Linietsky, Ariel Manzur & Godot Contributors.
--- GDScript language server started ---
 Can't open dynamic library: /mnt/slowssd/Repos/godot/LD49/addons/godot-git-plugin/x11/release/libgitapi.so. Error: /mnt/slowssd/Repos/godot/LD49/addons/godot-git-plugin/x11/release/libgitapi.so: undefined symbol: pcre_free
 modules/gdnative/gdnative.cpp:502 - No valid library handle, can't get symbol from GDNative object
 modules/gdnative/nativescript/nativescript.cpp:1482 - No nativescript_init in "res://addons/godot-git-plugin/x11/release/libgitapi.so" found
twaritwaikar commented 3 years ago

@zwrawr That looks like the same issue as https://github.com/godotengine/godot-git-plugin/issues/83

Could you try the workaround mentioned therein?

zwrawr commented 3 years ago

Looks like I already have it installed

sudo apt-get install libpcre3
...
libpcre3 is already the newest version (2:8.39-12build1).
twaritwaikar commented 3 years ago

Thanks for confirming. I am marking this as a bug. The fix should be simple because this is now identified as a regression due to missing an option in our compilation flags.

eeclarkjr commented 2 years ago

Zip file downloaded and saved into addons folder (path shown below) Get the follow error when trying to enable.

_Unable to load addon script from path: 'res://addons/godot-git-plugin/gitapi.gdns' There seems to be an error in the code, please check the syntax.

twaritwaikar commented 2 years ago

@eeclarkjr Any chance you are using the mono build of Godot?

PixsaOJ commented 2 years ago

Godot 3.4 came up.

I used to fall back to version 1.2.1, and it worked, but now that's not even an option. So I can't really use this plugin anymore. Hopefully will be fixed soon. If you need any debugging or assistance from me, I am glad to help. I am starting new project and don't want to use other GitHub plugin (I use GitLab).

The problem with 1.2.1 is that when I reopen the project, it's gone.

twaritwaikar commented 2 years ago

@PixsaOJ Godot 3.4 should be working with v1.2.1. The behaviour you see that the VCS needs to be initialized every time you open the project in Godot is actually the correct behaviour from this plugin and has been the behaviour in all v1.x.

However, we have built a way to fix that in the upcoming v2 with https://github.com/godotengine/godot/pull/53900 and #84 along with new features including network-related ones.

twaritwaikar commented 2 years ago

The Godot 3.5 beta1 is now live. And along with it, we released a v2.0.0 of this plugin which should fix this issue.

twaritwaikar commented 2 years ago

While v2.x fixes this issue, the fix was backported to v1.x as well. The new v1.2.3 should not show any PCRE undefined symbol errors.

fenamori commented 1 year ago

I'm getting the same error as #90 on Godot v3.5.1.stable with plugin version 2.1.0 running on EndeavourOS (Linux kernel 6.1.4-arch1-1).

Can't open dynamic library: /(project path)/addons/godot-git-plugin/linux/libgitapi.so. Error: /(project path)/addons/godot-git-plugin/linux/libgitapi.so: failed to map segment from shared object

modules/gdnative/gdnative.cpp:510 - No valid library handle, can't get symbol from GDNative object

modules/gdnative/nativescript/nativescript.cpp:1503 - No nativescript_init in "res://addons/godot-git-plugin/linux/libgitapi.so" found

image

View-my-Git-Lab-krafi commented 11 months ago

https://github.com/touilleMan/godot-python/issues/396

Calinou commented 11 months ago

@View-my-Git-Lab-krafi This issue is unrelated to the Godot Git plugin.