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

McuSupportPlugin: parsing default paths with wildcards

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • P3: Somewhat important
    • Qt Creator 9.0.0-rc1
    • None
    • MCU Support
    • None
    • 8
    • Tooling Sprint 2022/3.4, Tooling Sprint 2022/3.5, Tooling Sprint 2022/3.6, Tooling Sprint 4.2/2022, Tooling Sprint 4.3/2022, Tooling Sprint 4.4/2022

    Description

      Most of the CMake entries defined in the json kit files involve paths.

      Often, a default path is given. Sometimes, the default path is different depending on the platform. Also sometimes it is relative to system paths (e.g. "Programs and Files").

      As the current version of the plugin was pre-filling those default paths with hardcoded data, there is already functionality to find those system paths.

      However, we need to read this information from the json, and have enough basic logic to, based on the json information, fill in the appropiate data. E.g.:

      "defaultValue": {
       "windows": "$ROOT/nxp/MCUXpressoIDE*",
       "unix": "/usr/local/mcuxpressoide/"
       }
      

      when parsing this, the plugin should choose one of the two given values depending on the host platform, and in the case of Windows it should be able to replace "$ROOT" with the appropriate path (usually C:/ , should be given by be system).

      Current wildcards used:

      • $ROOT
      • $PROGRAMSANDFILES
      • $HOME
      • $Qul_ROOT
      • $QUL_BOARD_SDK_DIR

      Attachments

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

        Activity

          People

            yasser Yasser Grimes
            christiaan.janssen Christiaan Janssen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes