Bug 488013 - Overlays on top of text edit area are displayed as empty boxes when display scaling is set to 200%
Summary: Overlays on top of text edit area are displayed as empty boxes when display s...
Status: RESOLVED DUPLICATE of bug 487505
Alias: None
Product: kate
Classification: Applications
Component: general (show other bugs)
Version: 24.05.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-04 09:14 UTC by Pavel Urusov
Modified: 2024-06-15 15:38 UTC (History)
1 user (show)

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


Attachments
demonstration of the issue (1.24 MB, video/webm)
2024-06-04 09:14 UTC, Pavel Urusov
Details
empty git overlay (157.11 KB, image/png)
2024-06-04 20:25 UTC, Pavel Urusov
Details
Empty git overlay on top of the text edit area (1.84 MB, image/png)
2024-06-04 20:28 UTC, Pavel Urusov
Details
empty Git overlay on top of the text edit area (190.45 KB, image/png)
2024-06-04 20:31 UTC, Pavel Urusov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pavel Urusov 2024-06-04 09:14:49 UTC
Created attachment 170127 [details]
demonstration of the issue

SUMMARY

LSP tooltips in Kate don't always show correctly, in fact they are displayed correctly only sometimes. Usually they are displayed as empty boxes.

It seems there are at least several problems related to LSP tooltips in Kate:

1) the size of the tooltips is seemingly random, sometimes they are large and sometimes they are small
2) if the tooltip is correctly sized for the text and empty, it will always remain empty
3) if the tooltip is too small for the text and empty, scrolling it would show the text correctly

STEPS TO REPRODUCE
1. Install Kate and at least one language server (in my case I am using bash-language-server for working with shell scripts)
2. Open a file which would trigger an LSP suggestion
3. Observe the issue

OBSERVED RESULT

In the majority of cases, LSP tooltips are displayed as empty boxes with no text. In addition to that, the size of LSP tooltip boxes seems to be random.

EXPECTED RESULT

LSP tooltips always show text.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240524
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.0
Kernel Version: 6.9.1-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 560 Series
Comment 1 Pavel Urusov 2024-06-04 09:29:46 UTC
The bug seems to be related to display scaling, if I set scaling to 100%, the popups always show up correctly (and correctly sized)

Unfortunately, on my 23" 4K monitor everything is unbearably small at 100% scaling.
Comment 2 Pavel Urusov 2024-06-04 09:33:48 UTC
I did some more testing and the issue happens only when display scaling is set to 200%. Does not happen at 150% or 175%
Comment 3 Pavel Urusov 2024-06-04 20:16:01 UTC
The issue is still present after upgrade to 24.05.0

New system information:

Operating System: openSUSE Tumbleweed 20240531
KDE Plasma Version: 6.0.5
KDE Frameworks Version: 6.2.0
Qt Version: 6.7.1
Kernel Version: 6.9.3-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 560 Series
Comment 4 Pavel Urusov 2024-06-04 20:24:31 UTC
After further investigation, I have discovered that this bug affects ALL overlays that are displayed on top of the text editing area, e.g. the Git overlay is also affected (please see the attached screenshot)
Comment 5 Pavel Urusov 2024-06-04 20:25:27 UTC
Created attachment 170148 [details]
empty git overlay
Comment 6 Pavel Urusov 2024-06-04 20:28:07 UTC
Created attachment 170149 [details]
Empty git overlay on top of the text edit area

This image correctly shows the empty Git overlay on top of the text edit area
Comment 7 Pavel Urusov 2024-06-04 20:31:27 UTC
Created attachment 170150 [details]
empty Git overlay on top of the text edit area

Third time is a charm, sorry for the amount of comments (I accidentally discovered a bug in Spectacle while reporting this issue)
This image correctly shows the empty Git overlay on top of the text edit area
Comment 8 Christoph Cullmann 2024-06-15 15:38:16 UTC
*** This bug has been marked as a duplicate of bug 487505 ***