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

qmllint doesn't color output when run through ninja all_qmllint

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 6.11
    • QML: Tooling
    • None

      QColorOutputPrivate::isColoringPossible checks whether we can use colored output (on non-Windows machines) using isatty:

      return isatty(fileno(stderr));

       

      This works fine when stderr is a regular terminal. However, when the output is passed through a pipe we lose the information about color support of the terminal that will display the output. 

      This can happen, for example, when calling ninja all_qmllint. Ninja uses pipes to pass the output and isatty() return false.

      This does not happen when running the individual qmllint commands manually and they have colored output.

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

            qtqmlteam Qt Qml Team User
            olivier.decanniere Olivier De Cannière
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes