[MonoDevelop] Possible problem with alpha 2 version

Michael Hutchinson m.j.hutchinson at gmail.com
Mon Jan 26 18:50:34 EST 2009


On Thu, Jan 8, 2009 at 3:01 PM, alan battersby
<alan.battersby at ntlworld.com> wrote:
> Its seems that my version of monodevelop randomly reports the error
> below when I try to run my project. The result of this is that the file
> open in the editor is wiped clean and the file is renamed as a backup. I
> can reopen the now empty file and cut and paste my code onto it from the
> backup.  Presumably the file is deleted at the start of a write which
> then does not proceed. Is it my system that is wrong or is this a bug?

It looks like two things have the file open in exclusive mode.
However, it's odd it should be able to delete the file but not write
out the contents.

>From the stack trace it looks like our new source editor doesn't use
our "safe" file write API, which writes the new files to a temp file,
then renames it to the desired name. This would at least have
prevented the destruction of the file's contents. I've now fixed that
in SVN. I doubt it'll fix what you're seeing, but it might help.

-- 
Michael Hutchinson
http://mjhutchinson.com


More information about the Monodevelop-list mailing list