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

False positive M129 when instantiating imported component with same name (even with qualified import)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • Qt Creator 4.15.1
    • None
    • All

      Naming your QML Component with the same name as one of imported and used component from other module triggers an error M129 in Qt Creator: Type cannot be instantiated recursively.

      It works in runtime as expected: loading imported type instead of recursion. Thus, it is a false-positive on Qt Creator's side.

      I changed module import and its uses to a qualified path import … as …, but it did not help: Qt Creator still sees it as recursive instantiation.

      I must say, imports resolution is handled quite poorly in more than one aspect in Qt Creator. See QTCREATORBUG-25985 for another case.

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

            qtqmlteam Qt Qml Team User
            ratijas ivan tkachenko
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes