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

QML file that imports the module it belongs to results in "Failed to import" qmlls warning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.10.0
    • QML: Tooling
    • None

      To reproduce, open LibIsle/qml/TinyButton.qml from the attached project in Creator.

      import QtQuick
      import QtQuick.Controls
      
      import LibIsle
      
      Button {
          leftPadding: 4
          rightPadding: 4
          topPadding: 4
          bottomPadding: 4
          focusPolicy: Qt.NoFocus
      
          ShinyRectangle {}
      }
      
      /Users/mitch/dev/cmakedeploytest2/isle/LibIsle/qml/TinyButton.qml:4: warning: Warnings occurred while importing module "LibIsle": [import]
      /Users/mitch/dev/cmakedeploytest2/isle/LibIsle/qml/TinyButton.qml:4: warning: Failed to import LibIsle. Are your import paths set up properly? Did you build your project? If yes, did you set the "QT_QML_GENERATE_QMLLS_INI" CMake variable on your project to "ON"? [import]
      

      cmakedeploytest2-qt_isle_debug_non_fw-Debug/.qt/.qmlls.build.ini:

      [General]
      docDir=/Users/mitch/dev/qt-isle-debug-non-fw/qtbase/doc
      [<SLASH>Users<SLASH>mitch<SLASH>dev<SLASH>cmakedeploytest2<SLASH>isle<SLASH>LibIsle]
      importPaths="/Users/mitch/dev/qt-isle-debug-non-fw/qtbase/qml"
      [<SLASH>Users<SLASH>mitch<SLASH>dev<SLASH>cmakedeploytest2<SLASH>isle<SLASH>LibDebugUiUtils]
      importPaths="/Users/mitch/dev/cmakedeploytest2-qt_isle_debug_non_fw-Debug/isle:/Users/mitch/dev/qt-isle-debug-non-fw/qtbase/qml"
      [<SLASH>Users<SLASH>mitch<SLASH>dev<SLASH>cmakedeploytest2<SLASH>app]
      importPaths="/Users/mitch/dev/cmakedeploytest2-qt_isle_debug_non_fw-Debug/isle::/Users/mitch/dev/qt-isle-debug-non-fw/qtbase/qml"
      

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

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

              Created:
              Updated:

                There are no open Gerrit changes