Bug 15406 - Right clicking solution in solution panel throws exception, requires restart
Summary: Right clicking solution in solution panel throws exception, requires restart
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-10-15 10:35 UTC by Matt
Modified: 2015-08-20 03:23 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NOT_REPRODUCIBLE

Description Matt 2013-10-15 10:35:25 UTC
Description of Problem:

Right clicking solution in solution panel throws exception, requires restart.

Steps to reproduce the problem:
1. Right click the solution.
2. 


Actual Results:

This exception is thrown:

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.GetFullBranch () [0x00000] in <filename unknown>:0 
  at NGit.Repository.GetBranch () [0x00000] in <filename unknown>:0 
  at MonoDevelop.VersionControl.Git.GitRepository.GetCurrentBranch () [0x00000] in <filename unknown>:0 
  at MonoDevelop.VersionControl.Git.SwitchToBranchHandler.Update (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandHandler.InternalUpdate (MonoDevelop.Components.Commands.CommandArrayInfo info) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandManager.DefaultUpdateCommandInfo (MonoDevelop.Components.Commands.ActionCommand cmd, MonoDevelop.Components.Commands.CommandInfo info) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Components.Commands.CommandManager.GetCommandInfo (System.Object commandId, MonoDevelop.Components.Commands.CommandTargetRoute targetRoute) [0x00000] in <filename unknown>:0 

Expected Results:

No exception.

How often does this happen? 

Always.

Additional Information:
Comment 1 Marius Ungureanu 2014-03-13 11:58:18 UTC
This should be fixed when we switch to IKVM JGit.
Comment 2 Matt 2014-05-23 08:30:37 UTC
While I no longer get this exception simply by right clicking, I do get it when I try to rename or add a file. Any ideas?

Matt
Comment 3 Marius Ungureanu 2014-12-13 23:01:22 UTC
Sorry, I missed the last comment. Could you nuke your addin cache? It seems your NGit is stale for some reason.
Comment 4 Marius Ungureanu 2015-04-27 09:57:36 UTC
Should be fixed with libgit2 implementation.
Comment 5 Marius Ungureanu 2015-05-08 13:55:01 UTC
Due to changing the whole underlying system in 6.0, this should no longer be an issue. Marking as not reproducible due to it being a typeload exception and these assemblies not existing any longer in 6.0.