Skip to content

feat: distinguish uncacheable declared deps from unknown imports#146

Merged
pfitzseb merged 1 commit into
mainfrom
sp/unresolved-import-cache-vs-unknown
Jul 15, 2026
Merged

feat: distinguish uncacheable declared deps from unknown imports#146
pfitzseb merged 1 commit into
mainfrom
sp/unresolved-import-cache-vs-unknown

Conversation

@pfitzseb

Copy link
Copy Markdown
Member

Re-lands #135, which merged into the sp/unresolved-import-missing-refs feature branch after that branch had already reached main (via #133), so its change never landed on main. Same commit, now targeting main directly.


An UnresolvedImport on a name the project declares as a dependency (regular_packages / stdlib_packages / deved_packages) now reports that the dependency's symbols could not be indexed/cached, rather than the generic "Failed to resolve" used for names that aren't in the environment at all (typo or missing dependency). The consequence clause (wildcard vs explicit) is unchanged, so existing messages for undeclared names are preserved.

An `UnresolvedImport` on a name the project declares as a dependency
(`regular_packages` / `stdlib_packages` / `deved_packages`) now reports that the
dependency's symbols could not be indexed/cached, rather than the generic
"Failed to resolve" used for names that aren't in the environment at all (typo
or missing dependency). The consequence clause (wildcard vs explicit) is
unchanged, so existing messages for undeclared names are preserved.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@pfitzseb pfitzseb merged commit fe7d12f into main Jul 15, 2026
37 of 39 checks passed
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