Bug 39083 - Xamarin Studio 6 crashes after activating "Automatically insert punctuation" in XML editor
Summary: Xamarin Studio 6 crashes after activating "Automatically insert punctuation" ...
Status: RESOLVED DUPLICATE of bug 38986
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: XML Editor ()
Version: 6.0.0 (C7)
Hardware: PC Mac OS
: --- normal
Target Milestone: master
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-02-24 08:06 UTC by Abdullah Ibn Nadjo
Modified: 2016-02-24 09:47 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 DUPLICATE of bug 38986

Description Abdullah Ibn Nadjo 2016-02-24 08:06:27 UTC
Steps to Reproduce :
1) Activate "Text Editor" -> "Behavior" -> "XML" -> "Automatically insert punctuation" option

2) Start typing a XML attribute in a XAML file, then enter for auto-completion, then it's impossible to use the keyboard anymore (when typing, nothing happens), and if you press an arrow key, Xamarin Studio crashes after having displayed "A fatal error has occurred, details of this error have been automatically sent to Xamarin for analysis. Xamarin Studio will now close.".


Xamarin Studio 6.0 (Build 4520) - OSX 10.11.3
Comment 1 Matt Ward 2016-02-24 09:47:18 UTC
This has been fixed. With 6.0 build 4520 you see the following error in the IDE log when you try to type into an attribute value.

An unhandled exception has occured. Terminating Xamarin Studio? False
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Session not yet started.
   at MonoDevelop.Ide.Editor.EditSession.CheckIsValid() in C:\Users\builder\data\lanes\88\a354b2cb\source\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Editor\EditSession.cs:line 74
   at MonoDevelop.Ide.Editor.SkipCharSession.BeforeType(Char ch, Boolean& handledCommand) in C:\Users\builder\data\lanes\88\a354b2cb\source\monodevelop\main\src\core\MonoDevelop.Ide\MonoDevelop.Ide.Editor\EditSession.cs:line 153
   at MonoDevelop.SourceEditor.ExtensibleTextEditor.OnIMProcessedKeyPressEvent(Key key, UInt32 ch, ModifierType state) in C:\Users\builder\data\lanes\88\a354b2cb\source\monodevelop\main\src\addins\MonoDevelop.SourceEditor2\MonoDevelop.SourceEditor\ExtensibleTextEditor.cs:line 354
   at Mono.TextEditor.TextArea.IMCommit(Object sender, CommitArgs ca) in C:\Users\builder\data\lanes\88\a354b2cb\source\monodevelop\main\src\core\Mono.Texteditor\Mono.TextEditor\Gui\TextArea.cs:line 617

I tested a slightly later build 4571 and this problem does not occur.

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