assert when viewing python in VS diff window


VS 2013, PTVS rolling (debug) build Jan 20, 2014.

In Source Control Explorer, Show history on visualstudio_py_debugger.py from Python_Main/Python/Product/PythonTools
Select changesets 71473 and 71456, and choose Compare from context menu
Assertion Failed: Abort=Quit, Retry=Debug, Ignore=Continue
   at Microsoft.PythonTools.Intellisense.IntellisenseController.ConnectSubjectBuffer(ITextBuffer subjectBuffer)
   at Microsoft.VisualStudio.Language.Intellisense.Implementation.IntellisenseManagerConnectionListener.SubjectBuffersConnected(IWpfTextView textView, ConnectionReason reason, Collection`1 subjectBuffers)
   at Microsoft.VisualStudio.Text.Editor.Implementation.ConnectionManager.<>c__DisplayClass19.<OnGraphBuffersChanged>b__14()
   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.CallExtensionPoint(Object errorSource, Action call)
   at Microsoft.VisualStudio.Text.Editor.Implementation.ConnectionManager.OnGraphBuffersChanged(Object sender, GraphBuffersChangedEventArgs args)
   at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)
   at Microsoft.VisualStudio.Text.Projection.Implementation.BufferGraph.GraphEventRaiser.RaiseEvent(BaseBuffer baseBuffer, Boolean immediate)
   at Microsoft.VisualStudio.......
Abort   Retry   Ignore   
Closed May 18 at 6:11 PM by huguesv


pminaev wrote Jan 22, 2014 at 10:03 PM

It might be worth trying this with a Django template, as well, on both VS 2012 (with old editor) and VS 2013 (with the new one).

Zooba wrote Aug 12, 2014 at 6:08 PM

The assertion is because we are attempting to connect a subject buffer that has already been connected and the project entries don't match. Possibly the diff window is reusing buffers, but if you ignore the assertion it seems to work correctly.