Author Topic: Multiline Build messages  (Read 3606 times)

Offline zdena

  • Multiple posting newcomer
  • *
  • Posts: 39
Multiline Build messages
« on: December 18, 2019, 07:30:37 pm »
Hello,
my compiler (Arduino) makes warnings and errors in Build log in this way:

D:\KomplexCB\_Vysilani_100\Komplex00\Komplex00.ino:1030:31: warning: unused parameter 'timer' [-Wunused-parameter]
 int JeLetniCas(const time_t * timer, int32_t * z) {
                               ^


This is transfered to the Build messages as:

FileLineMessage
D:\KomplexCB\_Vysilani_100\Komplex00\Komplex00.ino 1030 warning: unused parameter 'timer' [-Wunused-parameter]


Is there a way to get something like this?

FileLineMessage
D:\KomplexCB\_Vysilani_100\Komplex00\Komplex00.ino 1030 warning: unused parameter 'timer' [-Wunused-parameter]
int JeLetniCas(const time_t * timer, int32_t * z) {
                              ^

Windows 10 64b
Arduino 1.8.11 with (modified) Arduino Builder 1.5.1z through (modified) C::B 17.12 32b
Occasional C(C++) hobbyist almost only for Arduino.
Czechia - please pardon my English

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Multiline Build messages
« Reply #1 on: December 19, 2019, 09:44:38 am »
Not yet, as far as I know. But we'll have to do something about these. GCC 9 is even more bonkers about the messages.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline zdena

  • Multiple posting newcomer
  • *
  • Posts: 39
Re: Multiline Build messages
« Reply #2 on: December 19, 2019, 09:43:52 pm »
Thanks for info.
Windows 10 64b
Arduino 1.8.11 with (modified) Arduino Builder 1.5.1z through (modified) C::B 17.12 32b
Occasional C(C++) hobbyist almost only for Arduino.
Czechia - please pardon my English

Offline zdena

  • Multiple posting newcomer
  • *
  • Posts: 39
Re: Multiline Build messages
« Reply #3 on: March 05, 2020, 11:04:20 pm »
Not perfect but fairly well works Output parsing regex:
Code
(^[ \t]+.+)

The line with code and the line with the arrow are indented with spaces (usually) and the messages from builder (compiler) start immediately.
« Last Edit: March 06, 2020, 09:49:09 am by zdena »
Windows 10 64b
Arduino 1.8.11 with (modified) Arduino Builder 1.5.1z through (modified) C::B 17.12 32b
Occasional C(C++) hobbyist almost only for Arduino.
Czechia - please pardon my English