Use qllts in neovim
-
In the neovim-lsp repo I found the section for QML with two possibility for a lsp server.
I choose the QT solution, here : https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#qmlls.
So I am redirected to this repo, so I allow myself a question on this forum.
How can I install the lsp? I can't find any documentation about it.
I am on Arch linux.
If I'm in the wrong section, sorry ^^
-
Hi and welcome to devnet,
From the looks of it, it's part of the tools built alongside the module so I would start by installing the qt5-declarative package to see if it comes with it.
If not, it should be compilable without requiring you to build the whole module.
-
@SGaist said in Use qllts in neovim:
qt5-declarative
Hi, thanks for the response.
I have installed this package
qt5-declarative
, but it doesn't seem to fix my problem.Here I see that I have to build the whole package to get qmlls.
I'm a little bit lost, I'm just starting to discover qt ^^
So I found that, and plan to install the qt5-base package.
But you say that it is not mandatory to have the full package, so what is the process to have only qmlls?For qt5-declarative, in the lsp documentation, the default configuration uses
cmd = { "qmlls" }
, maybe I need to update this command with another executable to make it work?Edit 1 : It doesn't work better with the qt5 group or just qt5-base.
Edit 2 : I found the language server repo
-
I just double checked and it's a tool that appeared in Qt 6.
Can you install the Qt 6 declarative package as well ?
-
I just double checked and it's a tool that appeared in Qt 6.
Can you install the Qt 6 declarative package as well ?
@SGaist Yes, with the group :
sudo pacman -S qt6
I have the good package in it :
Optional dependencies for qt6-declarative qt6-languageserver: for qmlls [pending]
For good measure, I have done a
pacman -S qt6-declarative qt6-languageserver
:warning: qt6-declarative-6.4.1-1 is up to date -- reinstalling warning: qt6-languageserver-6.4.1-1 is up to date -- reinstalling
but when I do
qml
thentab
for showing all the available command, I don't seeqmlls
:➜ ~ qml qml qmlformat qmllint-qt5 qmlpreview qmlscene qmltime-qt5 qmlcachegen qmlformat-qt5 qmlmin qmlpreview-qt5 qmlscene-qt5 qmltyperegistrar qmlcachegen-qt5 qmlimportscanner qmlmin-qt5 qmlprofiler qmltestrunner qmltyperegistrar-qt5 qmleasing qmlimportscanner-qt5 qmlplugindump qmlprofiler-qt5 qmltestrunner-qt5 qmleasing-qt5 qmllint qmlplugindump-qt5 qml-qt5 qmltime
-
Ok, I manage to have the
qmlls6
command with the setup of the following varexport QT_SELECT=6
.But neovim doesn't detect lsp, but this is a neovim problem I think and not a Qt problem. So I think this tread is ok to get closed.
Besides that, I have the following error on my code
module \"QtQuick\" version 6.0 is not installed
.
I'm lost rn with this stuff. The qt6 package doesn't install QtQuick 6 ?
(I have setup the version of QtQuick following the table on the wiki page) -
Qt Declarative is the module that manages QML. QtQuick implements a visual library on to be used with QML.