Bug 492081

Summary: Sometimes the LSP plugin box doesn't close and any new token you hover over has its language server response appended to the box
Product: [Applications] kate Reporter: Adam Fontenot <adam.m.fontenot+kde>
Component: generalAssignee: KWrite Developers <kwrite-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: waqar.17a
Priority: NOR    
Version First Reported In: 24.08.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: screen recording of the issue

Description Adam Fontenot 2024-08-23 13:12:45 UTC
Created attachment 172877 [details]
screen recording of the issue

SUMMARY

I've run into this with both rust-analyzer and pyright, it's not language server dependent.

The following trivial snippet reproduces the issue for me with pyright (which I'm using via a `pyright-langserve --stdio` LSP plugin setting):

import sys

def main():
    sys.exit(0)


See video for effect if you can't reproduce.

STEPS TO REPRODUCE
1. Use the pyright language server and open a file containing the snippet above.
2. Hover over the `exit` token, wait for the box to appear, and move the cursor around on top of `exit` for a while.

OBSERVED RESULT

See summary.

Pyright version 1.1.376

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.4
KDE Frameworks Version: 6.5.0
Qt Version: 6.7.2
Kernel Version: 6.10.5-arch1-1 (64-bit)
Comment 1 Waqar Ahmed 2024-08-23 13:40:42 UTC
Yup, also known. A fix is in the works.
Comment 2 Waqar Ahmed 2024-08-23 18:18:16 UTC
On master it should not be reproducible. It is still theoretically possible, but the main bug is gone and a bigger fix will land in future that fixes the theoretical issue as well.

Thanks for reporting.