Uploaded image for project: 'Qt Automotive Suite'
  1. Qt Automotive Suite
  2. AUTOSUITE-1190

Ivigenerator: Code generation fails when returning an enum in a QFace operation

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.13.0
    • Fix Version/s: 5.13.1
    • Component/s: Qt IVI
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      fbf59071450f81b7bfd8914cc109ece3c2ba8139 (qt/qtivi/5.13) c3ea1a6bfa306b719191b81b5662bcd29b194adb (qt/qtinterfaceframework/dev)

      Description

      Code generation for the frontend fails when the return type of a operation is an enum.

      Example QFace file:

      module test 1.0
      
      @config: { qml_type: "Test" }
      interface Test {
        ResultCode test();
      }
      
      enum ResultCode {
         SUCCESSFUL,
         ERROR_FOO,
         ERROR_BAR,
      }
      

      This results in the following error:

      ../5.13.0/gcc_64/bin/ivigenerator/templates_frontend/interface.cpp.tpl:388: error: 'param' is undefined
      

      In interface.cpp.tpl on line 388 'param.type' should be 'operation.type'.

        Attachments

        For Gerrit Dashboard: AUTOSUITE-1190
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            gagi Dominik Holland
            Reporter:
            developer1 TomTom Developers
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes