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

QtCreator replaces PATH environment variable removing user settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 9.0.0
    • None
    • Windows
    • 6bef53a81 (9.0)

    Description

      Howto reproduce

      • have Kit for visual studio 2022 setup
      • start "x64 Native Tools Command Prompt for VS 2022" to have CMD shell.
      • extend PATH by command line:
        set PATH=FOOBAR;%PATH%
      • start QtCreator from this shell
      • open a project
      • Check PATH in Project/Build/Build Environment

      Result:

      "FOOBAR" is not part of the PATH anymore.

      Should be:

      "FOOBAR" ist still part of the PATH. PATH should not be changed.

       

      Remark 1:

      If CMD is just a "normal" shell and not a "x64 Native Tools ..." shell and PATH was extended with FOOBAR than this extension is kept.

      So, switching toolchains in Projekt Build&Run seems to "outsmart" the user setup, if CMD is already a Visual Studio CMD shell.

      Remark 2:

      QtCreator 8 kept the extension of PATH (but duplicated the PATH parts that are relevant for the Visual Studio toolchain).

       

       

      Attachments

        Activity

          People

            cadam Cristian Adam
            moellney Michael Möllney
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: