-
Task
-
Resolution: Unresolved
-
P2: Important
-
6.7
-
None
-
50516589e (dev), b6cf7841c (dev), 2ebd27dba (dev), 74ea9abb0 (dev), 542605308 (dev)
Currently, the user needs to build its QML modules for qmlls to provide any helpful insights. This is bad because a new qmlls user that uses it for the first time will have a very bad first impression of qmlls, as it will not be able to do anything.
Also, currently, if the user changes its QML component defined in C++, the qmlls will not know about any added/removed/changed property or new classes.
Therefore, it was proposed that qmlls should be able to trigger the rebuild of the "autogen" (that generates the qmltypes, qmldir and qrc files) so that the user always get up-to-date linting warnings and completions items.
The "easy" way of doing it would be to:
- create a cmake target that can regenerate the qmltypes, qmldir and qrc files (that is faster than rebuilding the entire project of the user)
- Trigger this cmake target from qmlls automatically/without the user needing to do it:
- when no qmldir nor qmltypes was found (e.g. when opening a newly created QML project that was never built yet)
- when a C++ file defining QML components was changed (e.g. a property was added/changed/removed)
- is required for
-
QTBUG-97637 QML Language Server Support for IDEs (like VSCode, QtC)
-
- In Progress
-
-
QTCREATORBUG-29826 Qt Creator editor shows QML Module not found even though qt_add_qml_module is working and the app works
-
- Closed
-
-
QTBUG-119964 New QML LSP features (6.8)
-
- Closed
-
- resulted in
-
QTBUG-126576 qmlls: automatic qmltypes generation is slowing completions and highlighting down
-
- Closed
-
For Gerrit Dashboard: QTBUG-118705 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
670344,6 | qqmlcodemodel: add UpdatePolicy enum for snapshot updates | dev | qt/qtdeclarative | Status: NEW | +1 | 0 |
670345,5 | qqmlcodemodel: run CMake process concurrently | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
670382,5 | QQmlCodeModel: add function to get all build paths | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
673429,3 | QQmlCodeModel: populate files after loading them | dev | qt/qtdeclarative | Status: NEW | -1 | 0 |
673430,2 | QQmlCodeModel: pass command line build folder to codemodels | dev | qt/qtdeclarative | Status: NEW | +1 | 0 |
673431,3 | QQmlCodeModel: introduce QProcessScheduler | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
673449,2 | qmlls: fix manual test | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
673450,2 | QQmlCodeModel: run CMake build in background | dev | qt/qtdeclarative | Status: NEW | 0 | 0 |
673451,2 | QQmlCodeModel: call CMake on workspace opening | dev | qt/qtdeclarative | Status: NEW | 0 | -1 |
520257,1 | WIP: qmlls: reconstruct Dom when CMake build finishes | dev | qt/qtdeclarative | Status: ABANDONED | -2 | 0 |
670343,5 | qqmlcodemodel: extract version checking code into static method | dev | qt/qtdeclarative | Status: MERGED | +2 | +1 |