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

Qt Creator ignores HOME environment variable in build directory settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • Qt Creator 13.0.2, Qt Creator 14.0.2, Qt Creator 15.0.0
    • None
    • Windows

    Description

      Qt Creator ignores HOME environment variable in build directory settings

      OS: Microsoft Windows 11 Pro

      I try to set the default project build directory (Preferences — Build & Run — Default Build Properties — Default build directory) using the PATH environment variable:

      %{Env:HOME}/build-%{ActiveProject:Name}-%{Asciify:%{Kit:FileSystemName}-%{BuildConfig:Name}} 

      However, when creating a new project, its build paths turn into:

      \build--Qt_6_8_0_msvc2022_64_Ninja 

      While I expect it to be like this:

      c:/Users/user.name/build--Qt_6_8_0_msvc2022_64_Ninja 

      However, on MacOS 15.1 in Qt Creator 14.0.2 this configuration works and returns the correct string with the user's home directory at the beginning.

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            rumgot rumgot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes