1
Vote

assert when viewing python in VS diff window

description

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

Repro:
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:
---------------------------
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.......
<truncated>
---------------------------
Abort   Retry   Ignore   
---------------------------

comments

pminaev wrote Jan 22 at 11: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 at 7: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.