[Bug]: graphify update skips or partially rebuilds a missing graph when the manifest survives

オープン 初心者向け
#5,016 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@azizur100389 がすでに取り組んでいます。

2026年11月5日 から。

  • #5021 @azizur100389 による — オープン

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
77/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
python
領域
data

調査の方向性

まず graphify update と、#4801 で導入されたマニフェスト由来の更新経路をたどり、次に AST グラフの作成に使われる完全な再構築経路を見つけます。graphify-out/manifest.json は残したまま graphify-out/graph.json を削除し、その後 graphify update . --no-cluster を実行して再現します。ソースに変更がある場合もない場合も、更新によってグラフ全体が再作成されれば完了です。

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

説明

Reproduction

Confirmed on v8 at 59b5ab11 (0.9.102), Python 3.12 on Windows. No LLM or API credentials are needed.

  1. Put def first(): return 1 in first.py and def second(): return 2 in second.py in a clean directory.
  2. Run graphify update . --no-cluster.
  3. Delete only graphify-out/graph.json. Leave graphify-out/manifest.json in place.
  4. Run the same update again. Repeat after changing just first.py.
Actual behavior

With no source changes, update exits successfully without recreating the file. With one changed source, it creates a graph containing only that source. The manifest identifies changed bytes but cannot supply unchanged nodes and edges.

Expected behavior

Recreate the complete AST graph using the existing full rebuild path whenever the output graph is absent.

This is a follow-up to the manifest-derived update path in #4801.

主要言語
Python
スター
124k
フォーク
11.9k
平均マージ
2時間 35分
マージ済み PR(30日)
6

環境構築

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

はじめの一歩

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

Graphify-Labs/graphify のほかの issue

Graphify-Labs/graphify の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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