Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code completion fails when on last line #2

Open
mrward opened this issue May 8, 2016 · 0 comments
Open

Code completion fails when on last line #2

mrward opened this issue May 8, 2016 · 0 comments
Labels

Comments

@mrward
Copy link
Owner

mrward commented May 8, 2016

To reproduce:

  1. Open the paket.dependencies file.
  2. Move to the last line of the file. Create an empty line if necessary.
  3. Type in c and then press tab or enter.

Expected result:

The keyword content is completed and 'content:' is added to the file.
Nothing happens. Keywords that do not append a ':' at the end, such as nuget do work on the last line of the file. If there is another empty blank line at the end then code completion works.

In the IDE log:

Error in text editor extension chain
System.ArgumentException: offset >= TextLength
  at Mono.TextEditor.TextDocument.GetCharAt (Int32 offset) [0x0003c] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/Document/TextDocument.cs:341 
  at Mono.TextEditor.TextEditorData.GetCharAt (Int32 offset) [0x00008] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/Mono.Texteditor/Mono.TextEditor/TextEditorData.cs:1347 
  at MonoDevelop.SourceEditor.SourceEditorView.SetCompletionText (Mono.TextEditor.TextEditorData data, MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx, System.String partial_word, System.String complete_word, Int32 wordOffset) [0x0004c] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1916 
  at MonoDevelop.SourceEditor.SourceEditorView.SetCompletionText (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx, System.String partial_word, System.String complete_word, Int32 wordOffset) [0x00021] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1979 
  at MonoDevelop.SourceEditor.SourceEditorView.SetCompletionText (MonoDevelop.Ide.CodeCompletion.CodeCompletionContext ctx, System.String partial_word, System.String complete_word) [0x0000b] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/SourceEditorView.cs:1903 
  at MonoDevelop.Ide.CodeCompletion.CompletionData.InsertCompletionText (MonoDevelop.Ide.CodeCompletion.CompletionListWindow window, MonoDevelop.Ide.CodeCompletion.KeyActions& ka, Key closeChar, Char keyChar, ModifierType modifier) [0x0001b] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionData.cs:108 
  at MonoDevelop.Ide.CodeCompletion.CompletionListWindow.CompleteWord (MonoDevelop.Ide.CodeCompletion.KeyActions& ka, Key closeChar, Char keyChar, ModifierType modifier) [0x00050] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs:459 
  at MonoDevelop.Ide.CodeCompletion.CompletionListWindow.PreProcessKeyEvent (Key key, Char keyChar, ModifierType modifier) [0x00096] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionListWindow.cs:237 
  at MonoDevelop.Ide.CodeCompletion.CompletionWindowManager.PreProcessKeyEvent (Key key, Char keyChar, ModifierType modifier) [0x00048] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.CodeCompletion/CompletionWindowManager.cs:154 
  at MonoDevelop.Ide.Gui.Content.CompletionTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00010] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/CompletionTextEditorExtension.cs:94 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.Debugger.ExceptionCaughtTextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x0006a] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ExceptionCaughtDialog.cs:796 
  at MonoDevelop.Ide.Gui.Content.TextEditorExtension.KeyPress (Key key, Char keyChar, ModifierType modifier) [0x00022] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Content/TextEditorExtension.cs:109 
  at MonoDevelop.SourceEditor.ExtensibleTextEditor.ExtensionKeyPress (Key key, UInt32 ch, ModifierType state) [0x00013] in /Users/builder/data/lanes/2968/ac9b7fcb/source/monodevelop/main/src/addins/MonoDevelop.SourceEditor2/MonoDevelop.SourceEditor/ExtensibleTextEditor.cs:258 
@mrward mrward added the bug label May 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant