Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upResolve errors are likely quite obscure #782
Comments
alexcrichton
added
the
E-hard
label
Oct 30, 2014
This comment has been minimized.
This comment has been minimized.
|
There is some code for errors, but I'm dubious of the quality of it. |
alexcrichton
added
the
P-high
label
Oct 30, 2014
alexcrichton
added
the
A-errors
label
Jan 14, 2015
alexcrichton
referenced this issue
Feb 16, 2015
Closed
package versioning conflicts result in unhelpful error #1304
This comment has been minimized.
This comment has been minimized.
|
Just to add another example of someone having trouble parsing these types of errors: http://www.reddit.com/r/rust/comments/2w6scv/regex_macros_from_cratesio_seems_to_be_broken/ |
aneeshusa
referenced this issue
Apr 13, 2015
Closed
Use RangeError for TextEncoder/TextDecoder #5620
alexcrichton
referenced this issue
Jan 19, 2016
Closed
'cargo update' results in unrelated(?) error with unrelated package #2293
This comment has been minimized.
This comment has been minimized.
|
Minimal steps to reproduce this (I think?):
|
This comment has been minimized.
This comment has been minimized.
|
@frewsxcv that error message is expected: Cargo considers 0.0.4 is incompatible with 0.0.2. This gave me a lead for #2293, and I think the cause is the same although the error message there is bad. You need to change https://github.com/aweinstock314/rust-clipboard/blob/master/Cargo.toml |
This comment has been minimized.
This comment has been minimized.
|
@SimonSapin how about this:
|
This comment has been minimized.
This comment has been minimized.
|
Thanks for the minimized test case @frewsxcv! Your thoughts on #2293 were correct in that I don't believe it was related to that bug at all. In any case, however, I've now submitted a fix for this bug |
This comment has been minimized.
This comment has been minimized.
|
Awesome, thanks! |
alexcrichton
referenced this issue
Apr 4, 2016
Closed
Request: provide path-to-root of conflict #2544
brson
removed
the
P-high
label
Jun 23, 2016
This comment has been minimized.
This comment has been minimized.
|
@alexcrichton removed P-high on this inactive bug. |
This comment has been minimized.
This comment has been minimized.
|
@brson sounds good to me |
This comment has been minimized.
This comment has been minimized.
elahn
commented
Apr 26, 2017
|
This is still quite obscure when you've never hit a resolve error and don't know to run
Files for test case: test_resolve_syn.zip |
This comment has been minimized.
This comment has been minimized.
|
Yes. It is especially obscure when the dep is a dep-of-a-dep We also had the unfortunate situation of not being able to upgrade deps independently:
This situation was caused by a git merge conflict in the Cargo.lock. I rolled back the Cargo.lock to head and tried to resolve by merging the Cargo.tomls and ended up here. Got out of it by doing |
This comment has been minimized.
This comment has been minimized.
seeekr
commented
Jun 6, 2017
•
|
I did not know about
error and then do a bit of reading to figure out what is happening. If someone wants to point me to where one would have to start in order to generate a PR for improving this, I'd be happy to spend some time on it. |
This comment has been minimized.
This comment has been minimized.
|
@seeekr all of resolution happens in this module, but there's unfortunately not really an easy way to jump in right now :( |
This comment has been minimized.
This comment has been minimized.
|
Move to close, error messages have gotten better and there are other open issues about it. |
This comment has been minimized.
This comment has been minimized.
|
Agreed! |
alexcrichton commentedOct 30, 2014
There's not a huge amount of infrastructure to generate meaningful errors in resolve, and the errors are likely difficult to read and interpret. Need to invest some time into figuring out error conditions, producing high quality errors, and implementing it.