https://pantsbuild.org/ logo
#development
Title
# development
a

aloof-angle-91616

12/10/2018, 2:48 AM
also the error messaging when you can't satisfy a rule (in this case, i was trying to
yield Get(Snapshot, PathGlobsAndRoot, ...)
) made me waste several hours today because it just said "no installed rules could satisfy the selection" or something and i'm not sure where to change to make that better
a

average-vr-56795

12/10/2018, 1:47 PM
Fun fact - you get exactly the same error message if there are ambiguous routes through the graph, or loops
w

witty-crayon-22786

12/10/2018, 4:52 PM
ambiguous routes gets you a different error, but yea a loop would be the same one.
a

aloof-angle-91616

12/10/2018, 5:57 PM
yeah i was thinking like how could this have been solved in general with like finding paths to things, but upon waking up i realized all i wanted was to note the specific e.g.
yield Get(...)
which caused the failure
a

average-vr-56795

12/10/2018, 6:25 PM
Ambiguous routes got you the exact same error as of Thursday...
w

witty-crayon-22786

12/10/2018, 7:15 PM
@average-vr-56795: a repro of that would be good... you should be getting https://github.com/pantsbuild/pants/blob/master/src/rust/engine/src/rule_graph.rs#L176-L193
a

average-vr-56795

12/10/2018, 9:43 PM
w

witty-crayon-22786

12/10/2018, 9:50 PM
thanks!