Bug 2538 - Cannot reliably save files in MonoDevelop
Summary: Cannot reliably save files in MonoDevelop
Status: RESOLVED NOT_REPRODUCIBLE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: General ()
Version: 2.9.x
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-12-16 07:44 UTC by Alan McGovern
Modified: 2012-04-11 06:26 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 Alan McGovern 2011-12-16 07:44:21 UTC
System.Reflection.TargetInvocationException: Eccezione generata dalla destinazione di una chiamata. ---> System.IO.IOException: Il processo non può accedere al file perché è in uso da un altro processo.
in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
in System.IO.__Error.WinIOError()
in System.IO.File.Move(String sourceFileName, String destFileName)
in MonoDevelop.Core.FileService.SystemRename(String sourceFile, String destFile)
in MonoDevelop.Projects.Text.TextFile.WriteFile(FilePath fileName, String content, String encoding, Boolean saveBOM)
in MonoDevelop.SourceEditor.SourceEditorView.Save(String fileName, String encoding)
in MonoDevelop.SourceEditor.SourceEditorView.Save(String fileName)
in MonoDevelop.Ide.Gui.Document.Save()
in MonoDevelop.Ide.Gui.ViewCommandHandlers.OnSaveFile()
--- Fine della traccia dello stack dell'eccezione interna ---
in System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
in System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
in System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
in System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
in System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters)
in MonoDevelop.Components.Commands.CommandHandlerInfo.Run(Object cmdTarget, Command cmd)
in MonoDevelop.Components.Commands.CommandManager.<>c__DisplayClassb.<DispatchCommand>b__2()
in MonoDevelop.Components.Commands.CommandManager.DispatchCommand(Object commandId, Object dataItem, Object initialTarget, CommandSource source)

MonoDevelop: 2.9.1
Runtime: Microsoft .NET v4.0.30319.239
Operating System: Windows (Microsoft Windows NT 6.1.7601 Service Pack 1)
Distributor: Xamarin
Comment 2 Mike Krüger 2012-04-11 06:26:35 UTC
Would be nice to get some more info about it - I've changed the text file saving, therefore I close it as works for me.

But that bug implies that the file was opened during save - I've no real idea how that can happen.