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

Details

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

    Description

      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.

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes