Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.5.1
-
None
-
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
For Gerrit Dashboard: QTBUG-115328 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
502216,2 | Fix the qmllint command line | dev | qt/qtdeclarative | Status: MERGED | -1 | 0 |
503060,2 | Fix the qmllint command line | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
503081,2 | Fix the qmllint command line | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
503091,1 | Fix the qmllint command line | tqtc/lts-6.2 | qt/tqtc-qtdeclarative | Status: ABANDONED | 0 | 0 |