Skip to content

fix: recheck dependent calls after import target changes - #23

Draft
JohnXu22786 wants to merge 4 commits into
mainfrom
fix/recheck-calls-after-import-target-change
Draft

JohnXu22786 wants to merge 4 commits into
mainfrom
fix/recheck-calls-after-import-target-change

Conversation

@JohnXu22786

@JohnXu22786 JohnXu22786 commented Sep 12, 2026 •

Copy link
Copy Markdown
Owner

What this PR does

Before this PR:

Incremental indexing rechecked import targets after a higher-priority file was added, but dependent calls in unchanged importing files could retain stale callee_id values. Even after those calls were rechecked, global and same-module fallback could reintroduce symbols from obsolete targets. Failed resolution passes and default, namespace, or CommonJS binding imports had additional stale-target paths.

After this PR:

Incremental and full-graph resolution retries preserve prior import reachability, recheck dependent calls, and exclude obsolete targets from fallback resolution. Name-based import inference now defers to an already-resolved target when both refer to the same module. Focused regressions cover successful and failed-then-retried target changes, globally unique symbols, and default/namespace/CommonJS bindings.

Type of change

fix

When a newly indexed file supersedes an existing import target, revisit calls in importing files so stale callee IDs are cleared or updated.
When an import target changes, keep symbols from the previous target out of fallback resolution so dependent calls cannot retain stale callee IDs.
Resolution retries need the previous import graph so a newly selected target cannot fall back to a symbol in the obsolete target.
Name-based import inference must not reintroduce an older same-module file after a higher-priority target is selected.
@JohnXu22786 JohnXu22786 reopened this Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant