Bug 502320 - QML Language Server (qmlls) not found: `Failed to find server binary: qmlls`
Summary: QML Language Server (qmlls) not found: `Failed to find server binary: qmlls`
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-02 13:09 UTC by Vincent Wilms
Modified: 2025-04-02 14:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vincent Wilms 2025-04-02 13:09:41 UTC
SUMMARY

STEPS TO REPRODUCE
1. On Arch Linux, install the package `qt6-languageserver`
2. Open a QML file in Kate
3. Get the error `Failed to find server binary: qmlls` in the output window

OBSERVED RESULT
`qmlls` could not be found because the actual name is `qmlls6`.

EXPECTED RESULT
Language server should be found.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: EndeavouOS / Arch
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.3

ADDITIONAL INFORMATION

This LSP configuration produces the error:
```json
         "qml": {
            "command": ["qmlls"],
            "url": "https://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/qmlls",
            "highlightingModeRegex": "^Qml$"
        }
```

And this one works:

```json
        "qml": {
            "command": ["qmlls6"],
            "url": "https://code.qt.io/cgit/qt/qtdeclarative.git/tree/src/qmlls",
            "highlightingModeRegex": "^Qml$"
        }
```
Comment 1 Kåre Särs 2025-04-02 13:33:48 UTC
Thanks for caring.

We used to have qmlls6 at some point IIRC. There are distributions that install the server as qmlls. And the Qt online installer uses the version-less name qmlls. So which one should we use?

My personal solution is to add a soft-link in ~/bin/ that points to the server I want to use.
Comment 2 Vincent Wilms 2025-04-02 14:00:24 UTC
That would be a simple solution, yes. The problem is that for who are new to QML this solution is not obvious. A better error message would be sufficient :-) Or some fallback mechanism in Kate so that it is possible to point to multiple locations / executable names which are tested one by one.