Bug 495054

Summary: Missing LSP client on Kubuntu 24.04
Product: [Applications] kate Reporter: 5pd25py8 <5pd25py8>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: christoph, rikmills, waqar.17a
Priority: NOR    
Version First Reported In: 23.08.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of Plugins menu with no LSP client
terminal output
output log
lsp client plugin available in Kubuntu 24.04.1

Description 5pd25py8 2024-10-19 18:00:15 UTC
Created attachment 175031 [details]
Screenshot of Plugins menu with no LSP client

SUMMARY
Can't activate LSP client on Kubuntu 24.04.1

STEPS TO REPRODUCE
1. Open Configure Kate -> Settings -> Plugins on fresh Kubuntu installation

OBSERVED RESULT
No LSP client plugin

EXPECTED RESULT
Option to activate LSP plugin in Plugins menu

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Kubuntu 24.04
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
/
Comment 1 Waqar Ahmed 2024-10-19 18:27:30 UTC
Do you see any output on the terminal when you run kate?
Comment 2 5pd25py8 2024-10-19 21:32:56 UTC
(In reply to Waqar Ahmed from comment #1)
> Do you see any output on the terminal when you run kate?

No, there is nothing in the terminal when I execute `kate`
Comment 3 5pd25py8 2024-10-19 21:35:29 UTC
Created attachment 175037 [details]
terminal output
Comment 4 Waqar Ahmed 2024-10-19 21:40:35 UTC
you have to run kate in blocking mode for that, do the following:

export QT_DEBUG_PLUGINS=1
export LD_DEBUG=libs
kate -b &> output.txt

This will create a file output.txt, share that file.
Comment 5 5pd25py8 2024-10-19 22:34:39 UTC
Created attachment 175041 [details]
output log

Adding output logs per given instructions
Comment 6 Christoph Cullmann 2024-10-19 22:48:07 UTC
Found metadata in lib /usr/lib/x86_64-linux-gnu/qt5/plugins/ktexteditor/lspclientplugin.so, metadata=
{
    "IID": "org.kde.KPluginFactory",
    "MetaData": {
        "KPlugin": {
            "Description": "Record and play keyboard macros (i.e., keyboard action sequences)",
            "Description[az]": "Klaviatura makroslarını (məs.,klaviatura əməlləri ardıcıllıqları) yazın və oynadın",
            "Description[bg]": "Записване и възпроизвеждане на макроси на клавиатурата (т.е. последователности от действия на клавиатурата)",
            "Description[ca@valencia]": "Grava i reproduïx macros de teclat (és a dir, una seqüència d'acció de teclat)",
            "Description[ca]": "Enregistra i reprodueix macros de teclat (és a dir, una seqüència d'acció de teclat)",
            "Description[de]": "Tastaturmakros (also Tastenfolgen) aufnehmen und wiedergeben",
            "Description[el]": "Καταγραφή και αναπαραγωγή μακροεντολών πληκτρολογίου (δηλ. ακολουθίες ενεργειών του πληκτρολογίου)",
            "Description[en_GB]": "Record and play keyboard macros (i.e., keyboard action sequences)",
            "Description[eo]": "Registri kaj efektivigi klavarajn makroojn (t.e. klavarajn agsekvencojn)",
            "Description[es]": "Guardar y reproducir macros de teclado (es decir, secuencias de acciones de teclado)",
            "Description[eu]": "Grabatu eta ekin teklatuko makroak (adib. teklatuko ekintza sekuentziak)",
            "Description[fi]": "Nauhoita ja toista näppäinmakroja (ts. näppäimistön toimintasarjoja)",
            "Description[fr]": "Enregistrer et lire les macros de clavier (Par exemple, séquences d'actions au clavier)",
            "Description[gl]": "Grava e reproduce macros de teclado (é dicir, secuencias de acción de teclado).",
            "Description[hu]": "Billentyűzetmakrók rögzítése és lejátszása (például billentyűzet műveletsorozatok)",
            "Description[ia]": "Registra e exeque macros de claviero (i.e. sequentias de action de claviero)",
            "Description[ie]": "Registrar e reproducter macros de tastatura (t.e. sequenties de tastes)",
            "Description[it]": "Registra ed esegui le macro da tastiera (cioè una sequenza di azioni da tastiera)",
            "Description[ka]": "კლავიატურის მაკროების ჩაწერა და გაშვება (ანუ, კლავიატურის ქმედების მიმდევრობები)",
            "Description[ko]": "키보드 매크로를 기록하고 재생",
            "Description[nl]": "Neem toetsenbordmacro's op en speel ze af (d.w.z., toetsenbordactiereeksen).",
            "Description[pl]": "Nagraj i odtwórz makra klawiaturowe (tj. naciśnięcia klawiszy na klawiaturze)",
            "Description[pt]": "Gravar e reproduzir macros do teclado (i.e., sequências de acções do teclado)",
            "Description[ru]": "Запись и воспроизведение клавиатурных макросов (последовательностей действий на клавиатуре)",
            "Description[sk]": "Nahrávanie a prehrávanie makier klávesnice (t. j. sekvencií akcií na klávesnici)",
            "Description[sl]": "Posnemi in poženi makroje tipkovnice (npr. zaporedja pritiskov tipk)",
            "Description[sv]": "Spela in och återge tangentbordsmakron (dvs. kommandosekvenser med tangentbordet)",
            "Description[tr]": "Klavye makroları kaydet ve oynat (örn. klavye eylem sıralaması)",
            "Description[uk]": "Запис і відтворення клавіатурних макросів (тобто послідовностей дій з клавіатури)",
            "Description[vi]": "Ghi và chạy vĩ lệnh bàn phím (chuỗi hành động bàn phím)",
            "Description[x-test]": "xxRecord and play keyboard macros (i.e., keyboard action sequences)xx",
            "Description[zh_CN]": "录制并播放键盘宏 (即击键序列)",
            "Name": "Keyboard Macros",
            "Name[az]": "Klaviatura makrosları",
            "Name[bg]": "Клавиатурни макроси",
            "Name[ca@valencia]": "Macros de teclat",
            "Name[ca]": "Macros de teclat",
            "Name[cs]": "Makra klávesnice",
            "Name[de]": "Tastaturmakros",
            "Name[el]": "Μακροεντολές πληκτρολογίου",
            "Name[en_GB]": "Keyboard Macros",
            "Name[eo]": "Klavaraj makrooj",
            "Name[es]": "Macros de teclado",
            "Name[eu]": "Teklatuko makroak",
            "Name[fi]": "Näppäinmakrot",
            "Name[fr]": "Macros pour le clavier",
            "Name[gl]": "Macros de teclado",
            "Name[hu]": "Billentyűzetmakrók",
            "Name[ia]": "Macros de Claviero",
            "Name[ie]": "Macros de tastatura",
            "Name[it]": "Macro da tastiera",
            "Name[ka]": "კლავიატურის მაკროები",
            "Name[ko]": "키보드 매크로",
            "Name[nl]": "Toetsenbordmacro's",
            "Name[pl]": "Makra klawiaturowe",
            "Name[pt]": "Macros do Teclado",
            "Name[pt_BR]": "Macros de teclado",
            "Name[ru]": "Макросы клавиатуры",
            "Name[sk]": "Makrá klávesnice",
            "Name[sl]": "Makroji tipkovnice",
            "Name[sv]": "Tangentbordsmakron",
            "Name[tr]": "Klavye Makroları",
            "Name[uk]": "Клавіатурні макроси",
            "Name[vi]": "Vĩ lệnh bàn phím",
            "Name[x-test]": "xxKeyboard Macrosxx",
            "Name[zh_CN]": "键盘宏"
        }
    },
    "archreq": 0,
    "className": "KeyboardMacrosPluginFactory",
    "debug": false,
    "version": 331520
}
Comment 7 Christoph Cullmann 2024-10-19 22:49:10 UTC
That looks like a big packaging fault.
Comment 8 Christoph Cullmann 2024-10-19 23:17:36 UTC
lspclientplugin.so contains the "Keyboard Macros" if I don't misread that...
Comment 9 Christoph Cullmann 2024-10-19 23:51:26 UTC
Please report that to Kubuntu. The packaged the macros plugin as lsp plugin.
Comment 10 Rik Mills 2024-10-20 05:20:46 UTC
Created attachment 175049 [details]
lsp client plugin available in Kubuntu 24.04.1

Testing a freshly installed and updated copy of 24.04.1, the lsp client plugin is available in the settings > plugins menu. See attached screenshot.
Comment 11 Rik Mills 2024-10-20 05:24:00 UTC
(In reply to Christoph Cullmann from comment #9)
> Please report that to Kubuntu. The packaged the macros plugin as lsp plugin.

No. The lsp plugin has not been removed/renamed/replaced or otherwise manipulated in packaging.
Comment 12 Christoph Cullmann 2024-10-20 16:38:02 UTC
(In reply to Rik Mills from comment #11)
> (In reply to Christoph Cullmann from comment #9)
> > Please report that to Kubuntu. The packaged the macros plugin as lsp plugin.
> 
> No. The lsp plugin has not been removed/renamed/replaced or otherwise
> manipulated in packaging.

Then something is horrible broken on the machine of that user if that file has the wrong content.
Comment 13 5pd25py8 2024-10-21 15:42:16 UTC
My system was freshly installed and it is possible that one of the updates caused the issue. Nevertheless, executing the following problem fixed the issue:
sudo apt install --reinstall kate