{"comment":{"created_at":"2011-10-19T21:31:53Z","body":"Thanks for the detailed entry.  I tried reproing this myself for a bit with no luck.  But the stack traces are enough to help track down the problem.\r\n\r\nThe first exception is interesting.  It looks like a custom implementation of ICompletionSession is null refing instead of returning an empty collection.  Do you have anything other plugin's on the machine?\r\n\r\nSecond exception looks to just be my fault.  Should be a straight forward fix.  ","updated_at":"2011-10-19T21:31:53Z","url":"https://api.github.com/repos/jaredpar/VsVim/issues/comments/2461524","id":2461524,"user":{"avatar_url":"https://secure.gravatar.com/avatar/529ba429a58902bef56c2fcb672d5ccb?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"529ba429a58902bef56c2fcb672d5ccb","url":"https://api.github.com/users/jaredpar","id":146967,"login":"jaredpar"}},"action":"created","issue":{"number":671,"created_at":"2011-10-19T19:12:46Z","pull_request":{"diff_url":null,"patch_url":null,"html_url":null},"body":"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:\r\n\r\n      <entry>\r\n        <record>674</record>\r\n        <time>2011/10/19 05:02:28.913</time>\r\n        <type>Error</type>\r\n        <source>Editor or Editor Extension</source>\r\n        <description>System.NullReferenceException: Object reference not set to an instance of an object.\r\n       at Microsoft.VisualStudio.Language.Intellisense.Implementation.CompletionSession.get_CompletionSets()\r\n       at Vim.UI.Wpf.Implementation.WordCompletionSessionFactoryService.Vim.IWordCompletionSessionFactoryService.CreateWordCompletionSession(ITextView textView, SnapshotSpan wordSpan, IEnumerable`1 wordCollection, Boolean isForward)\r\n       at Vim.Modes.Insert.InsertMode.StartWordCompletionSession(Boolean isForward)\r\n       at Vim.Modes.Insert.InsertMode.ProcessWordCompletionNext()\r\n       at &lt;StartupCode$Vim-Core&gt;.$Modes_Insert_InsertMode.oldCommands@90-4.Invoke(Unit unitVar)\r\n       at &lt;StartupCode$Vim-Core&gt;.$VimBuffer.doProcess@243.Invoke(KeyInput keyInput)\r\n       at Microsoft.FSharp.Collections.IEnumerator.map@109.DoMoveNext(b&amp; )\r\n       at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()\r\n       at Vim.SeqUtil.last[a](IEnumerable`1 s)\r\n       at Vim.VimBuffer.Process(KeyInput keyInput)\r\n       at Vim.VimBuffer.Vim-IVimBuffer-Process(KeyInput keyInput)\r\n       at Vim.UI.Wpf.KeyProcessor.TryProcessAsCommand(KeyInput keyInput)\r\n       at VsVim.VsKeyProcessor.TryProcessAsCommand(KeyInput keyInput)\r\n       at Vim.UI.Wpf.KeyProcessor.KeyDown(KeyEventArgs args)\r\n       at VsVim.VsKeyProcessor.KeyDown(KeyEventArgs args)\r\n       at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.&lt;DispatchKeyEvents&gt;b__c(KeyProcessor p, KeyEventArgs args)\r\n       at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.&lt;&gt;c__DisplayClass1e`1.&lt;Dispatch&gt;b__1a()\r\n       at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)</description>\r\n      </entry>\r\n      <entry>\r\n        <record>675</record>\r\n        <time>2011/10/19 18:57:59.600</time>\r\n        <type>Error</type>\r\n        <source>Editor or Editor Extension</source>\r\n        <description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.\r\n        Parameter name: end\r\n       at Microsoft.VisualStudio.Text.SnapshotSpan..ctor(SnapshotPoint start, SnapshotPoint end)\r\n       at &lt;StartupCode$Vim-Core&gt;.$MotionUtil.forward@1343(MotionUtil x, Char c, Int32 count, Unit unitVar0)\r\n       at Vim.MotionUtil.CharSearchCore(Char c, Int32 count, CharSearchKind charSearch, Path direction)\r\n       at Vim.MotionUtil.CharSearch(Char c, Int32 count, CharSearchKind charSearch, Path direction)\r\n       at Vim.MotionUtil.GetMotion(Motion motion, MotionArgument motionArgument)\r\n       at Vim.MotionUtil.Vim-IMotionUtil-GetMotion(Motion motion, MotionArgument motionArgument)\r\n       at Vim.CommandUtil.MoveCaretToMotion(Motion motion, FSharpOption`1 count)\r\n       at Vim.CommandUtil.RunNormalCommand(NormalCommand command, CommandData data)\r\n       at Vim.CommandRunner.Run(KeyInput ki)\r\n       at Vim.CommandRunner.Vim-ICommandRunner-Run(KeyInput ki)\r\n       at &lt;StartupCode$Vim-Core&gt;.$Modes_Normal_NormalMode.run@250(NormalMode this, KeyInput ki, Unit unitVar0)\r\n       at Vim.Modes.Normal.NormalMode.ProcessCore(KeyInput ki)\r\n       at Vim.Modes.Normal.NormalMode.Vim-IMode-Process(KeyInput ki)\r\n       at &lt;StartupCode$Vim-Core&gt;.$VimBuffer.doProcess@243.Invoke(KeyInput keyInput)\r\n       at Microsoft.FSharp.Collections.IEnumerator.map@109.DoMoveNext(b&amp; )\r\n       at Microsoft.FSharp.Collections.IEnumerator.MapEnumerator`1.System-Collections-IEnumerator-MoveNext()\r\n       at Vim.SeqUtil.last[a](IEnumerable`1 s)\r\n       at Vim.VimBuffer.Process(KeyInput keyInput)\r\n       at Vim.VimBuffer.Vim-IVimBuffer-Process(KeyInput keyInput)\r\n       at Vim.UI.Wpf.KeyProcessor.TryProcess(KeyInput keyInput)\r\n       at VsVim.VsKeyProcessor.TryProcess(KeyInput keyInput)\r\n       at Vim.UI.Wpf.KeyProcessor.TextInput(TextCompositionEventArgs args)\r\n       at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.&lt;DispatchTextInputEvents&gt;b__0(KeyProcessor p, TextCompositionEventArgs args)\r\n       at Microsoft.VisualStudio.Text.Editor.Implementation.KeyProcessorDispatcher.&lt;&gt;c__DisplayClass1e`1.&lt;Dispatch&gt;b__1a()\r\n       at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)</description>\r\n      </entry>\r\n\r\nI 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.","comments":1,"title":"Exception thrown while using Ctrl-N","updated_at":"2011-10-19T21:31:53Z","url":"https://api.github.com/repos/jaredpar/VsVim/issues/671","id":1997403,"assignee":null,"milestone":null,"closed_at":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/7382807bfee0c35211e50da591ee579c?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"7382807bfee0c35211e50da591ee579c","url":"https://api.github.com/users/kalebpederson","id":233827,"login":"kalebpederson"},"html_url":"https://github.com/jaredpar/VsVim/issues/671","labels":[],"state":"open"},"legacy":{"issue_id":1997403,"comment_id":2461524}}