mike-ward / VSColorOutput

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

VSColorOutput throws unhandled exception on build #81

Closed chrisaverage closed 5 years ago

chrisaverage commented 5 years ago

I'm using VS2017 15.9.3 and VSColorOutput 2.6.1. Since one of the recent VS updates VSColorOutput throws an exception when building projects. It's not on every build and I haven't found reliable repro steps. The output seems to be colored fine though and I can close the exception prompt and continue working so not a show stopper but very annoying.

Here's the trace from the ActivityLog.xml VS produces:

System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
   at System.IO.Path.InternalGetDirectoryName(String path)
   at VSColorOutput.Output.GCCErrorList.GCCErrorGenerator.GetFileByProjectNumber(Int32 number, String filename)
   at VSColorOutput.Output.GCCErrorList.GCCErrorGenerator.AddTask(GCCErrorListItem item, TaskErrorCategory category)
   at VSColorOutput.Output.GCCErrorList.GCCErrorListOutputClassifier.GetClassificationSpans(SnapshotSpan span)
   at Microsoft.VisualStudio.Text.Classification.Implementation.ClassifierTagger.<GetTags>d__5.MoveNext()
   at Microsoft.VisualStudio.Text.Tagging.Implementation.TagAggregator`1.<GetTagsForBuffer>d__39.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.VisualStudio.Telemetry.WindowsErrorReporting.WatsonReport.GetClrWatsonExceptionInfo(Exception exceptionObject)