Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-13567

Include autocomplete list cuts off first letter of items in include list in CMake projects

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 3.3.1
    • Qt Creator 3.0.1, Qt Creator 3.3.0-rc1
    • None
    • Ubuntu 14.04 native install and on VM of 14.04 running on VMWare Player in Windows 7.

    Description

      Description:
      If a source or header is created in a CMake project without adding the file to CMakeLists.txt, the autocomplete dropdown for includes cuts off the first letter of all items in the list. This is not just a graphical error, as the list gets reordered according to the incorrect names (Such as "X11" being at the top due to being only "11"). Also, adding the selected include will insert the incorrect name into the include statement. Problem subsides if source or header is added to CMakeLists.txt.

      Steps to reproduce:
      1. Open Qt Creator.
      2. Create CMake project.
      3. File > New file or project... > C++ > C++ [something] > Choose... > Finish creation
      4. Type "#include <" with no quotes
      5. List is incorrect.

      Notes:
      Git was used with project, but seems to be irrelevant.
      Does not happen with QMake.
      Seems to also happen if completely unrelated source is opened while a CMake project is open.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kosjar Nikolai Kosjar
            mcieslinski Michael R Cieslnski, Jr.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes