[MonoDevelop] Exceptions from NGit

Matt Calder mvcalder at gmail.com
Fri May 23 12:59:26 UTC 2014


I spoke too soon. Adding files to a project was still throwing exceptions.
In case anyone else has this problem, I discovered a work around. You can
"disable version control globally" in the preferences dialog.

Matt


On Fri, May 23, 2014 at 8:38 AM, Matt Calder <mvcalder at gmail.com> wrote:

> It took a few minutes but this started ringing bells. I hit this issue in
> a different context and filed Bug 12975<https://bugzilla.xamarin.com/show_bug.cgi?id=12975>.
> The suggestion to put Mono.Cecil.dll into /usr/lib/monodevelop/AddIns/
> VersionControl made renaming files work again. Sounds like a bug in the
> make file.
>
> Matt
>
>
>
>
>
>
> On Fri, May 23, 2014 at 8:27 AM, Matt Calder <mvcalder at gmail.com> wrote:
>
>> I get exceptions from NGit when I try to rename a file from the Solution
>> panel (stack trace below). I suspected that NGit was not properly
>> installed. I have just built monodevelop from git this morning, yet listing
>> NGit files shows a couple of dll's from way back:
>>
>> calder at pharos:~/tmp/monodevelop$ ls -lt /usr/lib/monodevelop/bin/NGit*
>> -rw-r--r-- 1 root root 525246 Feb 17 18:09
>> /usr/lib/monodevelop/bin/NGit.dll.mdb
>> -rwxr-xr-x 1 root root 926720 Feb 17 18:09
>> /usr/lib/monodevelop/bin/NGit.dll
>> calder at pharos:~/tmp/monodevelop$ ls -lt
>> /usr/lib/monodevelop/AddIns/*/NGit*
>> -rw-r--r-- 1 root root 586913 May 23 08:03
>> /usr/lib/monodevelop/AddIns/VersionControl/NGit.dll.mdb
>> -rwxr-xr-x 1 root root 960000 May 23 08:03
>> /usr/lib/monodevelop/AddIns/VersionControl/NGit.dll
>> -rw-r--r-- 1 root root 584731 Feb 17 18:09
>> /usr/lib/monodevelop/AddIns/MonoDevelop.Refactoring/NGit.dll.mdb
>> -rwxr-xr-x 1 root root 959488 Feb 17 18:09
>> /usr/lib/monodevelop/AddIns/MonoDevelop.Refactoring/NGit.dll
>>
>> I replaced the older versions of the files with the newer but still get
>> the same exception. Does anyone have a suggestion of how I might fix this?
>>
>>
>> Matt
>>
>> ---------------------------------
>> Stack trace of exception:
>>
>> System.TypeLoadException: Could not load type 'Sharpen.DigestInputStream'
>> from assembly 'NGit'.
>>   at NGit.Storage.File.RefDirectory.GetPackedRefs () [0x00000] in
>> <filename unknown>:0
>>   at NGit.Storage.File.RefDirectory.GetRef (System.String needle)
>> [0x00000] in <filename unknown>:0
>>   at NGit.Repository.GetRef (System.String name) [0x00000] in <filename
>> unknown>:0
>>   at NGit.Repository.Resolve (NGit.Revwalk.RevWalk rw, System.String
>> revstr) [0x00000] in <filename unknown>:0
>>   at NGit.Repository.Resolve (System.String revstr) [0x00000] in
>> <filename unknown>:0
>>   at MonoDevelop.VersionControl.Git.GitRepository.GetHeadCommit
>> (NGit.Repository repository) [0x00000] in <filename unknown>:0
>>   at MonoDevelop.VersionControl.Git.GitRepository.GetDirectoryVersionInfo
>> (FilePath localDirectory, IEnumerable`1 localFileNames, Boolean
>> getRemoteStatus, Boolean recursive) [0x00000] in <filename unknown>:0
>>   at MonoDevelop.VersionControl.Git.GitRepository.OnGetVersionInfo
>> (IEnumerable`1 paths, Boolean getRemoteStatus) [0x00000] in <filename
>> unknown>:0
>>   at MonoDevelop.VersionControl.Repository.GetVersionInfo (IEnumerable`1
>> paths, VersionInfoQueryFlags queryFlags) [0x00000] in <filename unknown>:0
>>   at MonoDevelop.VersionControl.Repository.GetVersionInfo (FilePath
>> localPath, VersionInfoQueryFlags queryFlags) [0x00000] in <filename
>> unknown>:0
>>   at MonoDevelop.VersionControl.Git.GitRepository.OnMoveFile (FilePath
>> localSrcPath, FilePath localDestPath, Boolean force, IProgressMonitor
>> monitor) [0x00000] in <filename unknown>:0
>>   at MonoDevelop.VersionControl.Repository.MoveFile (FilePath
>> localSrcPath, FilePath localDestPath, Boolean force, IProgressMonitor
>> monitor) [0x00000] in <filename unknown>:0
>>   at
>> MonoDevelop.VersionControl.VersionControlFileSystemExtension.MoveFile
>> (FilePath source, FilePath dest) [0x00000] in <filename unknown>:0
>>   at
>> MonoDevelop.VersionControl.VersionControlFileSystemExtension.RenameFile
>> (FilePath file, System.String newName) [0x00000] in <filename unknown>:0
>>   at MonoDevelop.Core.FileService.InternalRenameFile (System.String
>> srcFile, System.String newName) [0x00000] in <filename unknown>:0
>>   at MonoDevelop.Core.FileService.RenameFile (System.String oldName,
>> System.String newName) [0x00000] in <filename unknown>:0
>>   at
>> MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectFileNodeCommandHandler.RenameItem
>> (System.String newName) [0x00000] in <filename unknown>:0
>>   at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.HandleOnEdit
>> (System.Object o, Gtk.EditedArgs e) [0x00000] in <filename unknown>:0
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodevelop-list/attachments/20140523/9979d431/attachment-0001.html>


More information about the Monodevelop-list mailing list