Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 2.3.0-rc
-
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 |
8031,1 | qmldump: Add a flush to fix output redirection problems on windows. | 2.4 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
8032,1 | qmlplugindump: Add flush to fix output redirection on windows. | master | qt/qtdeclarative | Status: MERGED | +2 | 0 |