This project is read-only.
1
Vote

Leading comma causes ArgumentOutOfRangeException

description

In VS 2012 using VSColorOutput 1.4.5 (downloaded from CodePlex), I get an ArgumentOutOfRangeException whenever I use Find In Files to search for text that begins with a leading comma. For example, searching for ",text" or ", test" will cause an error popup like:

Microsoft Visual Studio

An exception has been encountered. This may be caused by an extension.

You can get more information by examining the file 'C:\Users\XXX\AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml'.

OK

Here's the call stack from AppData\Roaming\Microsoft\VisualStudio\11.0\ActivityLog.xml:

System.ArgumentOutOfRangeException: Length cannot be less than zero.Parameter name: length
at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
at BlueOnionSoftware.FindResultsClassifier.CanSearch(SnapshotSpan span)
at BlueOnionSoftware.FindResultsClassifier.GetClassificationSpans(SnapshotSpan span)
at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.<GetTags>d__0.MoveNext()
at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__16.MoveNext()

comments