Highlights and inlay hints randomly get offset
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 30/100
Rechercherichtung
The payload names no files or tests, so start by reproducing: open a long Java file in Zed with this extension, make edits, and check whether highlights and parameter inlay hints drift further down the file, as the screenshots show. The reporter says a save refreshes the positions, so compare the positions the language server sends after an edit with the ones Zed renders. Done means the offset stops appearing after edits without a save, with a reproduction and a note on whether the cause is in the extension, Zed, or JDTLS.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
I don't know if this is a bug with the extension, Zed or JDTLS, but it has been happening for months so I figured I might as well report it and hopefully one of you guys here can find where the actual issue is.
Like the issue title says, there is a disconnect between the positions where highlights and inlay hints should be in the code and where Zed displays them.
Here is a screenshot of the parameter name inlay hints to show what I mean:
And what it should look like:
And here for highlights (I have the cursor inside lastName here):
I haven't figured out what it is that triggers this; it just happens every now and then when I edit the code in a file. It also does not happen across the entire file; it starts at some point and then gradually gets worse the further down the file I go from there. If I make any change to the file and save it, the LSP will refresh the information and everything ends up in the right spot again (i.e. the offset issue disappears).
This is quite annoying, although not vital since it disappears after doing an edit and saving.
Zed: v1.6.3+stable.306.601ecb3ee5c16940191818ee7f244837abf6983c (Zed)
OS: Windows 10.0.26100
Memory: 31.7 GiB
Architecture: x86_64
- Vorherrschende Sprache
- Rust
- Sterne
- 225
- Forks
- 47
- Ø Merge
- 3 Std.
- Gemergte PRs (30 T.)
- 5
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus zed-extensions/java
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
zed-extensions/java#325 · 1 Kommentar ·
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
zed-extensions/java#133 · 1 Kommentar ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
zed-extensions/java#324 · 1 Kommentar ·
-
language-server
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
zed-extensions/java#246 · 4 Kommentare ·
-
language-server
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 18/100
zed-extensions/java#233 · 16 Kommentare ·
Alle Issues in zed-extensions/java
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 69/100
Maintainer antworten meist innerhalb von 1 Tag
-
A match arm above the largest i64 is compared as 0Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 83/100
DioxusLabs/dioxus#6063 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`nsh-core` fails to compile when taffy's default `calc` feature is enabled elsewhere in the graphOffen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
longbridge/nsh#966 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Windows docs: pin a tested ConPTY version for Kitty graphics; 1.25.260930003 corrupts large uploadsOffen
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 88/100
raphamorim/rio#2021 ·
Maintainer antworten meist innerhalb von 1 Tag