Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QtCreator never finishes parsing pro or source files
Forum Updated to NodeBB v4.3 + New Features

QtCreator never finishes parsing pro or source files

Scheduled Pinned Locked Moved Solved Qt Creator and other tools
14 Posts 4 Posters 4.0k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Marco NilssonM Offline
    Marco NilssonM Offline
    Marco Nilsson
    wrote on last edited by
    #1

    Whenever I open our project files in QtCreator (3.5.x or 4.0.0-beta1) in Windows the parsing never finshes and it gets stuck on "Reading Project...". I can open the project just fine in OSX and Linux, but not in Windows. Many of the source files are missing from the project tree and QtCreator never runs the TODO scanner.

    Is there any way I can enable some debugging to see what's causing QtCreator to get stuck?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • Marco NilssonM Offline
        Marco NilssonM Offline
        Marco Nilsson
        wrote on last edited by
        #3

        It just forks off into the background on Windows. There is a '-block' flag but it does not help.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Is this a project that is accessible somewhere ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          Marco NilssonM 1 Reply Last reply
          0
          • SGaistS SGaist

            Is this a project that is accessible somewhere ?

            Marco NilssonM Offline
            Marco NilssonM Offline
            Marco Nilsson
            wrote on last edited by
            #5

            @SGaist No, this is a private project :(

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              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 ?

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              Marco NilssonM 1 Reply Last reply
              0
              • SGaistS SGaist

                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 ?

                Marco NilssonM Offline
                Marco NilssonM Offline
                Marco Nilsson
                wrote on last edited by
                #7

                @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.

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  What happens if you use the command line and call qmake directly ?

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  Marco NilssonM 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    What happens if you use the command line and call qmake directly ?

                    Marco NilssonM Offline
                    Marco NilssonM Offline
                    Marco Nilsson
                    wrote on last edited by
                    #9

                    @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!

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      IIRC you can make it more verbose to grab more informations.

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      1 Reply Last reply
                      0
                      • Marco NilssonM Offline
                        Marco NilssonM Offline
                        Marco Nilsson
                        wrote on last edited by
                        #11

                        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!

                        N 1 Reply Last reply
                        0
                        • Marco NilssonM Marco Nilsson

                          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!

                          N Offline
                          N Offline
                          nen777w
                          wrote on last edited by
                          #12

                          @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?

                          artwawA 1 Reply Last reply
                          0
                          • N nen777w

                            @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?

                            artwawA Offline
                            artwawA Offline
                            artwaw
                            wrote on last edited by
                            #13

                            @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

                            For more information please re-read.

                            Kind Regards,
                            Artur

                            1 Reply Last reply
                            1
                            • N Offline
                              N Offline
                              nen777w
                              wrote on last edited by
                              #14

                              I solved it as: $$system("echo %date:~7,2%.%date:~4,2%.%date:~10,4%")

                              1 Reply Last reply
                              1

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved