mike-ward / VSColorOutput

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

The summary is not colored red when a project failed #51

Open buckleyGI opened 7 years ago

buckleyGI commented 7 years ago

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.]

mike-ward commented 7 years ago

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

buckleyGI commented 7 years ago

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)

robert-andrzejuk commented 6 years ago

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