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

qmllint: provide better error message when passing a directory instead of a file to -i option

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • 6.0
    • 6.0.0
    • QML: Tooling
    • aa470fa92d8139ea849c00e01db5ffc537fe6981 (qt/qtdeclarative/dev)

      I accidentally passed a directory when I should have passed a file:

      -i /home/mitch/dev/qt5-dev2-debug/qtbase/qml
      

      The error was:

      QIODevice::read (QFile, "/home/mitch/dev/qt5-dev2-debug/qtbase/qml"): device not open
      1:1: Expected token `numeric literal'
      

      It would be more user friendly to warn the user that -i expects a file and not a directory.

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

            mitch_curtis Mitch Curtis
            mitch_curtis Mitch Curtis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes