You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: updating only an importer points its include at a phantom bare-stem node when the target has a same-stem sibling #5630
I have checked the Troubleshooting section in the README
What happened?
foo.c and foo.h both yield the file id foo, so a full build salts them to foo_c_foo and foo_h_foo, and main.c's #include "foo.h" points at foo_h_foo.
If only main.c changes, graphify update (and a repeated graphify extract) re-extracts main.c alone. Neither colliding file is in that batch, so no collision is seen, and the include stays on the bare foo. The graph gains a sourceless foo node a full build never has, and loses the edge to the real header.
The same happens in C++ (w.cpp/w.hpp) and TS (import { a } from './index' next to index.ts/index.js). This is the importer side of #5464 / #5505, which fixed the colliding files themselves.
Then compare with a fresh graphify update . of the same tree.
Error output or graph output
nodes, update: foo, foo_c_foo, foo_foo, foo_h_foo, main, main_main
nodes, full build: foo_c_foo, foo_foo, foo_h_foo, main, main_main
only in update: main -> foo imports
only in full build: main -> foo_h_foo imports
Activity
github-actions commentedon Nov 29, 2026
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.