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

Improve error reporting for ZLS installs #78

Merged
merged 1 commit into from
Apr 21, 2024

Conversation

dogue
Copy link
Contributor

@dogue dogue commented Apr 21, 2024

This commit improves (enables at all, lol?) errors reported to the user regarding problems with downloading ZLS.

Currently, ZVM silently fails to install ZLS if there is a version mismatch between Zig and ZLS. For instance, the latest release of Zig is 0.12.0 but the latest ZLS is 0.11.0.

This PR does not resolve determining if a mismatch exists, but does at least report (somewhat) useful errors to the user.

This commit improves (enables at all, lol?) errors reported to the user
regarding problems with downloading ZLS.
@dogue
Copy link
Contributor Author

dogue commented Apr 21, 2024

The error messages could probably be improved. This was a quick fix as I ran into this issue organically just now trying to upgrade my installed Zig/ZLS versions.

@tristanisham tristanisham merged commit 3b06529 into tristanisham:master Apr 21, 2024
1 check 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.

2 participants