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. Intellisense/completion in QT Creator v2.8.1
Forum Updated to NodeBB v4.3 + New Features

Intellisense/completion in QT Creator v2.8.1

Scheduled Pinned Locked Moved Qt Creator and other tools
5 Posts 2 Posters 2.4k Views 1 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.
  • N Offline
    N Offline
    namawakame
    wrote on last edited by
    #1

    Hi,

    I've just updated from v2.6 to v2.8.1 of Qt Creator on Linux and have a problem with intellisense. This used to work fine through several versions of Qt Creator, but now it doesn't work at all for my project.

    This is just a plain C++ project. I'm using custom builds to use Makefiles (i.e. make rather than CMake).

    I've started a new project and for that, intellisense works fine, so I guess it must be something to do with the settings for the legacy project?

    I've seen some discussion on the forums regarding use of precompiled headers, but I'm not using them here. I've also seen some reports of slower indexing in the latest version but I don't think that's the issue (waited 10 minutes or so, but still no completion). This applies to all my code - i.e. it's not just failing for STL for example.

    I'm not really sure where to start with trying to diagnose this, but would be happy to try things out if somebody could get me started in the right direction.

    [I do note that I'm getting an error regarding my version of git not being new enough (now requires 1.7.2, but since I'm on ubuntu 10.04 LTS I've only got 1.7.0) - I can't imagine that this would be related to intellisense though?]

    Thanks if you can help.

    1 Reply Last reply
    0
    • N Offline
      N Offline
      namawakame
      wrote on last edited by
      #2

      Having investigated further, I've found that adding all of the relevant include paths to the project's .includes file is all that's needed to get intellisense working again.

      Obvious really - I should have tried it earlier. However this wasn't necessary in version 2.6 and previous, where it seemed to be the case that all include files that were present in the project were parsed for intellisense/completion.

      Is this a new feature of versions since v2.7 that all project paths must be added to the .includes file, regardless of whether the include file is already present in the project?

      Thanks again.

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

        Hi and welcome to devnet,

        It sounds rather like a regression, did you check the "bug report system":http://bugreports.qt-project.org to see if there is something about it ?

        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
        • N Offline
          N Offline
          namawakame
          wrote on last edited by
          #4

          Thanks for the reply. I've checked the bug report system (thanks for pointing me at it), but can't see anything that's quite the same.

          However I'm struggling to reproduce the issue with a simple example project. I've created a simple project with a local class in main.cpp and a class in an includes dir. I've also added a separate inactive project containing another class. Completion is working perfectly when using all of the classes from main without any need to add any info to the .includes file...

          The problem that I was having problems with is large-ish (100-200 files) but is otherwise structurally the same as the simple project described above (i.e. some classes in includes directories, some in a separate inactive project). So I'm not sure where to go with this. Certainly not worth posting a bug until I can narrow the problem down. I'll post back if I find anything new or if somebody can suggest anything else to try. Thanks again.

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

            It might be something related to the project size. You could try to start little and then increase the number of files/classes until you trigger the problem

            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

            • Login

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