Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#47385 - [monodevelop] fails to initialize git tools

Attached to Project: Arch Linux
Opened by Marcus Krahl (marcuskrahl) - Tuesday, 15 December 2015, 10:45 GMT
Last edited by Isenmann Daniel (ise) - Thursday, 28 January 2016, 06:28 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Isenmann Daniel (ise)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
After upgrading monodevelop whenever I open a solution with a git repository, monodevelop throws a critical error message with no further details. Monodevelop itself works correctly after the message, but no git commands are available (commit, checkout, ...)

The log contains the following exception:
ERROR [2015-12-15 11:30:18Z]: System.TypeInitializationException: The type initializer for 'LibGit2Sharp.Core.NativeMethods' threw an exception. ---> System.DllNotFoundException: git2-e8b8948
at (wrapper managed-to-native) LibGit2Sharp.Core.NativeMethods:git_libgit2_init ()
at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor () <0x412aa1e0 + 0x0000b> in <filename unknown>:0
at LibGit2Sharp.Core.NativeMethods..cctor () <0x412a9fa0 + 0x0013f> in <filename unknown>:0
--- End of inner exception stack trace ---
at LibGit2Sharp.Core.Proxy.git_buf_free (LibGit2Sharp.Core.Handles.GitBuf buf) <0x412aa640 + 0x0000f> in <filename unknown>:0
at LibGit2Sharp.Core.Handles.GitBuf.Dispose () <0x412aa620 + 0x0000f> in <filename unknown>:0
at LibGit2Sharp.Core.Proxy.ConvertPath (System.Func`2 pathRetriever) <0x412a9db0 + 0x000a8> in <filename unknown>:0
at LibGit2Sharp.Core.Proxy.git_repository_discover (LibGit2Sharp.Core.FilePath start_path) <0x412a92e0 + 0x000ff> in <filename unknown>:0
at LibGit2Sharp.Repository.Discover (System.String startingPath) <0x412a8500 + 0x0001f> in <filename unknown>:0
at MonoDevelop.VersionControl.Git.GitRepository..ctor (MonoDevelop.VersionControl.VersionControlSystem vcs, FilePath path, System.String url) <0x412a7dd0 + 0x001bf> in <filename unknown>:0
at MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference (FilePath path, System.String id) <0x412a75a0 + 0x000a3> in <filename unknown>:0
at MonoDevelop.VersionControl.VersionControlService.GetRepositoryReference (System.String path, System.String id) <0x412902b0 + 0x0017a> in <filename unknown>:0
at MonoDevelop.VersionControl.VersionControlService.GetRepository (IWorkspaceObject entry) <0x4128fb60 + 0x000df> in <filename unknown>:0
at MonoDevelop.VersionControl.Git.GitNodeBuilderExtension.BuildNode (ITreeBuilder treeBuilder, System.Object dataObject, MonoDevelop.Ide.Gui.Components.NodeInfo nodeInfo) <0x412afe10 + 0x000c7> in <filename unknown>:0
at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView+TreeBuilder.GetNodeInfo (MonoDevelop.Ide.Gui.Components.NodeInfo nodeInfo, MonoDevelop.Ide.Gui.Components.ExtensibleTreeView tree, ITreeBuilder tb, MonoDevelop.Ide.Gui.Components.NodeBuilder[] chain, System.Object dataObject) <0x412ad000 + 0x000f2> in <filename unknown>:0


Additional info:
* extra/monodevelop 5.10.0.871-1
* extra/git 2.6.4-1
* extra/mono 4.2.1.102-1

Steps to reproduce:

Open a solution with a git repository in monodevelop
This task depends upon

Closed by  Isenmann Daniel (ise)
Thursday, 28 January 2016, 06:28 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed with the newest package.
Comment by Marcus Krahl (marcuskrahl) - Tuesday, 15 December 2015, 10:48 GMT
Downgrading to version monodevelop-5.9.7.9-1 fixed the problem
Comment by Alexandre Lion (lnalex) - Thursday, 17 December 2015, 19:56 GMT
Same issue, temporary solution is to downgrade to 5.9.7.9-1.

Maybe should we report this to Xamarin team.
Comment by Simon Thorpe (simplesimon) - Friday, 18 December 2015, 05:04 GMT
This crashes (exits with error of missing libgit2sharp dll showing in log) monodevelop when I open a .sln file located in a git repo root. The workaround is to open monodevelop in another working directory, disable the Git plugin, then try again and it works.
Comment by Luca Weiss (z3ntu) - Sunday, 10 January 2016, 14:16 GMT
Same problem, disabling the Git plugin works
Comment by Isenmann Daniel (ise) - Wednesday, 27 January 2016, 20:55 GMT
Please test with the newest monodevelop which I released today and give me feedback
Comment by Alexandre Lion (lnalex) - Wednesday, 27 January 2016, 21:25 GMT
It seems to be solved on my side. Thank you !

Loading...