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

Environment variables no longer work in custom project .includes file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 7.0.1
    • Qt Creator 6.0.2
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 22.04
    • Linux/Wayland
    • d0a192064e (qt-creator/qt-creator/7.0) d0a192064e (qt-creator/qt-creator/master) d0a192064e (qt-creator/qt-creator/qds-3.3) d0a192064e (qt-creator/tqtc-qt-creator/7.0)

    Description

      Hello,

      I updated to QtCreator 6.0.2 yesterday (by updating to Ubuntu 22.04), and it seems that environment variables can no longer be used in the project .includes file as before. I used to add for example a line

      ${ROOTSYS}/include

      (with older versions it was $$(ROOTSYS)/include) in order for code completion to work with my code based on the ROOT framework. I don't know if the syntax has changed (I could not find any mention anywhere), but all variants of '${}', '$${}', '$()' have been tried and failed.

      Strangely, not only environment variables but also QtCreator's own variable to find the build directory, i.e.

      %{buildDir}

      no longer works in order to find the header files generated during build time.

      Both the environment variables and buildDir still work in the project build configuration, and compilation is not a problem.

      Could you help me please?

      Best regards

      Attachments

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              john.frankland John Frankland
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes