Skip to content
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

Need a clear error message when Pkg.add fails #823

Closed
hearnsj opened this issue Oct 13, 2018 · 2 comments
Closed

Need a clear error message when Pkg.add fails #823

hearnsj opened this issue Oct 13, 2018 · 2 comments

Comments

@hearnsj
Copy link

hearnsj commented Oct 13, 2018

The verbose error message when Pkg.add cannot find a compatible version of a package is highly confusing. It is not at all clear to beginenrs what is happening here.
The error message should start by saying without ambiguity:
You are trying to install Package XYZ. I can find no version of this package which is compatible with the version of Julia which you are using or the currently installed packages.

For example:
https://discourse.julialang.org/t/pkg-add-error-unsatisfiable-requirements-how-to-understand-and-attack-these/16213/11

The current error messages plus lots of version numbers:
possible versions are:
restricted by compatibility requirements with LanguageServer:
restricted by julia compatibility requirements to versions:

Yes, these are needing for figuring out what the exact problem is. However the key phrase is at the end and is unparseable by me anyway:
restricted by julia compatibility requirements to versions: 0.4.0-0.4.1 or uninstalled - no versions left

I now know this means 'Hey - this package only works in Julia 0.0.0 to 0.4.1'.
But the 'or uninstalled' is pretty meaningless.

@fredrikekre
Copy link
Member

See #819

@hearnsj
Copy link
Author

hearnsj commented Oct 13, 2018

@fredrikekre Very much accepted

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

No branches or pull requests

2 participants