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

bitter-ability-32190

04/14/2022, 3:10 PM
Where is the rule graph seeded with built-in nodes like Process -> FallibleProcessResult?
1
c

curved-television-6568

04/14/2022, 3:19 PM
I believe that is in engine/intrinsics.rs (on my phone so can't check easily)
e

enough-analyst-54434

04/14/2022, 3:22 PM
b

bitter-ability-32190

04/14/2022, 3:23 PM
Hmmm OK then there's a bug in my code. I'm trying to add a new type which can produce a ProcessResult and am getting graph errors. I added it to the list of intrinsic. I'll keep looking 🔎
Ah yup. Weird if I await a ProcessResult it errors, but awaiting a FallibleProcessResult doesn't
I thought there was a rule to convert Fallible -> (infallible)?
c

curved-television-6568

04/14/2022, 3:25 PM
There is, in process.py.
e

enough-analyst-54434

04/14/2022, 3:26 PM
There is, but rule graph errors are still often ~inscrutable.
b

bitter-ability-32190

04/14/2022, 3:26 PM
For now I'll just await Fallible. It's a PoC anyways