Solved QtCreator never finishes parsing pro or source files
-
Hi and welcome to devnet,
One thing you can try is to launch Qt Creator from the command line to see if you get any message there.
-
It just forks off into the background on Windows. There is a '-block' flag but it does not help.
-
Is this a project that is accessible somewhere ?
-
@SGaist No, this is a private project :(
-
In between Qt Creator 4 RC1 has been released so it's worth a shot.
Even if private, is it a specially big project ? Uses custom commands ? Has many subdirs ?
-
@SGaist I have tried one of the previous 4.0 betas and with the RC but it's the same there.
This is a fairly large project with some custom commands, though they should only be executed when you actually invoke make.
-
What happens if you use the command line and call qmake directly ?
-
@SGaist I think it's actually stuck at the same location where QtCreator bails out. I'll run this with debugging enabled to see if I can find something. Thanks!
-
IIRC you can make it more verbose to grab more informations.
-
I think I found the problem:
DEBUG 1: V:/dev/exqbe/Application/ApplicationCore.pro:43: calling built-in $$system("date +%s")
The Windows 'date' program prints the date and then expects an input. I'll figure out another way of extracting the build date. Thanks!
-
@Marco-Nilsson said in QtCreator never finishes parsing pro or source files:
I think I found the problem:
DEBUG 1: V:/dev/exqbe/Application/ApplicationCore.pro:43: calling built-in $$system("date +%s")
The Windows 'date' program prints the date and then expects an input. I'll figure out another way of extracting the build date. Thanks!
Today I bumped with the same problem when I tried to open the project after the changes on Linux. Thank you post it help me avoid a lot of work!
But, what is are your workaround to get the current date on Windows? -
@nen777w if you'd spend another few seconds actually opening the command line and typing
date /?
you'd learn that providing/t
switch is what you need.https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/date
-
I solved it as: $$system("echo %date:~7,2%.%date:~4,2%.%date:~10,4%")