Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-649

Randomly can't find variable getEnv

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.5.0
    • 1.3.0, 1.5.0
    • General
    • None
    • b9e100cba96c015a8f4f95db9e9daa757a07e3b2

    Description

      In the IB module where I'm adding new features I have:

      setupBuildEnvironment: {
              var v = new ModUtils.EnvironmentVariable("PATH", qbs.pathListSeparator, qbs.hostOS.contains("windows"));
              v.prepend(cpp.toolchainInstallPath);
              v.set();
          }
      

      For some reason I randomly receive "ERROR: Error while setting up build environment: ReferenceError: Can't find variable: getEnv" when running autotests. qbs.ModUtils is imported. Ideas?

      I should add that I no longer need this anyways because the dependency on the cpp module ends up adding the directories to the PATH that I need. Still odd.

      Attachments

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

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes