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

Implement qml2cpp output parsing

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 4.12.1
    • Quick / QML Support
    • Other

      Qt for MCUs comes with a tool called qml2cpp which does what it says: qml to cpp conversion. If the Qml sources have errors, thos becomes compile errors:

      [2/10 14.9/sec] Running qmltocpp on untitled50.qml
      FAILED: CMakeFiles/untitled50.dir/untitled50.h CMakeFiles/untitled50.dir/untitled50.cpp CMakeFiles/untitled50.dir/untitled50.json 
      cmd.exe /C "cd /D C:\Users\alportal\Documents\build-untitled50-Qt_for_MCUs_1_2_Desktop-Debug && C:\QtForMCUs\newStructure\Qul_1.2.0\bin\qmltocpp.exe -IC:/Users/alportal/Documents/build-untitled50-Qt_for_MCUs_1_2_Desktop-Debug/CMakeFiles/untitled50.dir -IC:/QtForMCUs/newStructure/Qul_1.2.0/include -IC:/QtForMCUs/newStructure/Qul_1.2.0/src/os --mapModule=QtQuick.Controls=QtQuick.Controls.StyleDefault C:/Users/alportal/Documents/untitled50/untitled50.qml --qulrcc-json-file=C:/Users/alportal/Documents/build-untitled50-Qt_for_MCUs_1_2_Desktop-Debug/CMakeFiles/untitled50.dir/qulrcc_output.json --depfile C:/Users/alportal/Documents/build-untitled50-Qt_for_MCUs_1_2_Desktop-Debug/CMakeFiles/untitled50.dir/untitled50.d --outputDir=CMakeFiles/untitled50.dir"
      C:/Users/alportal/Documents/untitled50/untitled50.qml:6:5: error: Group property of unknown type
          border.color: "#9dc09e"
          ^~~~~~
      ninja: build stopped: subcommand failed.
      

      It would be useful to have that error in the issues pane. Some of our existing output parsers should be able to successfully parse the error, since the format looks quite familiar.

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

            Unassigned Unassigned
            portale Alessandro Portale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes