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.7k 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.
  • M Offline
    M Offline
    Mucip
    wrote on 6 Oct 2019, 19:54 last edited by Mucip 10 Jun 2019, 19:58
    #1

    Hi,
    I update Qt Creator 4.10.0 which is based on Qt 5.13.1 on Debian Stretch.
    But code completion is not working now!
    And also when I press . (point) it doesn't change to "->" !

    How can I fix it?...

    Regards,
    Mucip:)

    1 Reply Last reply
    2
    • A Offline
      A Offline
      A.A.SEZEN
      wrote on 7 Oct 2019, 03:54 last edited by
      #2

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

      1 Reply Last reply
      8
      • M Offline
        M Offline
        Mucip
        wrote on 7 Oct 2019, 09:57 last edited by
        #3

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

        Regardsi
        Mucip:)

        A 1 Reply Last reply 7 Oct 2019, 10:19
        1
        • M Mucip
          7 Oct 2019, 09:57

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

          Regardsi
          Mucip:)

          A Offline
          A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on 7 Oct 2019, 10:19 last edited by aha_1980 10 Aug 2019, 11:22
          #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 Offline
            A Offline
            A.A.SEZEN
            wrote on 7 Oct 2019, 10:27 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.

            A 1 Reply Last reply 7 Oct 2019, 11:46
            1
            • A A.A.SEZEN
              7 Oct 2019, 10:27

              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.

              A Offline
              A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on 7 Oct 2019, 11:46 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.

              M 1 Reply Last reply 29 Jul 2023, 09:35
              0
              • A Offline
                A Offline
                A.A.SEZEN
                wrote on 8 Oct 2019, 04:14 last edited by A.A.SEZEN 10 Aug 2019, 04:17
                #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

                A J 2 Replies Last reply 8 Oct 2019, 05:26
                0
                • A A.A.SEZEN
                  8 Oct 2019, 04:14

                  @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

                  A Offline
                  A Offline
                  aha_1980
                  Lifetime Qt Champion
                  wrote on 8 Oct 2019, 05:26 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 Offline
                    A Offline
                    A.A.SEZEN
                    wrote on 8 Oct 2019, 06:56 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.

                    A 1 Reply Last reply 8 Oct 2019, 07:57
                    0
                    • A A.A.SEZEN
                      8 Oct 2019, 06:56

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

                      A Offline
                      A Offline
                      aha_1980
                      Lifetime Qt Champion
                      wrote on 8 Oct 2019, 07:57 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 Offline
                        A Offline
                        A.A.SEZEN
                        wrote on 8 Oct 2019, 08:54 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.

                        A 1 Reply Last reply 8 Oct 2019, 09:04
                        0
                        • A A.A.SEZEN
                          8 Oct 2019, 08:54

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

                          A Offline
                          A Offline
                          aha_1980
                          Lifetime Qt Champion
                          wrote on 8 Oct 2019, 09:04 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 Offline
                            A Offline
                            A.A.SEZEN
                            wrote on 8 Oct 2019, 10:10 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

                            M 1 Reply Last reply 29 Jul 2023, 07:42
                            0
                            • A Offline
                              A Offline
                              A.A.SEZEN
                              wrote on 8 Oct 2019, 10:13 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.A.SEZEN
                                8 Oct 2019, 10:10

                                @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

                                M Offline
                                M Offline
                                Mehrshad
                                wrote on 29 Jul 2023, 07:42 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 29 Jul 2023, 07:43
                                • A aha_1980
                                  7 Oct 2019, 11:46

                                  @A-A-SEZEN

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

                                  M Offline
                                  M Offline
                                  Mehrshad
                                  wrote on 29 Jul 2023, 09:35 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.A.SEZEN
                                    8 Oct 2019, 04:14

                                    @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

                                    J Offline
                                    J Offline
                                    JonB
                                    wrote on 29 Jul 2023, 09:47 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.

                                    M 1 Reply Last reply 29 Jul 2023, 10:10
                                    0
                                    • J JonB
                                      29 Jul 2023, 09:47

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

                                      M Offline
                                      M Offline
                                      Mehrshad
                                      wrote on 29 Jul 2023, 10:10 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