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

QFileSystemWatcher prints qWarning when addPath() is used like API allows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 5.0.0
    • 4.8.0
    • Core: I/O
    • None
    • Windows 7 x64

    Description

      Many programs seem to use addPath() function in way that it adds same file multiple times (like Qt Creator 2.3.0 and 2.4.0) and that causes qWarning print.
      And the same time QT_FATAL_WARNINGS environment variable is very good way to find invalid connects. It however can not be enabled when starting Qt Creator as it exits (at least with CMake-plugin) when project file changes (it also adds project file again with addPath).
      The reason that I find this to be Qt bug is the fact that Qt API specifically tells that it is allowed to add same file multiple times and is just ignored ("The path is not added if it does not exist, or if it is already being monitored by the file system watcher.").
      My point of view is that functions should not use qWarning when they are used like API tells. Hopefully you think the same...

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            timit Timi Tuohenmaa
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes