Bug 10895 - Exception on updating a solution
Summary: Exception on updating a solution
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Version Control ()
Version: Trunk
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Marius Ungureanu
Depends on:
Reported: 2013-03-05 02:03 UTC by Mike Krüger
Modified: 2013-07-08 04:29 UTC (History)
4 users (show)

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:

Description Mike Krüger 2013-03-05 02:03:11 UTC
When updating the xamarin.profiler solution I got:

System.IO.FileNotFoundException: File not found
File name: '/home/mkrueger/work/profiler/external/xwt'
  at Sharpen.FileInputStream..ctor (System.String file) [0x0002e] in /home/mkrueger/work/monodevelop/main/external/ngit/Sharpen/Sharpen/FileInputStream.cs:18 
  at Sharpen.FileInputStream..ctor (Sharpen.FilePath file) [0x00000] in /home/mkrueger/work/monodevelop/main/external/ngit/Sharpen/Sharpen/FileInputStream.cs:8 
  at NGit.Treewalk.FileTreeIterator+FileEntry.OpenInputStream () [0x00001] in /home/mkrueger/work/monodevelop/main/external/ngit/NGit/NGit.Treewalk/FileTreeIterator.cs:218 
  at NGit.Treewalk.WorkingTreeIterator.OpenEntryStream () [0x00007] in /home/mkrueger/work/monodevelop/main/external/ngit/NGit/NGit.Treewalk/WorkingTreeIterator.cs:675 
  at MonoDevelop.VersionControl.Git.StashCollection.WriteWorkingDirectoryTree (NGit.Revwalk.RevTree headTree, NGit.Dircache.DirCache index) [0x00149] in /home/mkrueger/work/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/Stash.cs:287 
  at MonoDevelop.VersionControl.Git.StashCollection.Create (NGit.ProgressMonitor monitor, System.String message) [0x00175] in /home/mkrueger/work/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/Stash.cs:225 
  at MonoDevelop.VersionControl.Git.GitRepository.Rebase (System.String upstreamRef, Boolean saveLocalChanges, IProgressMonitor monitor) [0x00044] in /home/mkrueger/work/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs:468 
  at MonoDevelop.VersionControl.Git.GitRepository.OnUpdate (MonoDevelop.Core.FilePath[] localPaths, Boolean recurse, IProgressMonitor monitor) [0x000ca] in /home/mkrueger/work/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl.Git/MonoDevelop.VersionControl.Git/GitRepository.cs:444 
  at MonoDevelop.VersionControl.Repository.Update (MonoDevelop.Core.FilePath[] localPaths, Boolean recurse, IProgressMonitor monitor) [0x00001] in /home/mkrueger/work/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Repository.cs:384 
  at MonoDevelop.VersionControl.UpdateCommand+UpdateWorker.Run () [0x00021] in /home/mkrueger/work/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/UpdateCommand.cs:44 
  at MonoDevelop.VersionControl.Task.BackgroundWorker (System.Object state) [0x00002] in /home/mkrueger/work/monodevelop/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/Task.cs:52
Comment 1 Marius Ungureanu 2013-07-01 06:50:35 UTC
That's because a git submodule update has not been issued. Will try and see how it goes.
Comment 3 Marius Ungureanu 2013-07-05 07:55:19 UTC
Current status on this on my local:

I can get the submodule update done before the stashes. But it won't update submodules after the main repository update itself.

If I make the stash creation ignore the submodule 'directory', stashes won't apply afterwards.

If I do the submodule update after the main repository update, this issue still occurs.

So a really bad and hacky fix is doing submodule update before AND after the update itself.
Comment 4 Marius Ungureanu 2013-07-08 04:29:37 UTC
Fixed in https://github.com/mono/monodevelop/pull/326 .