Bug 492081 - Sometimes the LSP plugin box doesn't close and any new token you hover over has its language server response appended to the box
Summary: Sometimes the LSP plugin box doesn't close and any new token you hover over h...
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 24.08.0
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-08-23 13:12 UTC by Adam Fontenot
Modified: 2024-08-23 18:18 UTC (History)
1 user (show)

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


Attachments
screen recording of the issue (37.75 KB, video/webm)
2024-08-23 13:12 UTC, Adam Fontenot
Details

Note You need to log in before you can comment on or make changes to this bug.
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.