Bug 4843 - C# completion in aspx files is broken
Summary: C# completion in aspx files is broken
Status: RESOLVED DUPLICATE of bug 4276
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-05-02 18:15 UTC by Mikayla Hutchinson [MSFT]
Modified: 2012-05-03 00:22 UTC (History)
1 user (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 DUPLICATE of bug 4276

Description Mikayla Hutchinson [MSFT] 2012-05-02 18:15:04 UTC
C# completion in aspx files is broken, and control-space throws the following exception:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at MonoDevelop.Ide.TypeSystem.NetAmbience.GetTypeString (IType t, MonoDevelop.Ide.TypeSystem.OutputSettings settings) [0x00045] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/NetAmbience.cs:73 
  at MonoDevelop.Ide.TypeSystem.Ambience.GetString (IType type, MonoDevelop.Ide.TypeSystem.OutputSettings settings) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/Ambience.cs:146 
  at MonoDevelop.Ide.TypeSystem.Ambience.GetString (IType type, OutputFlags flags) [0x00000] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.TypeSystem/Ambience.cs:163 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.ICSharpCode.NRefactory.CSharp.Completion.ICompletionDataFactory.CreateTypeCompletionData (IType type, System.String shortType) [0x00056] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:544 
  at ICSharpCode.NRefactory.CSharp.Completion.CompletionDataWrapper.AddType (IType type, System.String shortType) [0x00031] in /Users/michael/Mono/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CompletionDataWrapper.cs:83 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.AddTypesAndNamespaces (ICSharpCode.NRefactory.CSharp.Completion.CompletionDataWrapper wrapper, ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver state, ICSharpCode.NRefactory.CSharp.AstNode node, System.Func`2 typePred, System.Predicate`1 memberPred, System.Action`2 callback) [0x003f6] in /Users/michael/Mono/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:1358 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.AddContextCompletion (ICSharpCode.NRefactory.CSharp.Completion.CompletionDataWrapper wrapper, ICSharpCode.NRefactory.CSharp.Resolver.CSharpResolver state, ICSharpCode.NRefactory.CSharp.AstNode node, ICSharpCode.NRefactory.CSharp.CompilationUnit unit) [0x0018b] in /Users/michael/Mono/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:1216 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.DefaultControlSpaceItems (ICSharpCode.NRefactory.CSharp.Completion.ExpressionResult xp, Boolean controlSpace) [0x00361] in /Users/michael/Mono/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:1178 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.MagicKeyCompletion (Char completionChar, Boolean controlSpace) [0x00a0c] in /Users/michael/Mono/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:644 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.GetCompletionData (Int32 offset, Boolean controlSpace) [0x00032] in /Users/michael/Mono/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:110 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.InternalHandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, Boolean ctrlSpace, System.Int32& triggerWordLength) [0x000bb] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:229 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.CodeCompletionCommand (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext) [0x00028] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:243 
  at MonoDevelop.CSharp.Completion.AspLanguageBuilder.HandlePopupCompletion (MonoDevelop.Ide.Gui.Document realDocument, MonoDevelop.AspNet.Gui.DocumentInfo info, MonoDevelop.AspNet.Gui.LocalDocumentInfo localInfo) [0x0000c] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/AspNet/AspLanguageBuilder.cs:123 
  at MonoDevelop.AspNet.Gui.AspNetEditorExtension.CodeCompletionCommand (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext) [0x0002c] in /Users/michael/Mono/monodevelop/main/src/addins/AspNet/MonoDevelop.AspNet/MonoDevelop.AspNet.Gui/AspNetEditorExtension.cs:253 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.RunCompletionCommand () [0x0006e] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:218 
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d5] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Reflection/MonoMethod.cs:226 
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Reflection/MonoMethod.cs:234 
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/corlib/System.Reflection/MethodBase.cs:96 
  at MonoDevelop.Components.Commands.CommandHandlerInfo.Run (System.Object cmdTarget, MonoDevelop.Components.Commands.Command cmd) [0x00029] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1908 
  at MonoDevelop.Components.Commands.CommandManager+<DispatchCommand>c__AnonStorey49.<>m__58 () [0x0003d] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1045 
  at MonoDevelop.Components.Commands.CommandManager.DispatchCommand (System.Object commandId, System.Object dataItem, System.Object initialTarget, CommandSource source) [0x0029e] in /Users/michael/Mono/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.Commands/CommandManager.cs:1062
Comment 1 Mike Krüger 2012-05-03 00:22:41 UTC

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