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

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.15.1
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            fawzi Fawzi Mohamed
            Reporter:
            ratijas ivan tkachenko
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes