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

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.13.1
    • 5.13.0
    • Qt IVI
    • None
    • All
    • 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

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

        Activity

          People

            gagi Dominik Holland
            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