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

Reformatting QML files deletes type annotations

    XMLWordPrintable

Details

    • Linux/X11, Windows
    • ffcbbecf2 (12.0)
    • QDS Berlin - 2023 Week 23/24

    Description

      Type annotations are deleted when QML files are reformatted using Tools menu → QML/JS → Reformat file.

      Steps for reproduction:

      To any QML file, add an arbitrary function whose arguments have type annotations.
      For example:

      function foo(i: int)
      {
          console.log( i )
      }
      

      Reformat the file using the above command.

      : int will be deleted from the function.

      The same issue occurs in Qt Design Studio 4.

      Attachments

        Issue Links

          For Gerrit Dashboard: QTCREATORBUG-29061
          # Subject Branch Project Status CR V

          Activity

            People

              semih.yavuz Semih Yavuz
              indi Indivara Weerasuriya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes