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

pyproject default working directory is not used for runtime configuration

    XMLWordPrintable

Details

    • Linux/X11
    • 364288b79cfb27f4bea9a7a41b785660fb8d0dde (qt-creator/qt-creator/4.13)

    Description

      Steps to reproduce:

      • Step #1: Start QtCreator and create a Python Project
        -> Runtime Configuration shows the correct working directory
      • Step #2: Close & reopen QtCreator
        -> Runtime configuration shows an empty workdir path (referenced files are not found at runtime)
        -> stderr output:
        file:///home/<user>/MyFile.qml: No such file or directory
        

      The *.user file contains the following:

       <value type="QString" key="RunConfiguration.WorkingDirectory"></value>
      <value type="QString" key="RunConfiguration.WorkingDirectory.default">/path/to/workdir</value>
      

      After restarting QtCreator the working directory in RunConfiguration appears empty

      After setting the path explicitly in the QtCreator runtime configuration the error no longer occurs.

      The *.users file now contains the following:

       <value type="QString" key="RunConfiguration.WorkingDirectory">/path/to/workdir</value>
      <value type="QString" key="RunConfiguration.WorkingDirectory.default"></value>
      

      FYI: By deleting the *.user file the process is repeatable/reproducible.

      Attachments

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

        Activity

          People

            davschul David Schulz
            antis81 Nils Fenner
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes