Bug 4499 - alt-backspace breaks the text editor
Summary: alt-backspace breaks the text editor
Status: RESOLVED FIXED
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: Trunk
Hardware: PC Mac OS
: High major
Target Milestone: ---
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2012-04-18 09:48 UTC by Alan McGovern
Modified: 2012-04-18 11:26 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 Alan McGovern 2012-04-18 09:48:26 UTC
1) type 'override ' in a class so the code completion context menu pops up
2) Press alt-backspace to delete the previous word

Result:

System.ArgumentException: startOffset > Length
  at Mono.TextEditor.TextDocument.GetTextAt (Int32 offset, Int32 count) [0x00062] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:276 
  at MonoDevelop.SourceEditor.SourceEditorView.GetText (Int32 startPosition, Int32 endPosition) [0x0001b] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1253 
  at MonoDevelop.Ide.CodeCompletion.ListWindow.get_PartialWord () [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWindow.cs:226 
  at MonoDevelop.Ide.CodeCompletion.ListWindow.get_CurrentPartialWord () [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWindow.cs:233 
  at MonoDevelop.Ide.CodeCompletion.ListWindow.UpdateWordSelection () [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/ListWindow.cs:452 
  at MonoDevelop.Ide.CodeCompletion.CompletionWindowManager.HideWindow () [0x00024] in /Users/alanmcgovern/Projects/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs:150 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.OnFocusOutEvent (Gdk.EventFocus evnt) [0x00000] in /Users/alanmcgovern/Projects/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:552 
  at Gtk.Widget.focusoutevent_cb (IntPtr widget, IntPtr evnt) [0x00000] in <filename unknown>:0
Comment 1 Mike Krüger 2012-04-18 11:26:07 UTC
fixed.