Bug 417371

Summary: texlab LSP does not start on Windows
Product: [Applications] kate Reporter: Marcello Massaro <dev>
Component: applicationAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: christoph, kare.sars
Priority: NOR    
Version First Reported In: 19.12.2   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In: 20.08
Sentry Crash Report:

Description Marcello Massaro 2020-02-10 10:14:49 UTC
SUMMARY
The LSP plugin cannot find the TexLab LSP server

STEPS TO REPRODUCE
1. Have texlab.exe on PATH
2. Open Kate.
3. Enable LSP plugin.
4. Open .tex file.

OBSERVED RESULT
A pop-up shows which tells you that the LSP could not be started.

EXPECTED RESULT
The LSP should start without errors.

SOFTWARE/OS VERSIONS
Windows: 10/Kate installer (not from the store)
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.0
Comment 1 Christoph Cullmann 2020-02-16 12:35:52 UTC
Hi,
thanks for the report, will need to take a look why this happens :/
Perhaps we do something that is only working on Unices.
Comment 2 Kåre Särs 2020-06-23 17:53:10 UTC
Hi,

I fixes an issue with starting the LSP server on windows (I tested with clangd). Can you test with the latest nightly build from binaryfactory.kde.org?
Comment 3 Marcello Massaro 2020-06-26 07:39:07 UTC
So, I tested the store version (https://binary-factory.kde.org/job/Kate_Release_win64/lastSuccessfulBuild/artifact/kate-20.04.2-924-windows-msvc2019_64-cl-sideload.appx) and the "normal" one (https://binary-factory.kde.org/job/Kate_Release_win64/lastSuccessfulBuild/artifact/kate-20.04.2-924-windows-msvc2019_64-cl.exe).

Unfortunately, both still tell that they could not start the language server. Before installing either, I made sure that texlab is really on my path (btw, I'm using texlab 2.2.0, which should be the latest stable version) and it was, at least from a random powershell instance.
Comment 4 Kåre Särs 2020-06-26 08:35:35 UTC
Hi,

Please use the nightly build. The fix was added after 20.04 was branched

Can you try from here:
https://binary-factory.kde.org/view/Windows%2064-bit/job/Kate_Nightly_win64/
Comment 5 Marcello Massaro 2020-06-26 09:43:05 UTC
Sorry for the misunderstanding.

The version 20.07.70, from https://binary-factory.kde.org/view/Windows%2064-bit/job/Kate_Nightly_win64/lastSuccessfulBuild/artifact/kate-master-866-windows-msvc2019_64-cl.exe can successfully start the language server. A super-quick test shows correctly the appropriate suggestions as I type. Awesome!
Comment 6 Kåre Särs 2020-06-26 10:14:47 UTC
Thanks for checking :)

I'll ask on the development list if they feel the bugfix should be backported