Bug 5349 - Activity modification causes axml files reload.
Summary: Activity modification causes axml files reload.
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Android Designer ()
Version: 3.0.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Lluis Sanchez
URL:
Depends on:
Blocks:
 
Reported: 2012-05-26 03:24 UTC by Marek
Modified: 2012-05-29 07:17 UTC (History)
0 users

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 Marek 2012-05-26 03:24:29 UTC
I modify anything in activity file. When I save file (CTRL+S) immediately opens axml file edit with message:

The file "C:\Users\USER\AppData\Local\Temp\__layoutFile" has been changed outside of MonoDevelop.
Do you want to keep your changes, or reload the file from disk?

Selecting Reload From Disk throws exception:

System.IO.FileNotFoundException: Could not find file 'C:\Users\USER\AppData\Local\Temp\__layoutFile'.
File name: 'C:\Users\USER\AppData\Local\Temp\__layoutFile'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
   at Mono.TextEditor.Utils.TextFileUtility.ReadAllText(String fileName, Boolean& hadBom, Encoding& encoding)
   at MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName, Encoding loadEncoding)
   at MonoDevelop.SourceEditor.SourceEditorView.Load(String fileName)
   at MonoDevelop.SourceEditor.SourceEditorWidget.Reload()
Comment 1 Lluis Sanchez 2012-05-29 07:17:38 UTC
Fixed. The fix will be available in the next release.