Bug 4745 - Autosave fails for unsaved file
Summary: Autosave fails for unsaved file
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Mac OS
: Low normal
Target Milestone: ---
Assignee: Mike Krüger
Depends on:
Reported: 2012-04-30 11:00 UTC by Mikayla Hutchinson [MSFT]
Modified: 2012-05-02 03:53 UTC (History)
1 user (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 Mikayla Hutchinson [MSFT] 2012-04-30 11:00:28 UTC
Create a new file in MD without a project open. It'll be in the "unsaved" state. When editing it, the following error is shown in the log:

ERROR [2012-04-30 10:57:50Z]: Error in auto save while creating: . Disableing auto save.
System.ArgumentNullException: Argument cannot be null.
Parameter name: destFileName
  at System.IO.File.Move (System.String sourceFileName, System.String destFileName) [0x00141] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.IO/File.cs:317 
  at MonoDevelop.SourceEditor.AutoSave.CreateAutoSave (System.String fileName, System.String content) [0x00030] in /Users/michael/Mono/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/AutoSave.cs:89
Comment 1 Mike Krüger 2012-05-02 03:53:48 UTC