[MonoDevelop] Monodevelop 5.10

Russell Haley russ.haley at gmail.com
Sat Oct 31 04:14:09 UTC 2015


Hey Robert,

Thanks for the great input. Someone on the freebsd-mono@ mailing list told
me to build libgit2 from ports. With your information now everything makes
sense.

Thanks for the help!

Russ

On Fri, Oct 30, 2015 at 7:43 AM, Robert N <sushihangover at outlook.com> wrote:

>
> "Can anyone tell me more about "git2-3d5286e"? Where will I find it if it
> does exist?"
>
>
> Libgit2sharp version of the libgit2 native dll/shared object is
> versioned with the git sha of the build.
>
>
> 'Normally' you obtain the libgit2sharp CIL assembly with the corresponding
> native Win32/64 dll (via the Window's nuget). There is also a nuget
> (LibGit2Sharp.NativeBinaries) for Win32/64, OS-X and Linux libgit2 native
> binaries that can be used.
>
>
> Since you are on BSD, I assume you would need to go to source and build
> it: https://github.com/libgit2/libgit2 .
>
>
>
> -Robert
> libgit2/libgit2 · GitHub <https://github.com/libgit2/libgit2>
> github.com
> libgit2 - The Library ... README.md libgit2 - the Git linkable library.
> libgit2 is a portable, pure C implementation of the Git core methods
> provided as a re-entrant ...
>
>
>
>
>
> ------------------------------
> *From:* monodevelop-list-bounces at lists.ximian.com <
> monodevelop-list-bounces at lists.ximian.com> on behalf of Russell Haley <
> russ.haley at gmail.com>
> *Sent:* Thursday, October 29, 2015 11:34 PM
> *To:* mono at freebsd.org; monodevelop-list at lists.ximian.com
> *Subject:* [MonoDevelop] Monodevelop 5.10
>
> Hey I have been able to compile and run Monodevelop on FreeBSD 10.2. The
> source is from git and I use the gmake method to build. I am trying to load
> the MonoDevelop workspace IN MonoDevelop to debug some issues, but when
> loading I am getting the following error:
>
> An unhandled exception has occured. Terminating MonoDevelop? True
> System.TypeInitializationException: An exception was thrown by the type
> initializer for LibGit2Sharp.Core.NativeMethods --->
> System.DllNotFoundException: git2-3d5286e
>   at (wrapper managed-to-native)
> LibGit2Sharp.Core.NativeMethods:git_libgit2_init ()
>   at LibGit2Sharp.Core.NativeMethods+LibraryLifetimeObject..ctor ()
> [0x00000] in <filename unknown>:0
>   at LibGit2Sharp.Core.NativeMethods..cctor () [0x00000] in <filename
> unknown>:0
>   --- End of inner exception stack trace ---
>   at
> LibGit2Sharp.Core.Proxy+<git_repository_discover>c__AnonStoreyE.<>m__0
> (LibGit2Sharp.Core.Handles.GitBuf buf) [0x00000] in <filename unknown>:0
>   at LibGit2Sharp.Core.Proxy.ConvertPath (System.Func`2 pathRetriever)
> [0x00000] in <filename unknown>:0
>   at LibGit2Sharp.Core.Proxy.git_repository_discover
> (LibGit2Sharp.Core.FilePath start_path) [0x00000] in <filename unknown>:0
>   at LibGit2Sharp.Repository.Discover (System.String startingPath)
> [0x00000] in <filename unknown>:0
>   at MonoDevelop.VersionControl.Git.GitRepository..ctor
> (MonoDevelop.VersionControl.VersionControlSystem vcs, FilePath path,
> System.String url) [0x00000] in <filename unknown>:0
>   at
> MonoDevelop.VersionControl.Git.GitVersionControl.GetRepositoryReference
> (FilePath path, System.String id) [0x00000] in <filename unknown>:0
>   at
> MonoDevelop.VersionControl.VersionControlService.GetRepositoryReference
> (System.String path, System.String id) [0x00000] in <filename unknown>:0
>   at MonoDevelop.VersionControl.VersionControlService.GetRepository
> (IWorkspaceObject entry) [0x00000] in <filename unknown>:0
>   at MonoDevelop.VersionControl.Git.GitNodeBuilderExtension.OnNodeAdded
> (System.Object dataObject) [0x00000] in <filename unknown>:0
>   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.RegisterNode
> (TreeIter it, System.Object dataObject,
> MonoDevelop.Ide.Gui.Components.NodeBuilder[] chain, Boolean fireAddedEvent)
> [0x00000] in <filename unknown>:0
>
>
> The Workspace mostly loads (po triansaltions fail?) but when I try to
> compile I get a very similar error. Incidently, I am trying to update the
> FreeBSD port to 5.10 and something similar is what is failing there too.
>
> I think I have tracked it down to this:
> the LibGit2Sharp project contains a reference to a class file called
> NativeDLLName.cs and in it is a string const:
>
> namespace LibGit2Sharp.Core
> {
>     internal static class NativeDllName
>     {
>         public const string Name = "git2-3d5286e";
>     }
> }
>
> This is what is loaded into NativeMethods.cs:
>
> // ReSharper disable InconsistentNaming
> namespace LibGit2Sharp.Core
> {
>     internal static class NativeMethods
>     {
>         public const uint GIT_PATH_MAX = 4096;
>         private const string libgit2 = NativeDllName.Name;
>         private static readonly LibraryLifetimeObject lifetimeObject;
>         private static int handlesCount;
>
> ...
>
>
>         [DllImport(libgit2)]
>         internal static extern GitErrorSafeHandle giterr_last();
>
>         [DllImport(libgit2)]
>         internal static extern void giterr_set_str(
>             GitErrorCategory error_class,
>             [MarshalAs(UnmanagedType.CustomMarshaler, MarshalCookie =
> UniqueId.UniqueIdentifier, MarshalTypeRef = typeof(StrictUtf8Marshaler))]
> string errorString);
>
>         [DllImport(libgit2)]
>         internal static extern void giterr_set_oom();
> ...
> }
> }
>
> Can anyone tell me more about "git2-3d5286e"? Where will I find it if it
> does exist?
>
> Thanks,
>
> Russ
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20151030/694632c5/attachment.html>


More information about the Monodevelop-list mailing list