[Qt-creator] Has anyone got the new custom parsers running?

Christian Kandeler christian.kandeler at qt.io
Fri Aug 7 14:56:49 CEST 2020


On Fri, 7 Aug 2020 14:02:06 +0200
André Hartmann <andre.hartmann at iseg-hv.de> wrote:

> I've created a project with a main.cpp like that:
> 
> #include <stdio.h>
> 
> int main()
> {
> 	printf("main.cpp:5: Hello World\n");
> 	return 0;
> }
> 
> Running that gives me the following Application Output:
> 
> 13:49:52: Starting /home/user/build-Test/Test ...
> main.cpp:5: Hello World
> 13:49:52: /home/user/build-Test/Test exited with code 0
> 
> I've then added a new Custom Output Parser in Tools > Options >
> Build & Run > Custom Output Parsers with the following
> pattern: "(.*):(\d+): (.*)" (without quotes, of course), which
> passed the test text "main.cpp:5: Hello World" (without quotes) in
> the  Custom Parser dialog. Capturing stdout and stderr was both enabled.
> 
> After pressing Ok, I've run my program again, the output appeared in
> Application Output, but nothing happened in the Issues pane.
> 
> I've expected the message to appear in the Issues pane.
> 
> Is there any obvious wrong in my test?

No, and your example works for me.
Are you sure you're not filtering anything relevant? Note that custom parsers currently all have the type "compile output", even for run configurations.


Christian


More information about the Qt-creator mailing list