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

qmlformat creates temp file with trailing "~" which is not removed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.4, 6.5.0 Beta1
    • 6.4.0
    • QML: Tooling
    • Microsoft Windows NT 10.0.19042.0 x64
    • Windows
    • bc6c900b15 (qt/qtdeclarative/dev) bc6c900b15 (qt/tqtc-qtdeclarative/dev)

    Description

      Hi.

       

      For an unknown reason, everytime I'm using qmlformat with "--inplace" argument, it leaves some file behind.

      C:\Qt\6.4.0\msvc2019_64\bin>qmlformat.exe qmlfmt_test/a.qml --verbose -i
      Dumping qmlfmt_test/a.qml
      Writing to file qmlfmt_test/a.qml
      

      Then:

      C:\Qt\6.4.0\msvc2019_64\bin>dir qmlfmt_test
      
      [...]
      
      2022/10/16  17:12    <DIR>          .
      2022/10/16  17:12    <DIR>          ..
      2022/10/16  17:12                 6 a.qml
      2022/10/16  17:12                 5 a.qml~
      

      It seems qmlformat isn't removing the "a.qml~" it created for some reason.

      Attachments

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

        Activity

          People

            semih.yavuz Semih Yavuz
            delgan Del Gan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes