1

Resolved

Activity log error - ITextSnapshot doesn't belong to the correct TextBuffer

description

I got an activity log error message box while editing my project's django urls.py.
Unhandled exception in Microsoft.PythonTools.Intellisense.TaskProvider.Refresh (c:\RollBuild\Python\Product\PythonTools\PythonTools\Intellisense\TaskProvider.cs:457) System.ArgumentException: The specified ITextSnapshot doesn't belong to the correct TextBuffer. at Microsoft.VisualStudio.Text.Implementation.TrackingSpan.GetSpan(ITextSnapshot snapshot) at Microsoft.VisualStudio.Text.Tagging.SimpleTagger`1.EndBatch() at Microsoft.VisualStudio.Text.Tagging.SimpleTagger`1.CreateTagSpan(ITrackingSpan span, T tag) at Microsoft.PythonTools.Intellisense.TaskProviderItem.<>c__DisplayClass1.<ToSquiggleFunc>b__0(SimpleTagger`1 c) at Microsoft.PythonTools.Intellisense.TaskProvider.<>c__DisplayClasse.<RefreshAsync>b__9() at Microsoft.VisualStudioTools.UIThread.InvokeAsyncHelper(Action action, TaskCompletionSource`1 tcs) --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.PythonTools.Intellisense.TaskProvider.<RefreshAsync>d__16.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.GetResult() at Microsoft.VisualStudioTools.TaskExtensions.<HandleAllExceptions>d__7.MoveNext()


System.ArgumentException: The specified ITextSnapshot doesn't belong to the correct TextBuffer. at Microsoft.VisualStudio.Text.Implementation.TrackingSpan.GetSpan(ITextSnapshot snapshot) at Microsoft.VisualStudio.Text.Tagging.SimpleTagger`1.<GetTags>d__c.MoveNext() at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__5.MoveNext()

comments