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

No output from QML warnings/errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: Qt Creator 4.3.1, Qt Creator 4.4.0-beta1, Qt Creator 4.5.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      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

              Assignee:
              hunger Tobias Hunger
              Reporter:
              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