jaredpar/VsVim — Issue #671: Exception thrown while using Ctrl-N
Author: kalebpederson
Created: 2011-10-19 19:12:46+00:00
State: open

I was writing some javascript last night and an exception was thrown when I hit `Ctrl-N`. Here's the entry from the activity log, though slightly more nicely formatted:

674
2011/10/19 05:02:28.913
Error
Editor or Editor Extension
System.NullReferenceException: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.get_CompletionSets()
at Vim.UI.Wpf.Implementation.WordCompletionSessionFactoryService.Vim.IWordCompletionSessionFactoryService.CreateWordCompletionSession(ITextView textView, SnapshotSpan wordSpan, IEnumerable`1 wordCollection, Boolean isForward)
at Vim.Modes.Insert.InsertMode.StartWordCompletionSession(Boolean isForward)
at Vim.Modes.Insert.InsertMode.ProcessWordCompletionNext()
at <StartupCode$Vim-Core>.$Modes_Insert_InsertMode.oldCommands@90-4.Invoke(Unit unitVar)
at <StartupCode$Vim-Core>.$VimBuffer.doProcess@243.Invoke(KeyInput keyInput)
at Microsoft.FSharp.Collections.IEnumerator.map@109.DoMoveNext(b& )
at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
at Vim.SeqUtil.last[a](IEnumerable`1 s)
at Vim.VimBuffer.Process(KeyInput keyInput)
at Vim.VimBuffer.Vim-IVimBuffer-Process(KeyInput keyInput)
at Vim.UI.Wpf.KeyProcessor.TryProcessAsCommand(KeyInput keyInput)
at VsVim.VsKeyProcessor.TryProcessAsCommand(KeyInput keyInput)
at Vim.UI.Wpf.KeyProcessor.KeyDown(KeyEventArgs args)
at VsVim.VsKeyProcessor.KeyDown(KeyEventArgs args)
at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<DispatchKeyEvents>b__c(KeyProcessor p, KeyEventArgs args)
at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass1e`1.<Dispatch>b__1a()
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)

675
2011/10/19 18:57:59.600
Error
Editor or Editor Extension
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: end
at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(SnapshotPoint start, SnapshotPoint end)
at <StartupCode$Vim-Core>.$MotionUtil.forward@1343(MotionUtil x, Char c, Int32 count, Unit unitVar0)
at Vim.MotionUtil.CharSearchCore(Char c, Int32 count, CharSearchKind charSearch, Path direction)
at Vim.MotionUtil.CharSearch(Char c, Int32 count, CharSearchKind charSearch, Path direction)
at Vim.MotionUtil.GetMotion(Motion motion, MotionArgument motionArgument)
at Vim.MotionUtil.Vim-IMotionUtil-GetMotion(Motion motion, MotionArgument motionArgument)
at Vim.CommandUtil.MoveCaretToMotion(Motion motion, FSharpOption`1 count)
at Vim.CommandUtil.RunNormalCommand(NormalCommand command, CommandData data)
at Vim.CommandRunner.Run(KeyInput ki)
at Vim.CommandRunner.Vim-ICommandRunner-Run(KeyInput ki)
at <StartupCode$Vim-Core>.$Modes_Normal_NormalMode.run@250(NormalMode this, KeyInput ki, Unit unitVar0)
at Vim.Modes.Normal.NormalMode.ProcessCore(KeyInput ki)
at Vim.Modes.Normal.NormalMode.Vim-IMode-Process(KeyInput ki)
at <StartupCode$Vim-Core>.$VimBuffer.doProcess@243.Invoke(KeyInput keyInput)
at Microsoft.FSharp.Collections.IEnumerator.map@109.DoMoveNext(b& )
at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()
at Vim.SeqUtil.last[a](IEnumerable`1 s)
at Vim.VimBuffer.Process(KeyInput keyInput)
at Vim.VimBuffer.Vim-IVimBuffer-Process(KeyInput keyInput)
at Vim.UI.Wpf.KeyProcessor.TryProcess(KeyInput keyInput)
at VsVim.VsKeyProcessor.TryProcess(KeyInput keyInput)
at Vim.UI.Wpf.KeyProcessor.TextInput(TextCompositionEventArgs args)
at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<DispatchTextInputEvents>b__0(KeyProcessor p, TextCompositionEventArgs args)
at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.<>c__DisplayClass1e`1.<Dispatch>b__1a()
at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)

I have the file I was working on in close to the same state it was in last night, so let me know if you need anything else.