Xamarin Forms Editor/Previewer Broken - Latest Xamarin Studio 6.1 Preview (Alpha channel)

I just updated to the latest alpha channel preview today on my Mac. If I create a new Xamarin Forms solution and attempt to open a XAML file, I get an error "The file '/Users/robl/Projects/xamforms/xamforms/xamformsPage.xaml' could not be opened. The file '/Users/robl/Projects/xamforms/xamforms/xamformsPage.xaml' could not be opened."

Anyone else seeing this?

Xamarin Studio Community
Version 6.1 (build 4963)
Installation UUID: ea0d6fdd-d8de-44cb-92f4-38dc0da86d79
Runtime:
    Mono 4.4.0 (mono-4.4.0-branch/fcf7a6d) (64-bit)
    GTK+ 2.24.23 (Raleigh theme)

    Package version: 404000148

Below is an excerpt from the log files when I attempt to open a XAML file.

ERROR [2016-06-14 13:44:07Z]: The file '/Users/robl/Projects/xamforms/xamforms/xamformsPage.xaml' could not be opened.
System.NullReferenceException: Object reference not set to an instance of an object
at Xamarin.Designer.Forms.Preview.AppXamlMerger.GetResourceDictionary (System.Xml.Linq.XElement node) [0x00021] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/AppXamlMerger.cs:37
at Xamarin.Designer.Forms.Preview.AppXamlMerger.MergeAppXaml (System.Xml.Linq.XDocument xaml, System.Xml.Linq.XDocument app_xaml) [0x00014] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/AppXamlMerger.cs:115
at Xamarin.Designer.Forms.Preview.FormsPreviewSurface.LoadXaml (System.String xaml, System.String app_xaml) [0x0009a] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/FormsPreviewSurface.cs:164
at Xamarin.Designer.Forms.Preview.XamlPreviewWidget.LoadXaml (System.String xaml, System.String app_xaml) [0x0000c] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/XamlPreviewWidget.cs:171
at (wrapper remoting-invoke-with-check) Xamarin.Designer.Forms.Preview.XamlPreviewWidget:LoadXaml (string,string)
at Xamarin.Forms.Design.XamarinStudioXamlPreviewerView.RefreshXamlPreviewer () [0x00017] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Forms.Addin/Xamarin.Forms.Design/XamarinStudioXamlPreviewerView.cs:279
at Xamarin.Forms.Design.XamarinStudioXamlPreviewerView.TextView_TextChanged (System.Object sender, MonoDevelop.Core.Text.TextChangeEventArgs e) [0x00000] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Forms.Addin/Xamarin.Forms.Design/XamarinStudioXamlPreviewerView.cs:289
at MonoDevelop.SourceEditor.Wrappers.TextDocumentWrapper.HandleTextReplaced (System.Object sender, Mono.TextEditor.DocumentChangeEventArgs e) [0x0000d] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.Wrappers/ITextDocumentWrapper.cs:99
at (wrapper delegate-invoke) System.EventHandler1[Mono.TextEditor.DocumentChangeEventArgs]:invoke_void_object_TEventArgs (object,Mono.TextEditor.DocumentChangeEventArgs) at Mono.TextEditor.TextDocument.OnTextReplaced (Mono.TextEditor.DocumentChangeEventArgs args) [0x0000b] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:464 at Mono.TextEditor.TextDocument.set_Text (System.String value) [0x00057] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:237 at MonoDevelop.SourceEditor.Wrappers.TextDocumentWrapper.MonoDevelop.Ide.Editor.ITextDocument.set_Text (System.String value) [0x00000] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.Wrappers/ITextDocumentWrapper.cs:163 at MonoDevelop.Ide.Editor.TextEditor.set_Text (System.String value) [0x00005] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs:319 at Xamarin.Forms.Design.XamarinStudioXamlPreviewerView.Load (MonoDevelop.Ide.Gui.FileOpenInformation fileOpenInformation) [0x00079] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Forms.Addin/Xamarin.Forms.Design/XamarinStudioXamlPreviewerView.cs:250 at MonoDevelop.Ide.Gui.LoadFileWrapper+<Invoke>c__async0.MoveNext () [0x00161] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1551 ERROR [2016-06-14 13:44:07Z]: The file '/Users/robl/Projects/xamforms/xamforms/xamformsPage.xaml' could not be opened. System.NullReferenceException: Object reference not set to an instance of an object at Xamarin.Designer.Forms.Preview.AppXamlMerger.GetResourceDictionary (System.Xml.Linq.XElement node) [0x00021] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/AppXamlMerger.cs:37 at Xamarin.Designer.Forms.Preview.AppXamlMerger.MergeAppXaml (System.Xml.Linq.XDocument xaml, System.Xml.Linq.XDocument app_xaml) [0x00014] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/AppXamlMerger.cs:115 at Xamarin.Designer.Forms.Preview.FormsPreviewSurface.LoadXaml (System.String xaml, System.String app_xaml) [0x0009a] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/FormsPreviewSurface.cs:164 at Xamarin.Designer.Forms.Preview.XamlPreviewWidget.LoadXaml (System.String xaml, System.String app_xaml) [0x0000c] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Designer.Forms/Xamarin.Designer.Forms.Preview/XamlPreviewWidget.cs:171 at (wrapper remoting-invoke-with-check) Xamarin.Designer.Forms.Preview.XamlPreviewWidget:LoadXaml (string,string) at Xamarin.Forms.Design.XamarinStudioXamlPreviewerView.RefreshXamlPreviewer () [0x00017] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Forms.Addin/Xamarin.Forms.Design/XamarinStudioXamlPreviewerView.cs:279 at Xamarin.Forms.Design.XamarinStudioXamlPreviewerView.TextView_TextChanged (System.Object sender, MonoDevelop.Core.Text.TextChangeEventArgs e) [0x00000] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Forms.Addin/Xamarin.Forms.Design/XamarinStudioXamlPreviewerView.cs:289 at MonoDevelop.SourceEditor.Wrappers.TextDocumentWrapper.HandleTextReplaced (System.Object sender, Mono.TextEditor.DocumentChangeEventArgs e) [0x0000d] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.Wrappers/ITextDocumentWrapper.cs:99 at (wrapper delegate-invoke) System.EventHandler1[Mono.TextEditor.DocumentChangeEventArgs]:invoke_void_object_TEventArgs (object,Mono.TextEditor.DocumentChangeEventArgs)
at Mono.TextEditor.TextDocument.OnTextReplaced (Mono.TextEditor.DocumentChangeEventArgs args) [0x0000b] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:464
at Mono.TextEditor.TextDocument.set_Text (System.String value) [0x00057] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:237
at MonoDevelop.SourceEditor.Wrappers.TextDocumentWrapper.MonoDevelop.Ide.Editor.ITextDocument.set_Text (System.String value) [0x00000] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor.Wrappers/ITextDocumentWrapper.cs:163
at MonoDevelop.Ide.Editor.TextEditor.set_Text (System.String value) [0x00005] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Editor/TextEditor.cs:319
at Xamarin.Forms.Design.XamarinStudioXamlPreviewerView.Load (MonoDevelop.Ide.Gui.FileOpenInformation fileOpenInformation) [0x00079] in /Users/builder/data/lanes/3388/b37c52e0/source/md-addins/Xamarin.Forms.Addin/Xamarin.Forms.Design/XamarinStudioXamlPreviewerView.cs:250
at MonoDevelop.Ide.Gui.LoadFileWrapper+c__async0.MoveNext () [0x00161] in /Users/builder/data/lanes/3388/b37c52e0/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui/Workbench.cs:1551

