Another rule graph error :sob: ```@rule(desc="Set ...
# plugins
b
Another rule graph error 😭
Copy code
@rule(desc="Set up debugpy to run an interactive Pytest session", level=LogLevel.DEBUG)
async def debugpy_python_test(field_set: PythonTestFieldSet) -> TestDebugUsingDAPRequest:
    ...
And then in `test.py:
Copy code
debug_requests = await MultiGet(
        (
            Get(TestDebugUsingDAPRequest, TestFieldSet, field_set)
            if test_subsystem.debug_dap
            else Get(TestDebugRequest, TestFieldSet, field_set)
        )
        for field_set in targets_to_valid_field_sets.field_sets
    )
Yet...
Copy code
No installed rules return the type PythonTestFieldSet, and it was not provided by potential callers of @rule(pants.backend.python.goals.pytest_runner:395:debugpy_python_test(PythonTestFieldSet) -> TestDebugUsingDAPRequest).
    If that type should be computed by a rule, ensure that that rule is installed.
    If it should be provided by a caller, ensure that it is included in any relevant Query or Get.
✅ 1
https://github.com/thejcannon/pants/tree/dap if anyone wants to splash around liek I am
It kinda seems like the engine isn't respecting the
UnionRule
for
UnionRule(TestFieldSet, PythonTestFieldSet),
but only in my rule (the rule immediately above it which has an identical interface is OK)
OK, oddly if I remove the
field_set
from the new rule's signature it's OK with the
Get
. 🤔
Ohhh now this is odd!!! If I move the field_set parameter to be the last one, now the engine complains about the new first parameter (in this case
debugpy
)