Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Use qllts in neovim
Forum Updated to NodeBB v4.3 + New Features

Use qllts in neovim

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 3.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alanbtr
    wrote on last edited by
    #1

    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 ^^

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • A Offline
        A Offline
        alanbtr
        wrote on last edited by alanbtr
        #3

        @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

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          I just double checked and it's a tool that appeared in Qt 6.

          Can you install the Qt 6 declarative package as well ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          A 1 Reply Last reply
          0
          • SGaistS SGaist

            I just double checked and it's a tool that appeared in Qt 6.

            Can you install the Qt 6 declarative package as well ?

            A Offline
            A Offline
            alanbtr
            wrote on last edited by
            #5

            @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 then tab for showing all the available command, I don't see qmlls :

            ➜  ~ 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                                   
            
            1 Reply Last reply
            0
            • A Offline
              A Offline
              alanbtr
              wrote on last edited by alanbtr
              #6

              Ok, I manage to have the qmlls6 command with the setup of the following var export 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)

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #7

                Qt Declarative is the module that manages QML. QtQuick implements a visual library on to be used with QML.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                1 Reply Last reply
                2

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved