index update discovers and hashes all files but only reprocesses files whose content hash changed (src/index/pipeline.rs:59-79). Import resolution is then performed only for that changed set (src/index/pipeline.rs:110-132). Adding, deleting, or renaming a file can change whether an unchanged importer resolves, but that importer is never re-resolved.
Reproduction:
Create a.py containing import c, with no c.py.
Run index create.
Add c.py.
Run index update.
find importers c.py returns []; a full index create finds a.py.
Please re-resolve affected importers when the file set changes, or fall back to rebuilding the import graph while retaining the content-hash optimization for symbols and file content.
`index update` discovers and hashes all files but only reprocesses files whose content hash changed (`src/index/pipeline.rs:59-79`). Import resolution is then performed only for that `changed` set (`src/index/pipeline.rs:110-132`). Adding, deleting, or renaming a file can change whether an unchanged importer resolves, but that importer is never re-resolved.
Reproduction:
1. Create `a.py` containing `import c`, with no `c.py`.
2. Run `index create`.
3. Add `c.py`.
4. Run `index update`.
5. `find importers c.py` returns `[]`; a full `index create` finds `a.py`.
Please re-resolve affected importers when the file set changes, or fall back to rebuilding the import graph while retaining the content-hash optimization for symbols and file content.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
index updatediscovers and hashes all files but only reprocesses files whose content hash changed (src/index/pipeline.rs:59-79). Import resolution is then performed only for thatchangedset (src/index/pipeline.rs:110-132). Adding, deleting, or renaming a file can change whether an unchanged importer resolves, but that importer is never re-resolved.Reproduction:
a.pycontainingimport c, with noc.py.index create.c.py.index update.find importers c.pyreturns[]; a fullindex createfindsa.py.Please re-resolve affected importers when the file set changes, or fall back to rebuilding the import graph while retaining the content-hash optimization for symbols and file content.
Fixed in commit
4338e28.