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

Qmldump output misses flush on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: Qt Creator 2.3.0-rc
    • Fix Version/s: Qt Creator 2.4.0
    • Component/s: Quick / QML Support
    • Labels:
      None
    • Environment:
      Windows 7 SP1
      QtCreator 2.3.0-rc
    • Commits:
      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

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

          Activity

            People

            Assignee:
            ckamm Christian Kamm
            Reporter:
            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