aBothe/Mono-D — Issue #54: Text Editor error on enter key after module.
Author: jtierney
Created: 2012-02-06 18:51:56+00:00
State: open

I have entered a module command in a source file. But upon trying to hit enter to go to a new line i get:

Error in text editor extension chain:

System.IndexOutOfRangeException: Array index is out of range.
at D_Parser.Resolver.CaretContextAnalyzer.GetTokenContext (System.String Text, Int32 Offset, System.Int32& lastBeginOffset, System.Int32& lastEndOffset) [0x00000] in :0
at MonoDevelop.D.Formatting.DTextEditorIndentation.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in :0
at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/jmtierne/Sandbox/monodevelop-2.8.5.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115
at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0005a] in /home/jmtierne/Sandbox/monodevelop-2.8.5.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:94
at MonoDevelop.D.DEditorCompletionExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00000] in :0
at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/jmtierne/Sandbox/monodevelop-2.8.5.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115
at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/jmtierne/Sandbox/monodevelop-2.8.5.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115
at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/jmtierne/Sandbox/monodevelop-2.8.5.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115
at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00013] in /home/jmtierne/Sandbox/monodevelop-2.8.5.1/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:115
at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00000] in /home/jmtierne/Sandbox/monodevelop-2.8.5.1/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:230