Skip to content

Improve error message for missing dependencies in packages #58878

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 9, 2025

Conversation

eschnett
Copy link
Contributor

@eschnett eschnett commented Jul 2, 2025

Improve the error message when a module cannot be loaded because dependencies are missing.

I encountered the error message Package X does not have Y in its dependencies:, and this did not give me enough context to understand what the actual problem was.

What was unclear to me is whether this is an error in package X, trying to load Y (it isn't), or whether this is an error in a different module Z try to load X (that's the real reason). The problem is that X is in an inconsistent state and thus cannot be loaded.

The new error message also states that this error comes from a using or import statement, and it includes also the name of the module (Z) where the failing using/import statement occurs.

@giordano giordano added error messages Better, more actionable error messages packages Package management and loading labels Jul 2, 2025
@eschnett
Copy link
Contributor Author

eschnett commented Jul 3, 2025

The Windows CI errors are spurious; can you restart these builds?

1 similar comment
@eschnett
Copy link
Contributor Author

eschnett commented Jul 7, 2025

The Windows CI errors are spurious; can you restart these builds?

@eschnett
Copy link
Contributor Author

eschnett commented Jul 9, 2025

There is again a spuriously failed Windows CI build. Can you restart it?

@IanButterworth IanButterworth merged commit 41613c2 into JuliaLang:master Jul 9, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
error messages Better, more actionable error messages packages Package management and loading
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants