Details
-
Bug
-
Resolution: Incomplete
-
P2: Important
-
None
-
Qt Creator 14.0.0-beta1
-
0cfdf2f5a (14.0)
Description
This is a collection of various observed issues with QML LSP. Issues have all been observed with QML LS in the current Qt6.8 beta1.
Adding a property string foo to a component is not available to the QML LS until a) after the modified file has been saved and b) after the code has been built and c) after the enclosing QML file is subsequently edited. That's three steps necessary to let the code model know about a single string property addition.
Sometimes can't COMMAND+Click Qt Quick Controls to open their style-specific implementation QML files from the Qt install folder. Seen notably with ApplicationWindow at the root of a document.
It has been found that COMMAND+double-clicking can sometimes (but not always) open ApplicationWindow. However when it does work, it opens the wrong one - e.g. opening with Kit=6.7.2 opens the one from Qt 6.8 instead which is incorrect.
If the "Use qmlls from latest Qt" is unchecked, the double-click doesn't work at all.
import QtQuick.Controls [dot] does not then show the available modules. The old QML Code model does this. It simply offers "as" assuming to then write a namespace.
Coloring of the syntax highlighter can change color mid-keyword so you can have for example a Rectangle partly rendered in blue and partly in green. This happens as you type and the syntax highlighter just can't keep up; for example, when fixing missing closing braces or adding missing commas on json array items where multiple lines require re-parsing for syntax highlighting at the same time due to knock-on effects of semantic changes/fixes.
See "Poor Color Breaks" for an example.
Duplicate inline component declaration is not detected and causes incorrect knock-on error
See "Bacon Cake" for an example.
If there are warnings and error displayed in a QML file and you add a "CMake-style" # (hash) comment by "accident" at the end of the file instead of using // or /* then the entire file's warnings and errors are removed
Code completion within as-yet unclosed JavaScript blocks doesn't work at all. e.g.:
Button {
onClicked:
" is added
} // Button
See QML Code Model Highlighting Issues.mov for an example of the highlighting issue
QML LS doesn't know about anchors, see the project ZoomAndPan and screenshot.
Attempting to restart the QML LSP for that project results in a crash, see the crash log
Attachments
Issue Links
- depends on
-
QTBUG-124461 qmlls does not exit after receiving an exit request
- Closed
- is cloned by
-
QTBUG-120000 Support semantic highlighting in QML language server
- In Progress
- relates to
-
QTBUG-118053 Create a failure tolerant QML parser
- Open
- split to
-
QTBUG-126709 qmlls does not know about newly added properties
- Closed
-
QTBUG-126711 qmlls: go to definition does not work on ApplicationWindow
- Closed
-
QTBUG-126712 qmlls: missing completions on QML module imports
- Closed
-
QTCREATORBUG-31148 qmlls fights with embedded codemodel for highlighting
- Closed
-
QTBUG-126714 qmlls: avoid psychedelic highlighting mode on invalid code
- Closed
-
QTBUG-126715 qmllint: complain about duplicate inline components
- Reported
-
QTBUG-126718 qml: do not fail parsing on cmake comments or missing '}' brace
- Reported
- mentioned in
-
Page Loading...
For Gerrit Dashboard: QTCREATORBUG-31125 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
573480,3 | LanguageClient: show unreachable servers in the lsp menu | 14.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |