Skip to content

[Bug]: incremental update leaves an unchanged importer on the unresolved-import placeholder after the imported file is added #5631

In progress

Description

@0xkaushik-ai

Pre-flight checks

  • I have checked the Troubleshooting section in the README

What happened?

When a file is added that an unchanged file already imports, an incremental rebuild (graphify update, the git hook, watch) leaves the importer on the placeholder it got while the import was unresolved. A full build of the same tree links it to the new file and draws the imports / calls edges.

Seen in Python, TypeScript and Go. The importer is not re-extracted, so nothing re-resolves its import.

Steps to reproduce

mkdir p && cd p
printf 'from a import f\n\ndef g():\n    return f()\n' > b.py
graphify update .
printf 'def f():\n    return 1\n' > a.py
graphify update .

Then compare with a fresh graphify update . of the same tree.

Error output or graph output

only in full build: b   -> a_f  imports
only in full build: b_g -> a_f  calls

TypeScript (n.ts: import { m } from './m', then add m.ts): the update keeps n -> ref_m; the full build has n -> m, n -> m_m and n_n -> m_m (calls).
Go (main.go imports ex/p, then add p/p.go): the update keeps main -> go_pkg_ex_p; the full build has main -> p_p and main_main -> p_p_p (calls).

Graphify version

0.9.123 (v8 5d962d2d)

Operating System

Linux

Python Version

3.12.13

Installation Method

From source (uv sync --all-extras on v8)

Activity

  1. github-actions commented on Nov 29, 2026

    @github-actions

    Thanks for opening this issue, @0xkaushik-ai. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions