[Qt-creator] compile_commands.json - unable to build when switching between build configurations

Christian Kandeler christian.kandeler at qt.io
Fri Sep 19 14:15:16 CEST 2025


https://codereview.qt-project.org/c/qt-creator/qt-creator/+/677309

On 9/18/25 3:19 PM, Andrzej Telszewski wrote:
> On 18/09/2025 15:06, Christian Kandeler via Qt-creator wrote:
>> On 9/18/25 2:52 PM, Andrzej Telszewski wrote:
>>> Hi,
>>>
>>> QtC version 17.0.1
>>>
>>> I'm using compile_commands.json based project.
>>>
>>> When switching the build configuration, I'm unable to build.
>>> The message says "The project could not be fully parsed."
>>
>> I cannot reproduce this. Please create a bug report with all the 
>> relevant details, ideally including a minimal test project.
>>
>>
>> Christian
>>
>
> For me it reproduces with as simple project as:
>
> echo '[]' > compile_commands.json
>
> After that, I add another build configuration.
> Then it seems I need to close QtC and open it again.
> After that, switching between configurations prevents building the one 
> that _wasn't active_ at the moment
> the project was opened.
>
> Please let me know if that's sufficient for you.
> If not, then I'll go and create the bug ticket.
>
> Thanks!
>


More information about the Qt-creator mailing list