Posts

  • RobertLawrenceRobertLawrence USUniversity ✭✭

    Just as a follow-up. I completely uninstalled Xamarin Studio and components using the uninstall script. I re-installed from a fresh download. Using the latest stable, I am not seeing the above issue. However, the moment I switched back to alpha channel and updated, the same issue appears.

  • ThomasGoerlichThomasGoerlich DEMember ✭✭

    I have the same problem. I also updated from the latest stable to the alpha channel to check out the new Xamarin Forms Editor Preview and can't open any XAML file. I always get the same error as mentioned above. Reinstalling did not help me either. The XAML is valid and i can compile and run the app without problems in the alpha channel.

  • Dt_tofDt_tof GRMember ✭✭

    The same for me, is there any kind of solution? I have tried almost everything.

  • +1 same issue!

  • JohnMillerJohnMiller USForum Administrator, Xamarin Team Xamurai

    Hey all,

    Unfortunately, this is a known issue with this Alpha release. The only workaround I have right now for XS 6.1 is to use the older Alpha from Evolve. You can download that here.

  • RobertLawrenceRobertLawrence USUniversity ✭✭

    Thanks @JohnMiller. The older Alpha works well (or well enough). At least it's a known issue. I was about to pull out hair thinking there was something wrong with my system / install. I look forward to this being in a stable build. I'm very impressed by what I see.

Sign In or Register to comment.