gedit git plugin does not work anymore
@icq
Submitted by Ignacio Casal Quinteiro Link to original bug (#724009)
Description
commit d5925b76afa3a429092cbafd82aed40bb0cf0b18 Author: Simon Feltman sfeltman@src.gnome.org Date: Sun Jul 28 20:45:05 2013 -0700
cache refactoring: Remove special case marshaling for instance arguments
Remove duplicate code for marshaling struct and objects for
instance arguments. Re-use individual cache marshalers for
structs and objects with the instance argument. This required
removal of passing GITypeInfo to the marshaler because it is
not available for instance arguments. Instead always assume
"is_pointer" for the instance argument by using the cache.
https://bugzilla.gnome.org/show_bug.cgi?id=640812
This patch introduced a regression that makes the git plugin to not work. The exception I get is the next: argument self: Expected Ggit.Repository, but got gi.repository.Ggit.Repository
The git plugin uses libgit2-glib which has overrides, this could be the reason.
To reproduce the problem:
- enable the git plugin (be sure you have gedit-plugins installed)
- open a file which is inside a git repository and tracked by the repository
- edit something on the file
- you should get colors on the gutter in a similar way to: http://blogs.gnome.org/nacho/files/2013/01/gedit-git.png
- optionally to see the exception printed above edit the plugin https://git.gnome.org/browse/gedit-plugins/tree/plugins/git/git/viewactivatable.py#n114 and print the exception you get there.
Version: git master
Resolution: RESOLVED OBSOLETE