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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes