Godot addon: Linter: The background color of linted lines disappear if the script is edited
まだ誰も着手していません。
評価
調査の方向性
GDScript formatter 0.18.2 を使用し、Godot 4.6 の Godot スクリプトエディタでスクリプトを lint し、編集して、再描画を待つことで問題を再現します。Format > Lint Current Script エントリポイント周辺の lint ハイライトの挙動を追跡します。編集後および遅延した再描画後も赤と黄色の lint カラーが表示されたままになれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Rust
- スター
- 468
- フォーク
- 39
- 平均マージ
- 6時間 24分
- マージ済み PR(30日)
- 3
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
GDQuest/GDScript-formatter のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GDQuest/GDScript-formatter#365 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
GDQuest/GDScript-formatter#360 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
GDQuest/GDScript-formatter#354 · コメント 2 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
GDQuest/GDScript-formatter#353 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 63/100
GDQuest/GDScript-formatter#348 · コメント 3 件 · リアクション 1 件 ·
GDQuest/GDScript-formatter の issue をすべて見る
似ている issue
-
C-bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
rust-lang/rust-analyzer#23501 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
[Bug]: Web chat input doesn't regain focus after a reply finishes対応中かも @GaijinSystems が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
zeroclaw-labs/zeroclaw#11658 ·
メンテナーはふだん 2 日以内に返信
-
good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
bytecodealliance/wasm-tools#2768 ·
メンテナーはふだん 1 日以内に返信