Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Would be nice to count occurences of certain substring and output a digest #102

Open
Dmitry-Me opened this issue Dec 5, 2019 · 2 comments

Comments

@Dmitry-Me
Copy link
Contributor

@mike-ward This is to inquire if you would agree to merge such functionality into your plugin code. IMO I can craft all the necessary changes myself.

The scenario is the following: we have a build where sometimes "curious" stuff is being output or we have a debug run where a program outputs some "curious" stuff into debug output window. The "curious" stuff is such that it can be detected with a regex so the plugin can color it already. The problem is one has to scroll through the entire output to check if there's something "curious". So it'd be nice if at the end of build or debug the output pane would have a digest such as "Warning! Curious stuff found XYZ times!!!".

Here's how I would do this. I'd add a couple more "categories" such as "debug error" and "debug warning". I'd also add a new setting for every category - "how to count and build a digest on this". The setting would have three options - "don't count and output a digest" (as it works now), "count and output a digest if at least one ocurrence is found" and "count and output a digest no matter how many ocurrences were found".

@mike-ward
Copy link
Owner

That sounds like a neat idea. I've had others ask if I could filter out the "cruf" in the output window so they could see just the stuff they're interested in. However, the VS internal model does not allow removing lines from the output window.

This certainly is a step in the right direction in that it lets you know if something you're interested in has occurred.

Seems like you have a good understanding of how the code works and how it hooks into VS's category classification system, so yeah, I'm up for a pull request.

@ScottHutchinson
Copy link

I would definitely like to see a count of compiler warnings at the end of the build output, which this issue should make possible.
I'll try to contribute when I can find the time, but no guarantees.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants