Re: ViEmu Exception
I was tweeting about this to you earlier today.
I'm getting an error in VS2010 that looks like this:
I can consistently pop the error up with the following snippet of code:
<tr></tr>
To recreate the bug:
1) Place the carrot on the < of the </tr>
2) In visual mode, hit v$x
3) Visual Studio Error comes up
I was able to recreate this bug in a .config and a .aspx file. The error does not occur in a .cs file. I'm guessing this has something to do with syntax and matching.
I turned on Visual Studio Logging using the /log parameter. I can send you the entire ActivityLog if needed, but the only error was from ViEmu. Here's the entry:
<entry>
<record>291</record>
<time>2010/06/24 22:40:26.323</time>
<type>Error</type>
<source>Editor or Editor Extension</source>
<description>System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.
Parameter name: offset
 at Microsoft.VisualStudio.Text.VirtualSnapshotPoint..ctor(ITextSnapshotLine line, Int32 offset)
 at HubTen.Conversions.VirtualSnapshotPointFromPos(ITextSnapshot qSnapshot, UInt32 line, UInt32 col)
 at HubTen.BufAccess.CalcVisualPosition(VI_TPos physical_pos)
 at nglib.StoreVirtualMotion<class nglib::wide_char_t,class nglib::RichReadTextView<class HubTen::TenCoreRTV>,struct GlobalFullPos,class nglib::wide_char_t>(RichReadTextView<HubTen::TenCoreRTV>* rtv, ViFullCommand<nglib::wide_char_t>* pfc, ViMotionResult<nglib::RichReadTextView<HubTen::TenCoreRTV>\,GlobalFullPos\,nglib::wide_char_t>* pMot)
 at nglib.ViCore<TenCoreControl>.ExecCommand<class TenOpControl<class nglib::RichReadTextView<class HubTen::TenCoreRTV>,class HubTen::TenCaretOps<class nglib::ViCore<class TenCoreControl>,struct nglib::key_dotnet> >,class HubTen::TenCaretOps<class nglib::ViCore<class TenCoreControl>,struct nglib::key_dotnet> >(ViCore<TenCoreControl>* , ViFullCommand<nglib::wide_char_t>* fc, TenOpControl<nglib::RichReadTextView<HubTen::TenCoreRTV>\,HubTen::TenCaretOps<nglib::ViCore<TenCoreControl>\,nglib::key_dotnet> >* OpControl, TenCaretOps<nglib::ViCore<TenCoreControl>\,nglib::key_dotnet>* CaretOps, Boolean doing_dot, keyqueue_t* pQueue)
 at nglib.ViCore<TenCoreControl>.CoreProcessKey<class TenOpControl<class nglib::RichReadTextView<class HubTen::TenCoreRTV>,class HubTen::TenCaretOps<class nglib::ViCore<class TenCoreControl>,struct nglib::key_dotnet> >,class HubTen::TenCaretOps<class nglib::ViCore<class TenCoreControl>,struct nglib::key_dotnet> >(ViCore<TenCoreControl>* , key_dotnet k, Boolean interactive, TenOpControl<nglib::RichReadTextView<HubTen::TenCoreRTV>\,HubTen::TenCaretOps<nglib::ViCore<TenCoreControl>\,nglib::key_dotnet> >* OpControl, TenCaretOps<nglib::ViCore<TenCoreControl>\,nglib::key_dotnet>* CaretOps, keyqueue_t* pQueue)
 at nglib.ViCore<TenCoreControl>.ProcessKeyQueue<class TenOpControl<class nglib::RichReadTextView<class HubTen::TenCoreRTV>,class HubTen::TenCaretOps<class nglib::ViCore<class TenCoreControl>,struct nglib::key_dotnet> >,class HubTen::TenCaretOps<class nglib::ViCore<class TenCoreControl>,struct nglib::key_dotnet> >(ViCore<TenCoreControl>* , TenOpControl<nglib::RichReadTextView<HubTen::TenCoreRTV>\,HubTen::TenCaretOps<nglib::ViCore<TenCoreControl>\,nglib::key_dotnet> >* OpControl, TenCaretOps<nglib::ViCore<TenCoreControl>\,nglib::key_dotnet>* CaretOps, Boolean force)
 at nglib.ViCore<TenCoreControl>.ProcessKey<class TenOpControl<class nglib::RichReadTextView<class HubTen::TenCoreRTV>,class HubTen::TenCaretOps<class nglib::ViCore<class TenCoreControl>,struct nglib::key_dotnet> >,class HubTen::TenCaretOps<class nglib::ViCore<class TenCoreControl>,struct nglib::key_dotnet> >(ViCore<TenCoreControl>* , key_dotnet k, TenOpControl<nglib::RichReadTextView<HubTen::TenCoreRTV>\,HubTen::TenCaretOps<nglib::ViCore<TenCoreControl>\,nglib::key_dotnet> >* OpControl, TenCaretOps<nglib::ViCore<TenCoreControl>\,nglib::key_dotnet>* CaretOps)
 at HubTen.Interceptor.ProcessKey(key_dotnet key)
 at HubTen.Interceptor.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandChainNode.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.CommandFilterWrapper.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.VsTextViewAdapter.Exec(Guid& pguidCmdGroup, UInt32 nCmdID, UInt32 nCmdexecopt, IntPtr pvaIn, IntPtr pvaOut)
 at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.SendCommand(Guid cmdGroup, UInt32 cmdID, Object inParam)
 at Microsoft.VisualStudio.Editor.Implementation.VsKeyboardFilter.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)</description>
</entry>