mike-ward / VSColorOutput

Color highlighting to Visual Studio's Build and Debug Output Windows
MIT License
430 stars 93 forks source link

System.FormatException: Input string was not in a correct format #80

Closed gooseserbus closed 6 years ago

gooseserbus commented 6 years ago

MSVS 2017 15.9.3 VSColorOutput 2.6.1

Seems to be a similar issue to #79 but it's still happening. I can reproduce it if I hit F7 to build while already building.

System.Number.StringToNumber(string str, System.Globalization.NumberStyles options, ref System.Number.NumberBuffer number, System.Globalization.NumberFormatInfo info, bool parseDecimal) Line 1032 C#
System.Number.ParseInt32(string s, System.Globalization.NumberStyles style = Integer, System.Globalization.NumberFormatInfo info) Line 706  C#
VSColorOutput.Output.GCCErrorList.GCCErrorListItem.Parse(string text)   Unknown
VSColorOutput.Output.GCCErrorList.GCCErrorListOutputClassifier.GetClassificationSpans(Microsoft.VisualStudio.Text.SnapshotSpan span)    Unknown
Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.GetTags(Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection spans = {Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection}) Unknown
Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator<Microsoft.VisualStudio.Text.Tagging.IClassificationTag>.GetTagsForBuffer(System.Collections.Generic.KeyValuePair<Microsoft.VisualStudio.Text.ITextBuffer, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Tagging.ITagger<Microsoft.VisualStudio.Text.Tagging.IClassificationTag>>> bufferAndTaggers = {System.Collections.Generic.KeyValuePair<Microsoft.VisualStudio.Text.ITextBuffer, System.Collections.Generic.IList<Microsoft.VisualStudio.Text.Tagging.ITagger<Microsoft.VisualStudio.Text.Tagging.IClassificationTag>>>}, Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection snapshotSpans = {Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection}, Microsoft.VisualStudio.Text.ITextSnapshot root = {Microsoft.VisualStudio.Text.Implementation.TextSnapshot}, System.Threading.CancellationToken? cancel = null) Unknown
Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator<Microsoft.VisualStudio.Text.Tagging.IClassificationTag>.InternalGetTags(Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection snapshotSpans = {Microsoft.VisualStudio.Text.NormalizedSnapshotSpanCollection}, System.Threading.CancellationToken? cancel = null)    Unknown
Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierAggregator.InternalGetClassificationSpans(Microsoft.VisualStudio.Text.SnapshotSpan span, System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.Text.Tagging.IMappingTagSpan<Microsoft.VisualStudio.Text.Tagging.IClassificationTag>> tags)  Unknown
Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierAggregator.GetClassificationSpans(Microsoft.VisualStudio.Text.SnapshotSpan span)    Unknown
Microsoft.VisualStudio.Text.Formatting.Implementation.NormalizedSpanGenerator.CreateClassifiedRuns(Microsoft.VisualStudio.Text.SnapshotSpan span, Microsoft.VisualStudio.Text.Classification.IAccurateClassifier classifier, Microsoft.VisualStudio.Text.Classification.IClassificationFormatMap classificationFormatMap = {Microsoft.VisualStudio.Text.Classification.Implementation.ViewSpecificFormatMap}, System.Threading.CancellationToken? cancel)   Unknown
Microsoft.VisualStudio.Text.Formatting.Implementation.NormalizedSpanGenerator.Create(Microsoft.VisualStudio.Text.Formatting.ITextAndAdornmentCollection elements = Count = 1, Microsoft.VisualStudio.Text.ITextSnapshot sourceSnapshot = {Microsoft.VisualStudio.Text.Implementation.TextSnapshot}, Microsoft.VisualStudio.Text.Classification.IAccurateClassifier classifier = {Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierAggregator}, Microsoft.VisualStudio.Text.Classification.IClassificationFormatMap classificationFormatMap = {Microsoft.VisualStudio.Text.Classification.Implementation.ViewSpecificFormatMap}, System.Threading.CancellationToken? cancel)  Unknown
Microsoft.VisualStudio.Text.Formatting.Implementation.FormattedLineSource.FormatLineInVisualBuffer(Microsoft.VisualStudio.Text.ITextSnapshotLine visualLine = {Microsoft.VisualStudio.Text.Implementation.TextSnapshotLine}, System.Threading.CancellationToken? cancel)    Unknown
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.FormatSnapshotLine(Microsoft.VisualStudio.Text.ITextSnapshotLine visualLine = {Microsoft.VisualStudio.Text.Implementation.TextSnapshotLine}, System.Threading.CancellationToken? cancel)  Unknown
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.LayoutLineCache.FormatLineAndSetTransforms(Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.LayoutDescription layout = {Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.LayoutDescription}, Microsoft.VisualStudio.Text.ITextSnapshotLine visualLine, bool goingUp = false, System.Threading.CancellationToken? cancel)    Unknown
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.LayoutRemainingLines(Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.LayoutDescription layout = {Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.LayoutDescription}, System.Threading.CancellationToken? cancel, bool goingUp = false)    Unknown
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(Microsoft.VisualStudio.Text.ITextSnapshot newSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot newVisualSnapshot, Microsoft.VisualStudio.Text.SnapshotPoint anchorPosition, double verticalDistance, Microsoft.VisualStudio.Text.Editor.ViewRelativePosition relativeTo, double effectiveViewportWidth = 1300, double effectiveViewportHeight = 699, bool preserveViewportTop = true, System.Threading.CancellationToken? cancel) Unknown
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.PerformLayout(Microsoft.VisualStudio.Text.ITextSnapshot newSnapshot, Microsoft.VisualStudio.Text.ITextSnapshot newVisualSnapshot) Unknown
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshot(Microsoft.VisualStudio.Text.TextSnapshotChangedEventArgs e)   Unknown
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.AdvanceSnapshotOnUIThread(Microsoft.VisualStudio.Text.TextSnapshotChangedEventArgs e) Unknown
Microsoft.VisualStudio.Text.Editor.Implementation.WpfTextView.OnVisualBufferChanged(object sender, Microsoft.VisualStudio.Text.TextContentChangedEventArgs e)   Unknown
Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent<Microsoft.VisualStudio.Text.TextContentChangedEventArgs>(object sender = {Microsoft.VisualStudio.Text.Implementation.TextBuffer}, System.EventHandler<Microsoft.VisualStudio.Text.TextContentChangedEventArgs> eventHandlers, Microsoft.VisualStudio.Text.TextContentChangedEventArgs args = {Microsoft.VisualStudio.Text.TextContentChangedEventArgs})  Unknown
Microsoft.VisualStudio.Text.Implementation.BaseBuffer.RawRaiseEvent(Microsoft.VisualStudio.Text.TextContentChangedEventArgs args, bool immediate)   Unknown
Microsoft.VisualStudio.Text.Implementation.BaseBuffer.TextContentChangedEventRaiser.RaiseEvent(Microsoft.VisualStudio.Text.Implementation.BaseBuffer baseBuffer, bool immediate)    Unknown
Microsoft.VisualStudio.Text.Implementation.BufferGroup.RaiseEvents()    Unknown
Microsoft.VisualStudio.Text.Implementation.BufferGroup.FinishEdit() Unknown
Microsoft.VisualStudio.Text.Implementation.BaseBuffer.TextBufferEdit.Apply()    Unknown
Microsoft.VisualStudio.Editor.Implementation.TextDocData.ReplaceLinesHelper.AnonymousMethod__0()    Unknown
Microsoft.VisualStudio.Editor.Implementation.TextDocData.ReplaceLinesHelper(uint dwFlags, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, string text, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pChangedSpan)    Unknown
Microsoft.VisualStudio.Editor.Implementation.TextDocData.ReplaceLinesEx(uint dwFlags, int iStartLine, int iStartIndex, int iEndLine, int iEndIndex, System.IntPtr pszText, int iNewLen, Microsoft.VisualStudio.TextManager.Interop.TextSpan[] pChangedSpan) Unknown
gooseserbus commented 6 years ago

I'm not certain but I think the exception is not always swallowed in some cases - I get a pop-up from VS about an unhandled exception sometimes. I'm not sure if it's this issue or not.

gooseserbus commented 6 years ago

image Not sure how I can find out what caused this dialog here.

gooseserbus commented 6 years ago

Closing this, I disabled the extension and the error still occurs so it's not related.