Skip to content

Colour of warning messages #10306

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

Open
HAJM opened this issue Jun 3, 2020 · 2 comments
Open

Colour of warning messages #10306

HAJM opened this issue Jun 3, 2020 · 2 comments
Labels
Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix)

Comments

@HAJM
Copy link

HAJM commented Jun 3, 2020

Would it be possible to make the colour of warning messages different from the colour of error messages? Say yellow instead of red. I often get warnings about things in third party libraries that don't prevent them from working ok, but because they look the same as errors as they flash past me on the screen, I have to scroll back and look at them. I know this is not a big problem, but if it was easy to fix in the next release, that would be nice.

@per1234 per1234 added Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix) labels Jun 5, 2020
@feikname
Copy link
Contributor

feikname commented Jun 9, 2020

Also mentioned in #7451 (different issue though, so this should remain open)

matthijskooijman said in #7451 (comment) that "The problem there is that it is hard to reliably decide whether something is an error, warning, etc." since everything is printed to stderr.

I think then perhaps an alternative could be made: (i'm no expert in GGC internals this could be a bad suggestion)

  • Add a more heavyweight compile option for debugging purposes which compiles the code two times (the second time preferably with some kind of cache if possible)
  1. Compile with warnings disabled
  2. Compile again, with warnings enabled
  3. Do the stderr diff and you know which ones are warnings (or non-errors at least?) reliably.

This would be only for GGC cores of course, and more generic and easier to maintain than regexes at least. Perhaps regexes are actually better? https://gcc.gnu.org/onlinedocs/gcc-10.1.0/gcc/Warnings-and-Errors.html says warnings include the text warning: to distinguish them from error messages, so a regex should actually be pretty easy i think?

The heavyweight compile option could be triggered by clicking Shift+Compile or something of the sort. Maybe a preferences option also.


Or now that I think about it, since the problems is third-party library warnings maybe add preference to disable warning output for library files?

@per1234
Copy link
Collaborator

per1234 commented Oct 5, 2020

since the problems is third-party library warnings maybe add preference to disable warning output for library files?

Related: arduino/arduino-cli#1826

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: IDE The Arduino IDE feature request A request to make an enhancement (not a bug fix)
Projects
None yet
Development

No branches or pull requests

3 participants