Project sometimes crashes when staging deleted or renamed files.

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

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

評価

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

調査の方向性

ソースファイルもテストも指定されていません。まず、Godot Editor の Commit/Unstaged Changes ビューから削除または名前変更したファイルを staging する操作を再現し、その後、plugin の動作を報告されている回避策 git rm <file> と比較してください。これらの変更を staging してもプロジェクトがクラッシュせず、再度開くことも妨げられなくなれば完了です。

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

説明

bug

Godot v4.0.4.stable.official [fc0b241c9] / Plugin v.3.0.0

This problem has occurred a couple of times. I deleted a file from inside the Godot Editor. Then the file deletion is listed in Commit/Unstaged Changes in the Inspector. When I attempt to stage the change, the project closes, and cannot be re-opened from the Godot project manager.

After that happens, the only solution I found is to restore the project from a working backup. Maybe the project could be fixed using Git commands outside of Godot, but I couldn't find a way to do that. (I'm a Git novice; a Git expert might have ideas.)

A workaround is instead of staging a file deletion using the plugin, use this Git command outside of the Godot editor:
git rm <file>

Then the deleted file will move from Commit/Unstaged Changes to Commit/Staged Changes, and the change can be committed.

This problem does not always happen when deleting files. I tried to create a minimal reproduction project, but was not successful.

主要言語
C++
スター
966
フォーク
100
PR マージ指標
30日以内にマージされた PR はありません

環境構築

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

はじめの一歩

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

godotengine/godot-git-plugin のほかの issue

godotengine/godot-git-plugin の issue をすべて見る

似ている issue

C++ の issue をもっと見る

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

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