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

Running SDK qmlformat fails on file save

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 14.0.0
    • None
    • Ubuntu 22.04
    • Linux/X11

    Description

      I upgraded Qt Creator from 13.0.0 to 14.0.0 and now I cannot run qmlformat from Qt 6.5.5 SDK anymore on file save:

      `Error in text formatting: Failed to format: The command "/home/*/Qt6.5.5/6.5.5/gcc_64/bin/qmlformat --inplace /tmp/QtCreator-rXyPtj/qtc_beautifier_klYNDWhd.qml terminated abnormally.."`

      This happens for all of my QML files, so apparently there is something fundamentally broken in those temporary files. However, I cannot see what the temporary file contains as it seems that the files get immediately deleted even on an error.

      I can run the same qmlformat binary successfully in CLI and the integration with Qt Creator 13.0.0 still works. The QML editor is so broken that it's impossible to use without auto-formatting. Also, the build-in formatter applies a completely different formatting as the SDK formatter, which is annoying (e.g. removes semicolons vs adding semicolons).

       

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              juzzlin Jussi Lind
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes