Bug 5613 - ASP.NET .aspx code completion "Error in text editor extension chain"
Summary: ASP.NET .aspx code completion "Error in text editor extension chain"
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: ASP.Net ()
Version: 3.0.x
Hardware: PC Linux
: Normal normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-06-12 02:05 UTC by David
Modified: 2012-07-03 03:09 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 FIXED

Description David 2012-06-12 02:05:19 UTC
Starting in version 3.0.2 (both Ubuntu 12.04 and Windows 7) an error is generated by code completion. To duplicate, create a new ASP.NET (C#) web application. Attempt to add a control to the page. The code completion window correctly shows a list of server controls, etc. After choosing a server control, insert a space. The code completion window should be displayed, where you can choose from "id", "runat", etc. However, an error (see below) is generated instead. 

It is still possible after this error to type code and run it, but code completion is completely gone.

*** Note: This error is not present in version 2.8.8.4. ***

System.NotSupportedException: Operation is not supported.
  at ICSharpCode.NRefactory.TypeSystem.CecilLoader+BlobReader.ReadNamedArg (IType attributeType) [0x000c5] in /home/david/Desktop/monodevelop-3.0.3.1/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:1187 
  at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.DecodeBlob (System.Collections.Generic.List`1 positionalArguments, System.Collections.Generic.List`1 namedArguments) [0x0008c] in /home/david/Desktop/monodevelop-3.0.3.1/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:917 
  at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.DecodeBlob () [0x0000c] in /home/david/Desktop/monodevelop-3.0.3.1/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:898 
  at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.get_PositionalArguments () [0x00014] in /home/david/Desktop/monodevelop-3.0.3.1/contrib/ICSharpCode.NRefactory/TypeSystem/CecilLoader.cs:873 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.GetPersistenceMode (IProperty prop) [0x00032] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:759 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.AddControlMembers (MonoDevelop.Ide.CodeCompletion.CompletionDataList list, IType controlClass, System.Collections.Generic.Dictionary`2 existingAtts) [0x00042] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:620 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.AddAspAttributeCompletionData (MonoDevelop.Ide.CodeCompletion.CompletionDataList list, XName name, System.Collections.Generic.Dictionary`2 existingAtts) [0x00060] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:611 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.GetAttributeCompletions (IAttributedXObject attributedOb, System.Collections.Generic.Dictionary`2 existingAtts) [0x000c1] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:504 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Boolean forced, System.Int32& triggerWordLength) [0x00553] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.Gui/BaseXmlEditorExtension.cs:343 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Boolean forced, System.Int32& triggerWordLength) [0x002db] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:200 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, System.Int32& triggerWordLength) [0x0004d] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.Gui/BaseXmlEditorExtension.cs:216 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, System.Int32& triggerWordLength) [0x0000b] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:276 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x000f0] in /home/david/Desktop/monodevelop-3.0.3.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:126 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00109] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/MonoDevelop.XmlEditor/MonoDevelop.XmlEditor.Gui/BaseXmlEditorExtension.cs:193 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00035] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:286 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/david/Desktop/monodevelop-3.0.3.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00000] in /home/david/Desktop/monodevelop-3.0.3.1/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:236
Comment 1 Rodrigo 2012-07-02 19:52:09 UTC
Same issue here on OSX Lion, MonoDevelop 3.0.3.2
Comment 2 Rodrigo 2012-07-02 19:53:36 UTC
Using a GridView 

System.NotSupportedException: Operation is not supported.
  at ICSharpCode.NRefactory.TypeSystem.CecilLoader+BlobReader.ReadNamedArg (IType attributeType) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.DecodeBlob (System.Collections.Generic.List`1 positionalArguments, System.Collections.Generic.List`1 namedArguments) [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.DecodeBlob () [0x00000] in <filename unknown>:0 
  at ICSharpCode.NRefactory.TypeSystem.CecilLoader+CecilResolvedAttribute.get_PositionalArguments () [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.GetPersistenceMode (IProperty prop) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.AddControlMembers (MonoDevelop.Ide.CodeCompletion.CompletionDataList list, IType controlClass, System.Collections.Generic.Dictionary`2 existingAtts) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.AddAspAttributeCompletionData (MonoDevelop.Ide.CodeCompletion.CompletionDataList list, XName name, System.Collections.Generic.Dictionary`2 existingAtts) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.GetAttributeCompletions (IAttributedXObject attributedOb, System.Collections.Generic.Dictionary`2 existingAtts) [0x00000] in <filename unknown>:0 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Boolean forced, System.Int32& triggerWordLength) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Boolean forced, System.Int32& triggerWordLength) [0x00000] in <filename unknown>:0 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, System.Int32& triggerWordLength) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, System.Int32& triggerWordLength) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.XmlEditor.Gui.BaseXmlEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in <filename unknown>:0 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00000] in <filename unknown>:0
Comment 3 Mike Krüger 2012-07-03 03:09:51 UTC
fixed.