Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 4.15.2, Qt Creator 5.0.0
-
None
-
-
13be5e7eb47add4a8784eab5cab3a61ee2430d8e (qt-creator/tqtc-qt-creator/5.0)
Description
Qt Creator crashes when trying to type "import" when using an inline component in the QML file where the import is to be done.
The bug can be recreated as follows:
- Create new empty QtQuick Application
- Add a inline component to any new or existing QML file of the project within the Qt Creator
- Try to make a import below the existing imports of the QML file where the inline component was added
- The Qt Creator crashes while you try to type "import"
import QtQuick 2.0
// if you try to type "import" here the Qt Creator will crash
Item {
component TestInlineComponent: Item {}
}
Workaround:
If you try to make an import in a file with a inline component, just write your import not below the existing imports. E.g. type your import between or above the existing imports.
Attachments
For Gerrit Dashboard: QTCREATORBUG-26151 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
366648,3 | QmlJS: Fix crash | 5.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |