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

Don't display warnings when parsing CMake...*.in files

XMLWordPrintable

    • f1bccd2f4 (master)

      https://codereview.qt-project.org/c/qt-creator/qt-creator/+/656371 introduced the problem, that when opening Qt Creator as project itself, warnings like  

       qtc.cmake.fileApiExtractor: Failed to parse: "/usr/share/cmake-3.28/Templates/CPackConfig.cmake.in" "Parse error.  Expected a command name, got unquoted argument with text \"@_CPACK_OTHER_VARIABLES_@\".\n"
      qtc.cmake.fileApiExtractor: Failed to parse: "/data/dev/creator/cmake/QtCreatorConfig.cmake.in" "Parse error.  Expected a command name, got unquoted argument with text \"@PACKAGE_INIT@\".\n"
      qtc.cmake.fileApiExtractor: Failed to parse: "/data/dev/qt-6/qtbase/lib/cmake/Qt6Qml/Qt6qmldirTemplate.cmake.in" "Parse error.  Expected a command name, got unquoted argument with text \"@__qt_qmldir_content@\".\n"
      

      spam the console and make really important warnings hard to detect.

      While the warnings might be useful in general for unexpected input, the occurrences here are expected.

      I think it would make sense to 'downgrade' the severity of the message in the expected cases (e.g. if the filename ends in *.in) from 'Warning' to 'Debug'.

       

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

            cadam Cristian Adam
            hjk hjk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes