Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 16.0.0-rc1
-
None
-
-
e6751e664 (16.0)
Description
I have configured the LSP client for .swift files as follows:
(Language is unset because there is no mime-type for Swift in the list)
However, Qt Creator is sending LSP file open notifications that look like this:
{ "textDocument" : { "languageId" : "", "text" : "import CxxStdlib\nimport dpp\n\n\n@main\nstruct HelloWorld {\n static func main()
\n}\n", "uri" : "file:///home/nils/SwiftLearn/HelloWorld/Sources/HelloWorld/main.swift", "version" : 0 }
}
As you can see, languageId is unset causing the LSP server to fail.
The issue has previously been raised in the LSP's GitHub issues: https://github.com/swiftlang/sourcekit-lsp/issues/2028
Attachments
For Gerrit Dashboard: QTCREATORBUG-32595 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
629859,4 | LSP: add swift mime type | 16.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |