Bug 3082 - [New Resolver] Exception when removing from a project a file that doesn't exist
Summary: [New Resolver] Exception when removing from a project a file that doesn't exist
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-01-26 04:59 UTC by Lluis Sanchez
Modified: 2012-01-31 03:47 UTC (History)
1 user (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 FIXED

Description Lluis Sanchez 2012-01-26 04:59:36 UTC
ExportProjectDialog.cs was deleted, but not removed from the MD project. When I tried to remove it, I got this exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.IO.FileNotFoundException: Could not find file "/Users/lluis/prog/work/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/ExportProjectDialog.cs".
File name: '/Users/lluis/prog/work/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects/ExportProjectDialog.cs'
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x00337] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System.IO/FileStream.cs:343 
  at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare)
  at System.IO.File.OpenRead (System.String path) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System.IO/File.cs:337 
  at System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize) [0x00077] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System.IO/StreamReader.cs:171 
  at System.IO.StreamReader..ctor (System.String path) [0x00000] in <filename unknown>:0 
  at (wrapper remoting-invoke-with-check) System.IO.StreamReader:.ctor (string)
  at System.IO.File.ReadAllText (System.String path) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System.IO/File.cs:530 
  at MonoDevelop.TypeSystem.TypeSystemService.ParseFile (MonoDevelop.Projects.Project project, System.String fileName) [0x00000] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/TypeSystemService.cs:206 
  at MonoDevelop.GtkCore.GuiBuilder.GuiBuilderProject.OnFileRemoved (System.Object sender, MonoDevelop.Projects.ProjectFileEventArgs e) [0x00019] in /Users/lluis/prog/nowork/mdresolver/main/src/addins/MonoDevelop.GtkCore/MonoDevelop.GtkCore.GuiBuilder/GuiBuilderProject.cs:349 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_ProjectFileEventArgs (object,MonoDevelop.Projects.ProjectFileEventArgs)
  at MonoDevelop.Projects.Project.OnFileRemovedFromProject (MonoDevelop.Projects.ProjectFileEventArgs e) [0x00012] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:928 
  at MonoDevelop.Projects.Project.NotifyFileRemovedFromProject (IEnumerable`1 objs) [0x000f3] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:851 
  at MonoDevelop.Projects.Project.OnItemsRemoved (IEnumerable`1 objs) [0x00007] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/Project.cs:812 
  at MonoDevelop.Projects.DotNetProject.OnItemsRemoved (IEnumerable`1 objs) [0x00000] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/DotNetProject.cs:1067 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectItem].NotifyRemoved (IEnumerable`1 items, Boolean comesFromParent) [0x0009a] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:168 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectItem].MonoDevelop.Projects.IItemListHandler.InternalRemove (IEnumerable`1 objs, Boolean comesFromParent) [0x00042] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:134 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectFile].NotifyRemoved (IEnumerable`1 items, Boolean comesFromParent) [0x00082] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:166 
  at MonoDevelop.Projects.ProjectItemCollection`1[MonoDevelop.Projects.ProjectFile].OnItemRemoved (MonoDevelop.Projects.ProjectFile item) [0x00017] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ProjectItemCollection.cs:120 
  at MonoDevelop.Projects.ItemCollection`1[MonoDevelop.Projects.ProjectFile].RemoveItem (Int32 index) [0x0000f] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Core/MonoDevelop.Projects/ItemCollection.cs:46 
  at System.Collections.ObjectModel.Collection`1[MonoDevelop.Projects.ProjectFile].Remove (MonoDevelop.Projects.ProjectFile item) [0x00011] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System.Collections.ObjectModel/Collection.cs:127 
  at MonoDevelop.Ide.Gui.Pads.ProjectPad.ProjectFileNodeCommandHandler.DeleteMultipleItems () [0x0028a] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/ProjectFileNodeBuilder.cs:289 
  at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.DeleteCurrentItem () [0x00072] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs:850 
  at MonoDevelop.Ide.Gui.Components.ExtensibleTreeView.OnKeyPress (System.Object o, Gtk.KeyPressEventArgs args) [0x0002a] in /Users/lluis/prog/nowork/mdresolver/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Components/ExtensibleTreeView.cs:1858 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System.Reflection/MethodBase.cs:96 
  at System.Delegate.DynamicInvokeImpl (System.Object[] args) [0x000bf] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System/Delegate.cs:408 
  at System.MulticastDelegate.DynamicInvokeImpl (System.Object[] args) [0x00018] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System/MulticastDelegate.cs:70 
  at System.Delegate.DynamicInvoke (System.Object[] args) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.8.1/mcs/class/corlib/System/Delegate.cs:382 
  at GLib.Signal.ClosureInvokedCB (System.Object o, GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.Invoke (GLib.ClosureInvokedArgs args) [0x00000] in <filename unknown>:0 
  at GLib.SignalClosure.MarshalCallback (IntPtr raw_closure, IntPtr return_val, UInt32 n_param_vals, IntPtr param_values, IntPtr invocation_hint, IntPtr marshal_data) [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2012-01-31 03:47:54 UTC
fixed that one.