Integrate gcc-9 pretty formatting of compile output into QT creator ?
-
wrote on 11 Nov 2019, 12:27 last edited by
I would like to integrate the new gcc ouput feature: -fdiagnostics-format=json.
For this I would like to redirect the gcc output to a pipe. I couldnd find a way of doing this.
The ultimate goal would be to execute the line
$ (gcc-9 -c file.c -Wall -fdiagnostics-format=json 2>&1) | python -m json.tool | pygmentize -l json
and have the output formatted (like in https://developers.redhat.com/blog/2019/03/08/usability-improvements-in-gcc-9/)Is the gcc feature too new for the current qt creator or Im missing an important qt ability to do this?
Regarrds,
-
I would like to integrate the new gcc ouput feature: -fdiagnostics-format=json.
For this I would like to redirect the gcc output to a pipe. I couldnd find a way of doing this.
The ultimate goal would be to execute the line
$ (gcc-9 -c file.c -Wall -fdiagnostics-format=json 2>&1) | python -m json.tool | pygmentize -l json
and have the output formatted (like in https://developers.redhat.com/blog/2019/03/08/usability-improvements-in-gcc-9/)Is the gcc feature too new for the current qt creator or Im missing an important qt ability to do this?
Regarrds,
@MilesQT Which Creator version do you use?
For me it already works as expected, only drawback is the output is not colored.
Regards
-
wrote on 11 Nov 2019, 15:58 last edited by
Qt Creator 4.10.0
What do you mean with "as expected" ?
How do you achieve this? Do you have screenshots?
1/3