Bug 2490 - autocomplete does not properly override, and if you try to fix it is crashes
Summary: autocomplete does not properly override, and if you try to fix it is crashes
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 2.9.x
Hardware: Macintosh Mac OS
: --- critical
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2011-12-14 02:19 UTC by James Clancey
Modified: 2011-12-14 02:32 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 FIXED

Description James Clancey 2011-12-14 02:19:49 UTC
When I try and override a method it autocompletes like this.

public WillEnterForeground ( application)
		{
			// TODO: Implement - see: http://go-mono.com/docs/index.aspx?link=T%3aMonoTouch.Foundation.ModelAttribute
		}

When I try and correct it, I get this crash. If I try and correct it multiple times MonoDevelop just quits


System.InvalidCastException: Cannot cast from source type to destination type.
  at MonoDevelop.CSharp.CSharpAmbience.GetTypeReferenceString (IType reference, MonoDevelop.TypeSystem.OutputSettings settings) [0x0001a] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:352 
  at MonoDevelop.CSharp.CSharpAmbience.GetParameterString (IParameterizedMember member, IParameter parameter, MonoDevelop.TypeSystem.OutputSettings settings) [0x000f6] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:702 
  at MonoDevelop.CSharp.CSharpAmbience.AppendParameter (MonoDevelop.TypeSystem.OutputSettings settings, System.Text.StringBuilder result, IParameter parameter) [0x0009e] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:745 
  at MonoDevelop.CSharp.CSharpAmbience.AppendParameterList (System.Text.StringBuilder result, MonoDevelop.TypeSystem.OutputSettings settings, IEnumerable`1 parameterList) [0x00034] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:726 
  at MonoDevelop.CSharp.CSharpAmbience.InternalGetMethodString (IMethod method, MonoDevelop.TypeSystem.OutputSettings settings, System.String methodName, Boolean getReturnType) [0x0017f] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:530 
  at MonoDevelop.CSharp.CSharpAmbience.GetConstructorString (IMethod method, MonoDevelop.TypeSystem.OutputSettings settings) [0x00000] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/CSharpAmbience.cs:551 
  at MonoDevelop.TypeSystem.Ambience.GetString (IEntity entity, MonoDevelop.TypeSystem.OutputSettings settings) [0x00081] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/Ambience.cs:111 
  at MonoDevelop.TypeSystem.Ambience.GetString (IEntity entity, OutputFlags flags) [0x00000] in /private/tmp/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.TypeSystem/Ambience.cs:158 
  at MonoDevelop.CSharp.PathedDocumentTextEditorExtension.UpdatePath (System.Object sender, Mono.TextEditor.DocumentLocationEventArgs e) [0x00160] in /private/tmp/source/monodevelop/main/src/addins/CSharpBinding/MonoDevelop.CSharp/PathedDocumentTextEditorExtension.cs:270 
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_DocumentLocationEventArgs (object,Mono.TextEditor.DocumentLocationEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_DocumentLocationEventArgs (object,Mono.TextEditor.DocumentLocationEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_DocumentLocationEventArgs (object,Mono.TextEditor.DocumentLocationEventArgs)
  at (wrapper delegate-invoke) <Module>:invoke_void__this___object_DocumentLocationEventArgs (object,Mono.TextEditor.DocumentLocationEventArgs)
  at Mono.TextEditor.Caret.OnPositionChanged (Mono.TextEditor.DocumentLocationEventArgs args) [0x00021] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Caret.cs:266 
  at Mono.TextEditor.Caret.set_Location (DocumentLocation value) [0x00055] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Caret.cs:84 
  at Mono.TextEditor.TextViewMargin.MousePressed (Mono.TextEditor.MarginMouseEventArgs args) [0x00445] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextViewMargin.cs:1619 
  at Mono.TextEditor.TextEditor.OnButtonPressEvent (Gdk.EventButton e) [0x000a3] in /private/tmp/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditor.cs:962 
  at Gtk.Widget.buttonpressevent_cb (IntPtr widget, IntPtr evnt) [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2011-12-14 02:32:50 UTC
already fixed. (newresolver branch)