Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#202 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
42/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
godot, rust
領域
tooling

調査の方向性

GDScript formatter 0.18.2 を使用し、Godot 4.6 の Godot スクリプトエディタでスクリプトを lint し、編集して、再描画を待つことで問題を再現します。Format > Lint Current Script エントリポイント周辺の lint ハイライトの挙動を追跡します。編集後および遅延した再描画後も赤と黄色の lint カラーが表示されたままになれば完了です。

索引モデルが issue の本文から書いたものです。

説明

help wanted

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 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.

主要言語
Rust
スター
468
フォーク
39
平均マージ
6時間 24分
マージ済み PR(30日)
3

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GDQuest/GDScript-formatter のほかの issue

GDQuest/GDScript-formatter の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。