Bug 4276 - C# completion in ASP.NET pages is broken
Summary: C# completion in ASP.NET pages is broken
Status: VERIFIED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: C# Binding ()
Version: Trunk
Hardware: PC Mac OS
: Normal normal
Target Milestone: (C7)
Assignee: Mike Krüger
URL:
: 4843 ()
Depends on:
Blocks:
 
Reported: 2012-04-05 18:35 UTC by Mikayla Hutchinson [MSFT]
Modified: 2016-05-19 15:08 UTC (History)
3 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:
VERIFIED FIXED

Description Mikayla Hutchinson [MSFT] 2012-04-05 18:35:47 UTC
C# completion in ASP.NET pages is broken.

Error in terminal is:

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) [0x00030] 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.Predicate`1 typePred, System.Predicate`1 memberPred) [0x003b4] in /Users/michael/Mono/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:1150 
  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:1020 
  at ICSharpCode.NRefactory.CSharp.Completion.CSharpCompletionEngine.MagicKeyCompletion (Char completionChar, Boolean controlSpace) [0x015d7] in /Users/michael/Mono/monodevelop/main/contrib/ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs:778 
  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:112 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.InternalHandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, Boolean ctrlSpace, System.Int32& triggerWordLength) [0x00108] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:229 
  at MonoDevelop.CSharp.Completion.CSharpCompletionTextEditorExtension.HandleCodeCompletion (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext completionContext, Char completionChar, System.Int32& triggerWordLength) [0x00078] in /Users/michael/Mono/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp.Completion/CSharpCompletionTextEditorExtension.cs:191
Comment 1 Mike Krüger 2012-05-03 00:22:41 UTC
*** Bug 4843 has been marked as a duplicate of this bug. ***
Comment 2 PJ 2013-11-19 16:32:18 UTC
This bug was targeted for a past milestone, moving to the next active milestone.
Comment 3 Mike Krüger 2015-05-18 00:38:34 UTC
Got rewritten in the roslyn version.
Comment 4 Abhishek 2016-05-19 15:08:36 UTC
I have checked this issue with latest C7 build:
XamarinStudio-6.0.0.5165_b44eb696fa41a04696a84d6af7fed9aa494e5580. Now this issue is working fine. Here is the screencast for the same:
http://www.screencast.com/t/X12kn8eEjR. 

Hence closing this issue.

Thanks!