Re: [Qt-creator] What makes a message a "Compile Error"

2018-03-06 Thread Tobias Hunger
Hi Michael,

On Tue, Mar 6, 2018 at 2:34 PM, Michael Jackson  
wrote:
> I'm using Qt classes, we compile on Linux (GCC), macOS (clang) and Windows 
> (VS 2015/2017). We use C++ and CMake for the build system. The part that 
> throws a false positive is a custom build step where we call "cmake -P" to 
> load another generated script. It is that script that puts out the error 
> messages. I used to have the absolute path to the CMake script file as part 
> of the output but that seemed to trigger the error. Now I just put "MKDOCS: 
> Something happened" and that seems to not trigger the error messages.
>
> Could you point me to the regex expressions? I don't really have the source 
> for QtCreator up and compiling at the moment.

Sure. These should cover most of them:

https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/qtsupport/qtparser.cpp
https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/projectexplorer/gccparser.cpp
https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/projectexplorer/gnumakeparser.cpp
https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/projectexplorer/ldparser.cpp
https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/projectexplorer/osparser.cpp
https://code.qt.io/cgit/qt-creator/qt-creator.git/tree/src/plugins/cmakeprojectmanager/cmakeparser.cpp

Best Regards,
Tobias

--
Tobias Hunger, Senior Software Engineer | The Qt Company
The Qt Company GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Mika Harjuaho. Sitz der
Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] What makes a message a "Compile Error"

2018-03-06 Thread Michael Jackson
-Original Message-
From: Tobias Hunger <tobias.hun...@gmail.com>
Date: Tuesday, March 6, 2018 at 8:02 AM
To: Michael Jackson <mike.jack...@bluequartz.net>
Cc: qt-creator <qt-creator@qt-project.org>
Subject: Re: [Qt-creator] What makes a message a "Compile Error"

On Tue, Mar 6, 2018 at 1:41 PM, Michael Jackson
<mike.jack...@bluequartz.net> wrote:
> As part of our build we execute a few external programs that create 
output. It seems that QtCreator seems to think that these messages are errors 
even though they are not.

Creator uses classes derived from IOutputParser to decide what to list
in the issues tab.

> Is there a specific pattern that we can use in our output messages so 
that QtCreator can interpret them correctly?

Lot's of them:-) All nicely defined in lots of RegExps.

The actual patterns used do depend a lot on your project though:
Creator uses a list of IOutputParsers and feeds all stdout/stderr text
from the build process through the chain of parsers.

The actual parsers in the chain do depend on OS, build system used,
compiler selected, whether you use Qt or not and probably some more
factors:-)

> Sometime those programs actually _do_ error out and we want those errors 
to show up in QtCreator's error list.

You will need to add another outputparser to the chain then or extend
an existing parser to match the messages you want.

I am happy to add more patterns, provided they are generally
applicable of course and that somebody provides the necessary test
data (the actual error messages and whether those come from stdout or
stderr).

Best Regards,
Tobias


I'm using Qt classes, we compile on Linux (GCC), macOS (clang) and Windows (VS 
2015/2017). We use C++ and CMake for the build system. The part that throws a 
false positive is a custom build step where we call "cmake -P" to load another 
generated script. It is that script that puts out the error messages. I used to 
have the absolute path to the CMake script file as part of the output but that 
seemed to trigger the error. Now I just put "MKDOCS: Something happened" and 
that seems to not trigger the error messages.

Could you point me to the regex expressions? I don't really have the source for 
QtCreator up and compiling at the moment.

--
Michael Jackson | Owner, President
  BlueQuartz Software
[e] mike.jack...@bluequartz.net
[w] www.bluequartz.net


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


Re: [Qt-creator] What makes a message a "Compile Error"

2018-03-06 Thread Tobias Hunger
On Tue, Mar 6, 2018 at 1:41 PM, Michael Jackson
 wrote:
> As part of our build we execute a few external programs that create output. 
> It seems that QtCreator seems to think that these messages are errors even 
> though they are not.

Creator uses classes derived from IOutputParser to decide what to list
in the issues tab.

> Is there a specific pattern that we can use in our output messages so that 
> QtCreator can interpret them correctly?

Lot's of them:-) All nicely defined in lots of RegExps.

The actual patterns used do depend a lot on your project though:
Creator uses a list of IOutputParsers and feeds all stdout/stderr text
from the build process through the chain of parsers.

The actual parsers in the chain do depend on OS, build system used,
compiler selected, whether you use Qt or not and probably some more
factors:-)

> Sometime those programs actually _do_ error out and we want those errors to 
> show up in QtCreator's error list.

You will need to add another outputparser to the chain then or extend
an existing parser to match the messages you want.

I am happy to add more patterns, provided they are generally
applicable of course and that somebody provides the necessary test
data (the actual error messages and whether those come from stdout or
stderr).

Best Regards,
Tobias
___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator


[Qt-creator] What makes a message a "Compile Error"

2018-03-06 Thread Michael Jackson
As part of our build we execute a few external programs that create output. It 
seems that QtCreator seems to think that these messages are errors even though 
they are not. Is there a specific pattern that we can use in our output 
messages so that QtCreator can interpret them correctly? Sometime those 
programs actually _do_ error out and we want those errors to show up in 
QtCreator's error list.

Thanks
--
Michael Jackson | Owner, President
  BlueQuartz Software
[e] mike.jack...@bluequartz.net
[w] www.bluequartz.net


___
Qt-creator mailing list
Qt-creator@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qt-creator