Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-115328

Invalid qmllint_json target generated

    XMLWordPrintable

Details

    • 0e18b14fe (dev), 49e8aa08d (6.5), 80a512740 (6.6)

    Description

      If you've a "exported qml c++ code only" module and define it using qt_add_qml_module(), it generates a qmllint_json target which lacks the qmllint binary in it's call.

      To reproduce, Just create a vanilla project and add an additional

      qt_add_qml_module(foo
          URI foo
          OUTPUT_DIRECTORY foo
          VERSION 1.0
      )
      

      to the CMakeLists.txt. Running lint then runs into

      $ ninja all_qmllint_json
      [1/2] cd /home/prcs1076/tmp/moppel && --json /home/prcs1076/tmp/build-moppel-Desktop_Qt_6_6_0_GCC_64bit-Debug/foo_qmllint.json
      FAILED: CMakeFiles/foo_qmllint_json /home/prcs1076/tmp/build-moppel-Desktop_Qt_6_6_0_GCC_64bit-Debug/CMakeFiles/foo_qmllint_json 
      cd /home/prcs1076/tmp/moppel && --json /home/prcs1076/tmp/build-moppel-Desktop_Qt_6_6_0_GCC_64bit-Debug/foo_qmllint.json
      /bin/sh: line 1: --json: command not found
      [2/2] cd /home/prcs1076/tmp/moppel && /var/home/prcs1076/Qt/6.6.0/gcc_64/bin/qmllint --bare -I /home/prcs107...ppel/Main.qml --json /home/prcs1076/tmp/build-moppel-Desktop_Qt_6_6_0_GCC_64bit-Debug/appmoppel_qmllint.json
      Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
      Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
      If this causes problems, reconfigure your locale. See the locale(1) manual
      for more information.
      ninja: build stopped: subcommand failed.
      

      Attachments

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

        Activity

          People

            semlanik Alexey Edelev
            cajus Cajus Pollmeier
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes