GDQuest / GDQuest/GDScript-formatter

Godot addon: Linter: The background color of linted lines disappear if the script is edited

Abierto
#202 3 comentarios 0 reacciones 0 asignados Ver en GitHub
help wanted
Lenguaje dominante
Rust
Estrellas
455
Forks
39
Merge medio
1 d 15 h
PR fusionados (30 d)
4

Descripción

## 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 :
```gdscript
func _init() -> void:
print("hello")
pass # <- this produces a linter warning (unnecessary-pass)
```
- Lint it (Ctrl+S or Format > Lint Current Script). The `pass` line is now colored in yellow.
- Edit it (you can just add a new line, or edit the comment).

## Expected behaviour
- The `pass` line coloration do not change.

## Observed behaviour
- The `pass` line 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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Línea de trabajo

Reproduce el problema en Godot 4.6 con GDScript formatter 0.18.2 haciendo linting de un script en el editor de scripts de Godot, editándolo y esperando al redibujado. Rastrea el comportamiento del resaltado de lint alrededor del punto de entrada Format > Lint Current Script; se considera hecho cuando los colores de lint rojo y amarillo siguen visibles después de editar y del redibujado diferido.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
godot, rust
Área
tooling
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Bastante claro
Aptitud para principiantes
42/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.