1

Closed

ArgumentOutOfRangeException when opening a django template

description

VS 2013, debug CL72882 (or the previous build, not exactly sure)

I opened the telemetry project, opened news/templates/news/detail.html and got an error message box about the activity log. Here's the entry:
System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values. Parameter name: index at Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection.get_Item(Int32 index) at Microsoft.VisualStudio.JSLS.TextView.TextViewFilter.CreateMappingSpan(TextSpan textSpan) at Microsoft.VisualStudio.JSLS.TextView.TextViewFilter.ExecuteBackgroundTask(TextSpan[] spans) at Microsoft.VisualStudio.JSLS.TextView.TextViewFilter.GetDataTipText(TextSpan[] spans, String& text) at Microsoft.VisualStudio.Html.Editor.HtmlTextViewFilter.GetDataTipText(TextSpan[] pSpan, String& pbstrText) at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.TryGetQuickInfoFromFilter(IQuickInfoSession session, TextSpan[] dataBufferTextSpan, String& tipText) at Microsoft.VisualStudio.Editor.Implementation.ShimQuickInfoSource.AugmentQuickInfoSession(IQuickInfoSession session, IList`1 qiContent, ITrackingSpan& applicableToSpan) at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Recalculate() at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoSession.Start() at Microsoft.VisualStudio.Language.Intellisense.Implementation.QuickInfoBroker.TriggerQuickInfo(ITextView textView, ITrackingPoint triggerPoint, Boolean trackMouse) at Microsoft.Html.Editor.HtmlQuickInfoController.OnMouseHover(Object sender, MouseHoverEventArgs e) at Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.RaiseHoverEvents()

file attachments

Closed Aug 18 at 6:20 PM by pminaev

1009628


comments

huguesv wrote Jan 28 at 10:54 PM

There might be a delay before the error occurs ie it doesn't happen immediately as you open the file. Click around a little, let it idle a bit, you'll see it eventually.

Zooba wrote Jan 29 at 2:25 AM

Presumably you have to mouse over some JavaScript in order to trigger that exception (which is coming from the JS language service, not us). Still, apparently we changed something that affects their span handling.

huguesv wrote Mar 21 at 5:01 PM

It happened again while testing the latest update 2. Attaching the activity log in case it has more useful info.

huguesv wrote Aug 12 at 9:59 PM

Still repros with VS 2013 Update 3.