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. Code completion is not working in QtCreator?
Forum Updated to NodeBB v4.3 + New Features

Code completion is not working in QtCreator?

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
18 Posts 5 Posters 12.6k Views 2 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.
  • A.A.SEZENA Offline
    A.A.SEZENA Offline
    A.A.SEZEN
    wrote on last edited by
    #2

    Hi,
    Remove the ClangCodeModel check from the Help-> About Plugins path, restart QtCreator and try.

    1 Reply Last reply
    8
    • MucipM Offline
      MucipM Offline
      Mucip
      wrote on last edited by
      #3

      Hi,
      Great. Works like a charm. :)
      But what is the problem with ClangCodeModel?
      Is this BUG?...

      Regardsi
      Mucip:)

      aha_1980A 1 Reply Last reply
      1
      • MucipM Mucip

        Hi,
        Great. Works like a charm. :)
        But what is the problem with ClangCodeModel?
        Is this BUG?...

        Regardsi
        Mucip:)

        aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by aha_1980
        #4

        Hi @Mucip

        But what is the problem with ClangCodeModel?

        That probably depends on your project. For me, often embedded projects fail while Desktop projects work nicely. A missing or unparseable header file is enought to kick Clang out.

        So to give a definite answer, someone has to investigate your problem in detail.

        Regards

        Edit: a collection of similar issues is https://forum.qt.io/topic/100762/qt-creator-clang-code-model-problems-collection

        Qt has to stay free or it will die.

        1 Reply Last reply
        2
        • A.A.SEZENA Offline
          A.A.SEZENA Offline
          A.A.SEZEN
          wrote on last edited by
          #5

          Hi, @aha_1980 ,
          When ClangCodeModel is active, code completion and outline do not work even in empty project. It is the same with Debian and Arch.

          aha_1980A 1 Reply Last reply
          1
          • A.A.SEZENA A.A.SEZEN

            Hi, @aha_1980 ,
            When ClangCodeModel is active, code completion and outline do not work even in empty project. It is the same with Debian and Arch.

            aha_1980A Offline
            aha_1980A Offline
            aha_1980
            Lifetime Qt Champion
            wrote on last edited by
            #6

            @A-A-SEZEN

            Have you tried starting Creator with temporary clean settings? I.e. parameter -tcs since Creator 4.9.

            Qt has to stay free or it will die.

            MehrshadM 1 Reply Last reply
            0
            • A.A.SEZENA Offline
              A.A.SEZENA Offline
              A.A.SEZEN
              wrote on last edited by A.A.SEZEN
              #7

              @aha_1980
              it does not work when it is first installed.
              Now I have started QtCreator with the -tcs parameter.
              New Project -> Widget App -> next, next, next...
              Auto complete and outline not working.

              QtCreator 4.10.0

              Operating System: Arch Linux
              KDE Plasma Version: 5.16.5
              KDE Frameworks Version: 5.62.0
              Qt Version: 5.13.1
              Kernel Version: 5.3.4-arch1-1-ARCH
              OS Type: 64-bit
              Processors: 4 × Intel® Core™ i5-2410M CPU @ 2.30GHz
              Memory: 9,7 GiB

              aha_1980A JonBJ 2 Replies Last reply
              0
              • A.A.SEZENA A.A.SEZEN

                @aha_1980
                it does not work when it is first installed.
                Now I have started QtCreator with the -tcs parameter.
                New Project -> Widget App -> next, next, next...
                Auto complete and outline not working.

                QtCreator 4.10.0

                Operating System: Arch Linux
                KDE Plasma Version: 5.16.5
                KDE Frameworks Version: 5.62.0
                Qt Version: 5.13.1
                Kernel Version: 5.3.4-arch1-1-ARCH
                OS Type: 64-bit
                Processors: 4 × Intel® Core™ i5-2410M CPU @ 2.30GHz
                Memory: 9,7 GiB

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #8

                @A-A-SEZEN

                • how did you install Creator?
                • can you compile this program successfully with -tcs?

                Regards

                Qt has to stay free or it will die.

                1 Reply Last reply
                0
                • A.A.SEZENA Offline
                  A.A.SEZENA Offline
                  A.A.SEZEN
                  wrote on last edited by
                  #9

                  @aha_1980
                  I don't compile QtCreator. I'm using system package managers. pacman, octopi, apt, muon, synaptic etc. Arch or debian.

                  aha_1980A 1 Reply Last reply
                  0
                  • A.A.SEZENA A.A.SEZEN

                    @aha_1980
                    I don't compile QtCreator. I'm using system package managers. pacman, octopi, apt, muon, synaptic etc. Arch or debian.

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #10

                    @A-A-SEZEN

                    I meant if you can compile the "New Project -> Widget App" from the Creator started with -tcs.

                    I don't compile QtCreator. I'm using system package managers. pacman, octopi, apt, muon, synaptic etc. Arch or debian.

                    Can you try the official installer from Qt? https://download.qt.io/official_releases/online_installers/

                    Creator needs a special and patches version of Clang, and the distros usually don't patch Clang. So would not be surprised if that indeed would not work.

                    Regards

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    1
                    • A.A.SEZENA Offline
                      A.A.SEZENA Offline
                      A.A.SEZEN
                      wrote on last edited by
                      #11

                      @aha_1980
                      Online installer does not work with ssl problem anyway.
                      ssl does not allow the system to delete. Even if version 1.0 is installed, it does not work when 1.1 is in the system.

                      aha_1980A 1 Reply Last reply
                      0
                      • A.A.SEZENA A.A.SEZEN

                        @aha_1980
                        Online installer does not work with ssl problem anyway.
                        ssl does not allow the system to delete. Even if version 1.0 is installed, it does not work when 1.1 is in the system.

                        aha_1980A Offline
                        aha_1980A Offline
                        aha_1980
                        Lifetime Qt Champion
                        wrote on last edited by
                        #12

                        @A-A-SEZEN Have you already rised that issue here in the forum or created a bugreport?

                        Otherwise it is unlikely to be resolved.

                        Qt has to stay free or it will die.

                        1 Reply Last reply
                        0
                        • A.A.SEZENA Offline
                          A.A.SEZENA Offline
                          A.A.SEZEN
                          wrote on last edited by
                          #13

                          @aha_1980
                          In short, no.
                          I searched and maybe found the solution you specified in the forum.
                          I thought it wasn't on other linux users. Bug report is exhausting me.
                          The source of the error is not clear either. QtCreator or plugin.
                          It was easy to find and implement the solution.
                          Regards

                          MehrshadM 1 Reply Last reply
                          0
                          • A.A.SEZENA Offline
                            A.A.SEZENA Offline
                            A.A.SEZEN
                            wrote on last edited by
                            #14

                            @aha_1980 said in Code completion is not working in QtCreator?:

                            Creator needs a special and patches version of Clang, and the distros usually don't patch Clang. So would not be surprised if that indeed would not work.

                            Thank you for this information. I have learned.
                            Regards

                            1 Reply Last reply
                            1
                            • A.A.SEZENA A.A.SEZEN

                              @aha_1980
                              In short, no.
                              I searched and maybe found the solution you specified in the forum.
                              I thought it wasn't on other linux users. Bug report is exhausting me.
                              The source of the error is not clear either. QtCreator or plugin.
                              It was easy to find and implement the solution.
                              Regards

                              MehrshadM Offline
                              MehrshadM Offline
                              Mehrshad
                              wrote on last edited by Mehrshad
                              #15

                              @A-A-SEZEN said in Code completion is not working in QtCreator?:

                              It was easy to find and implement the solution.

                              @A-A-SEZEN you mentioned you have found a solution. Could you state it here? Because I'm having the same problem.

                              1 Reply Last reply
                              0
                              • Christian EhrlicherC Christian Ehrlicher moved this topic from General and Desktop on
                              • aha_1980A aha_1980

                                @A-A-SEZEN

                                Have you tried starting Creator with temporary clean settings? I.e. parameter -tcs since Creator 4.9.

                                MehrshadM Offline
                                MehrshadM Offline
                                Mehrshad
                                wrote on last edited by
                                #16

                                @aha_1980 said in Code completion is not working in QtCreator?:

                                Have you tried starting Creator with temporary clean settings? I.e. parameter -tcs since Creator 4.9.

                                I'm facing the same problem. Could you please explain how I could use -tcs? When and where should I pass it?

                                1 Reply Last reply
                                0
                                • A.A.SEZENA A.A.SEZEN

                                  @aha_1980
                                  it does not work when it is first installed.
                                  Now I have started QtCreator with the -tcs parameter.
                                  New Project -> Widget App -> next, next, next...
                                  Auto complete and outline not working.

                                  QtCreator 4.10.0

                                  Operating System: Arch Linux
                                  KDE Plasma Version: 5.16.5
                                  KDE Frameworks Version: 5.62.0
                                  Qt Version: 5.13.1
                                  Kernel Version: 5.3.4-arch1-1-ARCH
                                  OS Type: 64-bit
                                  Processors: 4 × Intel® Core™ i5-2410M CPU @ 2.30GHz
                                  Memory: 9,7 GiB

                                  JonBJ Offline
                                  JonBJ Offline
                                  JonB
                                  wrote on last edited by JonB
                                  #17

                                  @Mehrshad said in Code completion is not working in QtCreator?:

                                  . Could you please explain how I could use -tcs? When and where should I pass it?

                                  @A-A-SEZEN said in Code completion is not working in QtCreator?:

                                  Now I have started QtCreator with the -tcs parameter.

                                  So presumably as a command line argument after the path to Qt Creator .exe.

                                  MehrshadM 1 Reply Last reply
                                  0
                                  • JonBJ JonB

                                    @Mehrshad said in Code completion is not working in QtCreator?:

                                    . Could you please explain how I could use -tcs? When and where should I pass it?

                                    @A-A-SEZEN said in Code completion is not working in QtCreator?:

                                    Now I have started QtCreator with the -tcs parameter.

                                    So presumably as a command line argument after the path to Qt Creator .exe.

                                    MehrshadM Offline
                                    MehrshadM Offline
                                    Mehrshad
                                    wrote on last edited by
                                    #18

                                    Thanks @JonB. But there's still a problem.

                                    As I am on a Mac, I cded to ~/Qt/'Qt Creator'/Contents/MacOS' and ran ./'Qt Creator' -tcs. Qt Creator opened up, with auto-completion and rest working, but when I closed the app an opened it again, no information was preserved, e.g. font size, Use FakeVim, etc.

                                    1 Reply Last reply
                                    0

                                    • Login

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