VSColorOutput icon indicating copy to clipboard operation
VSColorOutput copied to clipboard

The summary is not colored red when a project failed

Open buckleyGI opened this issue 7 years ago • 3 comments

As can be seen in this screenshot

image

The last line is colored green. Is this intentional? I would think to color it red if a project failed.

I dove in the regexes to tweak it but did no succeed. Is this a bug or by design?

As to ignore the RoboCopy summary report in red (nothing failed so its a false positive)

Bit off topic but to let VsColorOuput ignore replace (\W|^)(error|fail|failed|exception)[^\w.] with (\W|^)(error|fail|failed|exception)(?! Extras)[^\w.]

buckleyGI avatar Apr 18 '17 12:04 buckleyGI

Thanks for the update. The irony here is I wrote a product that relies on regular expressions and I totally suck at regular expressions.

mike-ward avatar Apr 18 '17 13:04 mike-ward

I'm a regex hero :D Which regex needs to be modified of the 10+ or so? The problem was that I did not find the regex that colors the "==============" summary green (and should be red)

buckleyGI avatar Apr 19 '17 08:04 buckleyGI

I'm using the C++ compiler. Regex 4 should be : "0 failed",BuildHead,True instead of : "0 failed|succeded",BuildHead,True Then You also need a new Regex in position 5 which is: "========== Build., [1-9]\d failed,.*",LogError,True

robert-andrzejuk avatar Sep 19 '18 20:09 robert-andrzejuk