Godot addon: Linter: The background color of linted lines disappear if the script is edited
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Riproduci il problema in Godot 4.6 con GDScript formatter 0.18.2 eseguendo il linting di uno script nell’editor di script di Godot, modificandolo e aspettando il ridisegno. Traccia il comportamento dell’evidenziazione del lint intorno al punto di ingresso Format > Lint Current Script; è completato quando i colori del lint rosso e giallo rimangono visibili dopo la modifica e il ridisegno ritardato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
- Using GDScript formatter 0.18.2 with Godot 4.6 on Windows
- On linting a file, problematic lines are colored in red or yellow to indicate a linter error or warning. These colors disappear within 1-2 seconds of editing the script in Godot script editor (even without saving the file).
Reproduce
- Write a script with a linter issue :
func _init() -> void:
print("hello")
pass # <- this produces a linter warning (unnecessary-pass)
- Lint it (Ctrl+S or Format > Lint Current Script). The
passline is now colored in yellow. - Edit it (you can just add a new line, or edit the comment).
Expected behaviour
- The
passline coloration do not change.
Observed behaviour
- The
passline coloration disappear after 1-2 seconds.
Additional informations
This behaviour can be indirectly triggered by saving the script, because saving the script can trigger the formatting and edit the script.
Also: Godot seems to redraw the script editor if the script is edited, then left unedited for 1-2 seconds. I believe this is the cause of this behaviour.
- Lingua principale
- Rust
- Stelle
- 458
- Fork
- 40
- Merge medio
- 1g 15h
- PR unite (30g)
- 4
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GDQuest/GDScript-formatter
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
GDQuest/GDScript-formatter#362 · 2 commenti ·
-
Godot 4.8.dev6 Parse Error Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
GDQuest/GDScript-formatter#359 · 9 commenti ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
GDQuest/GDScript-formatter#327 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
GDQuest/GDScript-formatter#361 · 3 commenti ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 58/100
GDQuest/GDScript-formatter#360 ·
Tutte le issue di GDQuest/GDScript-formatter
Issue simili
-
Replayed reasoning items send "content": null, which the Responses API schema does not permit Apertabug CLI custom-model
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
rust-bitcoin/rust-bitcoin#6930 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
fulcrumgenomics/ferro-hgvs#2251 ·
-
A-allocators A-docs C-enhancement T-libs
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100