bitter-ability-32190
06/09/2022, 1:10 AM@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:
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...
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.
bitter-ability-32190
06/09/2022, 2:32 PMbitter-ability-32190
06/09/2022, 3:06 PMUnionRule
for UnionRule(TestFieldSet, PythonTestFieldSet),
but only in my rule (the rule immediately above it which has an identical interface is OK)bitter-ability-32190
06/09/2022, 3:17 PMfield_set
from the new rule's signature it's OK with the Get
. 🤔bitter-ability-32190
06/09/2022, 3:19 PMdebugpy
)bitter-ability-32190
06/09/2022, 3:26 PM