godotengine / godot-git-plugin

Git implementation of the VCS interface in Godot
MIT License
656 stars 64 forks source link

Cannot uninstall the plugin #214

Open aristides86 opened 6 months ago

aristides86 commented 6 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 6 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 6 months ago

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

Calinou commented 6 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 6 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 6 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 6 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 6 months ago

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

fantomac commented 6 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