Well, this is frustrating :man-facepalming: ```Th...
# development
w
Well, this is frustrating 🤦‍♂️
Copy code
The `@rule_helper` decorator is no longer needed. `@rule` methods may call any other methods, and if they are `async` may also use `Get` and `MultiGet`.
Copy code
native_engine.IntrinsicError: Get(TargetRootsToFieldSets, TargetRootsToFieldSetsRequest, TargetRootsToFieldSetsRequest(field_set_superclass=<class 'pants.core.goals.package.PackageFieldSet'>, goal_description='', no_applicable_targets_behavior=<NoApplicableTargetsBehavior.ignore: 'ignore'>, shard=0, num_shards=-1)) was not detected in your @rule body at rule compile time. Was the `Get` constructor called in a separate function, or perhaps dynamically? If so, it must be inlined into the @rule body.
1
🤦 1
Not really sure how to fix this other than putting all my code into one function, which is kinda blah for an optional rule
c
the wording was just changed on
main
to better highlight the true issue here. You need your async method declared before your rule.
w
🙏🙏🙏🙏🙏
c
not ideal still, I’ll look into fixing this properly at some point…
🤜 1