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

[qmllint ] Enabling the qmllint for a lot of QML files exceeds the command line limitation on Windows host

    XMLWordPrintable

Details

    • Windows
    • da1741d4c (dev), 0505ebdc8 (6.7), ead19dbc0 (6.6), f11f4b88f (tqtc/lts-6.5)

    Description

      If you enable the qmllint for a with a lot of QML files the command line generated can exceed the 8192 characters limit and thus cannot be run correctly. 

      https://learn.microsoft.com/en-us/troubleshoot/windows-client/shell-experience/command-line-string-limitation

      This command line is added by these lines in Qt6QmlMacros.cmake

      set(cmd
      ${tool_wrapper}
      $<TARGET_FILE:${QT_CMAKE_EXPORT_NAMESPACE}::qmllint>
      --bare
      ${import_args}
      ${qrc_args}
      ${qmllint_files}
      )

      Maybe it could be possible to split the command line in several calls to avoid that problem?

      Attachments

        Issue Links

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

          Activity

            People

              alexandru.croitor Alexandru Croitor
              tuomas.vaarala Tuomas Vaarala
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes