Bug 511318

Summary: LSP Client plugin out of order messages
Product: [Applications] kate Reporter: qclab
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: Git   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: LSP log snippet

Description qclab 2025-10-29 13:27:12 UTC
Created attachment 186290 [details]
LSP log snippet

SUMMARY
LSP Client plugin displays error messages on typing.


STEPS TO REPRODUCE
1.  Open a Go project with the LSP server installed and the LSP Client plugin enabled.
2.  Ensure options 'Show notifications from LSP server' and 'Highlight symbol under cursor' are enabled.
3.  Place cursor at the end of a line in a Go file.
4.  Type repeatedly.

OBSERVED RESULT
An error message from the LSP server is displayed.

EXPECTED RESULT
No error message is displayed.

SOFTWARE/OS VERSIONS
Kate: 25.11.70
KDE Frameworks: 6.19.0
Qt: Using 6.9.2 and built against 6.9.2
Windows 10 Version 22H2
Build ABI: x86_64-little_endian-llp64
Kernel: winnt 10.0.19045


ADDITIONAL INFORMATION
Server logging shows 'textDocument/documentHighlight' sent before 'textDocument/didChange'. The client is therefore requesting highlight information on part of the document model it has not yet sent to the server.