godotengine / godot-git-plugin

Git implementation of the VCS interface in Godot
MIT License
717 stars 75 forks source link

Cannot uninstall the plugin #214

Open aristides86 opened 10 months ago

aristides86 commented 10 months ago

There are no istructions on uninstallation. Doing usual delete from addon folder every time launching the project I get Cannot get class 'GitPlugin'. Received a nullptr VCS extension instance during construction. So the plugin info is still embedded into the project. How do I get rid of it?

JamesMowery commented 10 months ago

+1! How do you uninstall? I'm getting frequent crashes on my project, and I feel it might be related. Please provide removal instructions (actually surprised this hasn't been provided already).

fantomac commented 10 months ago

+1
Cannot get class 'GitPlugin'. Received a nullptr VCS extension instance during construction.

Calinou commented 10 months ago

This is caused by a engine issue: https://github.com/godotengine/godot/issues/22476

Disable the plugin in the Project Settings first, close the editor then remove addons/godot-git-plugin/.

If you forgot to disable the plugin in the Project Settings, edit project.godot with a text editor to remove mentions of the Git plugin while the editor is closed.

fantomac commented 10 months ago

I thanks, but it's not possible to disable the plugin because it's not possible to activate it 😅

From the the instruction manual: 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.

Calinou commented 10 months ago

Removing the .godot/ folder (.import/ in 3.x) from the project while the editor is closed might help. This will force reimporting all resources in the project too.

aristides86 commented 10 months ago

Looks like the plugin adds itself into the project settings, but doesn't get removed afterwards. It needs to be done manually from Project settings > Version control.

fantomac commented 10 months ago

Already done + remove .git, .gitignore in case ... nothing in app_userdata (i'm on Mac with Godot 4.1.2)

fantomac commented 10 months ago

Looks like the plugin adds itself into the project settings, but doesn't get removed afterwards. It needs to be done manually from Project settings > Version control.

Seems, we have the culprit, thank you!!!

Capture d’écran 2024-01-18 à 18 24 28
k-dahl commented 3 months ago

Looks like this is still an issue with Godot 4.3.

Raikir-i-sh commented 2 months ago

One of the Solution : First you gotta remove addon like said above then If you use Vscode with Godot, you use just search (ctrl+shift+F) "gitplugin" , you will find the file where this setting is set and remove it from there .

Jesphar123 commented 1 month ago

This is caused by a engine issue: godotengine/godot#22476

Disable the plugin in the Project Settings first, close the editor then remove addons/godot-git-plugin/.

If you forgot to disable the plugin in the Project Settings, edit project.godot with a text editor to remove mentions of the Git plugin while the editor is closed.

Can confirm this works, I had to remove a single line about the version of the git plugin that was already uninstalled and removed from the addons folder. Thanks!