Skip to content

Reloading a project fails to construct GitPlugin (cannot get class) #307

@CAD97

Description

@CAD97

Godot version

v4.5.stable.steam [876b29033]

Godot Git Plugin version

v3.2.1 [b26312f]

System information

Windows 11 Version 24H2 (OS Build 26100.6725)

Issue description

Upon reloading a project with the godot-git-plugin installed, an error is printed to the console and the version control functionality does not appear.

Godot Engine v4.5.stable.steam (c) 2007-present Juan Linietsky, Ariel Manzur & Godot Contributors. --- Debug adapter server started on port 6006 --- ERROR: Cannot get class 'GitPlugin'. ERROR: Received a nullptr VCS extension instance during construction. --- GDScript language server started on port 6005 --- 

Reloading the project again loads the plugin fine. As a complete shot-in-the-dark, perhaps there's a race between deconstruction of the old plugin instance and construction of the new plugin instance that leads to the old project instance destroying the new plugin instance before the new project instance can claim it?

My gut feeling also suspects this might be different on unixes due to differences between dynamic loading on the two platforms.

Steps to reproduce

  1. Open a project with the plugin.
  2. Reload the project. (Project > Reload Current Project)
  3. Note the errors in the output panel and that the VCS panels do not show up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions