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

[envvar editor] lag between editing text field and updated environment variables

    XMLWordPrintable

Details

    • 729c80375 (14.0)

    Description

      i've been seeing an odd behaviour: when editing the environment variables in the text field and then run the executable, the envvars are not immediately appied, which leads to a flaky behaviour:

      steps:

      • edit envvars in text field
      • quickly start application (e.g. with ctrl-r)

      expected behaviour:
      the process should be started with the environment variables at the time of starting the application.

      actual behaviour:
      in some cases i see that the changes done in the envvars text field have not been applied. seems to be the case when the application is immediately started after the envvar text field is modified. (e.g. by quickly typing inside the envvars text field, followed by a ctrl-r)

      attached screen recording shows the behaviour with this test program (i was typing in the text field and ctrl-r)

      #include <cstdio>
      #include <cstdlib>
      
      int main(int argc, char *argv[])
      {
          auto x = ::getenv("MYVAR");
          if (x)
              fprintf(stderr, "MYVAR %s\n", x);
          else
              fprintf(stderr, "MYVAR nullptr\n");
          return 0;
      }
      

      Attachments

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

        Activity

          People

            kandeler Christian Kandeler
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes