[Qt-creator] Branch 2.6: Can't catch the moc errors

Peter Kümmel syntheticpp at gmx.net
Wed Sep 26 17:13:38 CEST 2012


On 26.09.2012 15:27, Tobias Hunger wrote:
> On 26.09.2012 14:52, Loaden wrote:
>> D:/qpSOFT/Projects/QtCreator/src/libs/qtcomponents/styleitem/qdeclarativefolderlistmodel.h(56):
>> Error: Undefined interface
>> For now QTC can't catch this error from moc.
>> I can't double-click to jump to the file and the line.
>> So, there should been some regex issue.
> Hello Loaden!
>
> Ah, now I get what you want! Why don't you file a bug report about stuff
> like that? Takes as long as writing a mail and actually gets something
> done:-)
>
> You are using ninja, aren't you? IIRC that redirect stdout to stderr,
> which does break the extraction of build issues in general.
>
> Best Regards,
> Tobias
>


It's not a redirecting problem, also the ninja build passes the line to

bool MsvcParser::processCompileLine(const QString &line)
{
     sendQueuedTask();

     if (m_compileRegExp.indexIn(line) > -1) {


But the regex doesn't match. In a qmake based build the line looks like this:

..\..\..\..\qt-creator\src\plugins\cmakeprojectmanager\cmakeeditor.h(55): Error: Undefined interface

The ninja build prints an absolute path with slashes:

E:/sandbox/creator/loaden/src/libs/utils/iwelcomepage.h(54): Error: Undefined interface


https://bugreports.qt-project.org/browse/QTCREATORBUG-7932

Peter



More information about the Qt-creator mailing list