OpenCoverUI / OpenCover.UI

Visual Studio Integration to OpenCover
MIT License
77 stars 46 forks source link

Argument out of range near TextViewCoverageProviderBase.GetWordSpans #66

Closed tekkies closed 9 years ago

tekkies commented 9 years ago

I've seen this issue after using OpenCover.UI for an hour or so. I've also seen the same issue on another PC in the team on another project.

Specified argument was out of the range of valid values.
Parameter name: length
   at Microsoft.VisualStudio.Text.Span..ctor(Int32 start, Int32 length)
   at OpenCover.UI.Helper.TextViewCoverageProviderBase.AddWordSpansForSequencePointsCoveringMultipleLines(ITextSnapshot snapshot, List`1 wordSpans, SequencePoint sequencePoint, Int32 sequencePointStartLine, Int32 sequencePointEndLine, Boolean covered)
   at OpenCover.UI.Helper.TextViewCoverageProviderBase.GetWordSpans(ITextSnapshot snapshot)

Once the exception has occurred, the Menu to cover my code is greyed and I have to restart VS to get it to work again.

tekkies commented 9 years ago

It seems that this is coincidental and is handled fine.