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

Unable to use CurrentDevice variables

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 3.4.2
    • Qt Creator 3.4.0, Qt Creator 3.4.1
    • Remote Linux
    • None
    • OS=Ubuntu 12.04 64bit
    • b57ac109a2509950bdc0650f21f42214ab0b347e

    Description

      Using either Qt Creator 3.4.0 or 3.4.1, I've added a Generic Linux Device in Tools->Options...->Devices. Configured as attached and tested the communication with the device with success.

      Then I added a new kit (DeviceKit) and set its Device type to Generic Linux Device and the Device to the added device.

      In my project Build&Run configuration, I added my new kit and in the Run Settings I added a Custom Process Step to the Deployment configuration and to the arguments of the command to execute, tried to add:

      IP_ADDR=%

      {CurrentDevice:HostAddress}

      This is resolved by Qt Creator to IP_ADDR=
      (empty string above). Any other CurrentDevice variables present the same behaviour.

      Firing up Qt Creator 3.3.2 with the same configurations resolves the argument correctly to:

      IP_ADDR=192.168.69.95

      Attachments

        1. AddingDevice.png
          AddingDevice.png
          89 kB
        2. AddingKit.png
          AddingKit.png
          87 kB
        3. Deployment_3.3.2_FINE.png
          Deployment_3.3.2_FINE.png
          15 kB
        4. Deployment_3.4.1_BAD.png
          Deployment_3.4.1_BAD.png
          51 kB
        5. DeviceTest.png
          DeviceTest.png
          17 kB
        6. InsertAVariable.png
          InsertAVariable.png
          172 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            hpires Hugo Pires
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes