-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Give a better error message when the version output can't be parsed #33
Comments
To be clear, that is the error one gets when doing However, that would not even have been useful in this case -- the text is empty. What would have been useful is if |
So just for my context -- miri is relying on this crate? That's good to know. (It doesn't show up as a dependent crate on crates.io, since I guess it's used as a path dependency inside the compiler repo?) |
@djc crates.io only shows crates that have been published to crates.io, and miri hasn't. miri isn't using a path dependency, it's just downloading from crates.io normally. |
Yes, Miri -- or rather, its cargo wrapper -- depends on rustc_version to determine the default target of the toolchain it is running in. Thanks a lot for making that so easy. :) |
Currently, when the version output isn't recognized,
rustc_version
gives an error like this:However this is very unhelpful for determining the actual issue, which is that the dynamic libraries were not set up correctly:
It would be great to either print the full output of the command on failure, or to store it in the error message so the library user can report it themselves.
The text was updated successfully, but these errors were encountered: