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

"package import requires a version number" when using versionless QML import

    XMLWordPrintable

Details

    • 1b134a69090c7326554157494f89271a5c088ae2 (qt-creator/qt-creator/4.13)

    Description

      Import a module without a version is supported in Qt 6:

      import QtQuick
      

      However, Creator complains about it:

      [...]/ErrorPopup.qml:3: error: package import requires a version number
      

      This makes for a very noisy Issues pane for any project with more than a trivial amount of QML files.

      Personally I have ~2550 QML errors as a result of this, which makes it hard to see the legitimate errors.

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes