[Development] Bug in either moc or VS Tools

Miguel Costa miguel.costa at qt.io
Fri May 15 12:39:09 CEST 2020

I confirm, the problem is in the Qt VS Tools extension.
I've opened an issue for this in Jira: https://bugreports.qt.io/browse/QTVSADDINBUG-776

The problem is caused by paths always being quoted when they're used as arguments to moc.
If paths already contain quotes, this generates an incorrect set of args and leads to the reported error.

Workaround is to remove quotes from paths used in Additional Include Directories.

--Miguel Costa
Software Engineer

The Qt Company GmbH
Erich-Thilo-Straße 10
D-12489 Berlin
Geschäftsführer: Mika Pälsi,
Juha Varelius, Mika Harjuaho
Sitz der Gesellschaft: Berlin, Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

From: Development <development-bounces at qt-project.org> on behalf of Thiago Macieira <thiago.macieira at intel.com>
Sent: Thursday, May 14, 2020 9:02 PM
To: development at qt-project.org <development at qt-project.org>
Subject: Re: [Development] Bug in either moc or VS Tools

On Thursday, 14 May 2020 02:21:01 PDT David C. Partridge wrote:
> I'm not sure whether this problem is caused by a bug in moc, or a bug in VS
> Tools.
> Problem description is here:
> <https://forum.qt.io/topic/114726/bug-with-moc-parsing-of-include-directorie
> s>

It's not moc.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products

Development mailing list
Development at qt-project.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20200515/b5e80840/attachment.html>

More information about the Development mailing list