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

No output from QML warnings/errors

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • Qt Creator 4.3.1, Qt Creator 4.4.0-beta1, Qt Creator 4.5.0
    • None
    • Ubuntu 16.04

    Description

      The following application should cause an error to be printed to the console:

      import QtQuick 2.9
      import QtQuick.Window 2.2
      
      Window {
          visible: true
          width: 640
          height: 480
          title: qsTr("Hello World")
      
          p
      }
      
      Starting /home/mitch/dev/temp/quick-qt5_9_debug-Debug/quick...
      QML debugging is enabled. Only use this in a safe environment.
      QQmlApplicationEngine failed to load component
      qrc:/main.qml:11 Syntax error
      
      /home/mitch/dev/temp/quick-qt5_9_debug-Debug/quick exited with code 255
      

      With Qt 5.11 (current dev branch), there are no errors, just this:

      Starting /home/mitch/dev/temp/quick-qt5_dev_debug-Debug/quick...
      /home/mitch/dev/temp/quick-qt5_dev_debug-Debug/quick exited with code 255
      

      I do see the errors if I check "Run in terminal" or run the application from the command line. Disabling QML debugging has no effect, though interestingly, the "Debugger Console" does show the warnings if QML debugging is enabled.

      Attachments

        Issue Links

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

          Activity

            People

              hunger Tobias Hunger
              mitch_curtis Mitch Curtis
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes