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

Qmldump output misses flush on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 2.4.0
    • Qt Creator 2.3.0-rc
    • Quick / QML Support
    • None
    • Windows 7 SP1
      QtCreator 2.3.0-rc
    • a037609c3f88046276a4e1f9420c71226a9faa4a

    Description

      I have made a QML extension with QDeclarativeExtensionPlugin and QDeclarativeItem, when I inserted the component into QML and switch to Design mode in QtCreator, it show the error message "Type dump of QML plugin in xxxx failed. Errors....".

      I have trace into the code, it seems that the bug of qmldump.exe, the dump result cannot be passed to QtCreator.
      in command line, I enter:
      qmldump COMPONENTS 1.0 [return]
      The dump result looks well, but when I try to:
      qmldump COMPONENTS 1.0 > result.txt

      The content of result.txt is empty!
      I trace into the qmldump.exe, and add a fflush(stdout) after std::cout, and the problem is gone. I think it should be the bug of qmldump

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-5825
        # Subject Branch Project Status CR V

        Activity

          People

            ckamm Christian Kamm
            diro diro
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes