Bug 20107 - Intellisense Error on .xaml files in Xamarin.Forms Shared Project
Summary: Intellisense Error on .xaml files in Xamarin.Forms Shared Project
Status: RESOLVED DUPLICATE of bug 20101
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: iOS add-in ()
Version: 5.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: master
Assignee: Jeffrey Stedfast
URL:
Depends on:
Blocks:
 
Reported: 2014-05-28 17:51 UTC by Rui Marinho
Modified: 2014-05-29 00:35 UTC (History)
2 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Screenshot (440.59 KB, image/png)
2014-05-28 17:51 UTC, Rui Marinho
Details


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 DUPLICATE of bug 20101

Description Rui Marinho 2014-05-28 17:51:39 UTC
Created attachment 6900 [details]
Screenshot

When writing markup on a xaml file, the autocompletion crashes, this happens when you create a Xamarin.Forms Shared project, because it doesn't add any references to the project like the Xamarin.Forms reference.


Stack trace:

System.NullReferenceException: Object reference not set to an instance of an object
  at XamarinStudio.Forms.FormsEditorExtension.AddFormsTagCompletionData (MonoDevelop.Ide.CodeCompletion.CompletionDataList list, XName parentName, ICompilation db) [0x00055] in /Users/builder/data/lanes/886/bcd66920/source/md-addins/Xamarin.Forms.Addin/Xamarin.Forms.Addin/FormsEditorExtension.cs:48 
  at XamarinStudio.Forms.FormsEditorExtension.GetElementCompletions (MonoDevelop.Ide.CodeCompletion.CompletionDataList list) [0x0001b] in /Users/builder/data/lanes/886/bcd66920/source/md-addins/Xamarin.Forms.Addin/Xamarin.Forms.Addin/FormsEditorExtension.cs:20 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Boolean forced, System.Int32& triggerWordLength) [0x0015a] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.Gui/BaseXmlEditorExtension.cs:259 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, System.Int32& triggerWordLength) [0x00053] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.Gui/BaseXmlEditorExtension.cs:226 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0014b] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:137 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0011d] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.Gui/BaseXmlEditorExtension.cs:203 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Debugger.ExceptionCaughtTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0006a] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ExceptionCaughtDialog.cs:775 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00013] in /Users/builder/data/lanes/886/bcd66920/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:259
Comment 1 Rui Marinho 2014-05-28 17:55:17 UTC
To reproduce: 

Create a new Universal Xamarin.Forms (Shared Project), add a new FormsContentPage , start typing in the .xam file.
Comment 2 Mikayla Hutchinson [MSFT] 2014-05-28 19:13:49 UTC

*** This bug has been marked as a duplicate of bug 20101 ***