proud-dentist-22844
06/15/2024, 1:06 AMawait Get in its body?
I'm getting this error when I do that:
E native_engine.IntrinsicError: Get(Targets, UnparsedAddressInputs, UnparsedAddressInputs(values=('//runners/noop_runner',), relative_to='src/foobar', description_of_origin='entry_point_dependencies from src/foobar/test_something.py:tests', skip_invalid_addresses=False)) was not detected in your @rule body at rule compile time. Was the `Get` constructor called in a non async-function, or was it inside an async function defined after the @rule? Make sure the `Get` is defined before or inside the @rule body.
Here's the Get in the helper function that 2 rules call: https://github.com/pantsbuild/pants/pull/21062/files#diff-e1ddf55fc4b2b832db8a39ec88ffed8fdda413dde2620f56a5a18431882a6954R204-R211wide-midnight-78598
06/15/2024, 1:09 AM@rule_helper - but I thought that this should "just work" now...wide-midnight-78598
06/15/2024, 1:10 AMproud-dentist-22844
06/15/2024, 1:10 AMwide-midnight-78598
06/15/2024, 1:11 AMwide-midnight-78598
06/15/2024, 1:18 AMwide-midnight-78598
06/15/2024, 1:18 AMwide-midnight-78598
06/15/2024, 1:19 AMproud-dentist-22844
06/15/2024, 1:40 AMwas it inside an async function defined after the @rule? I'm reordering the rules now.proud-dentist-22844
06/15/2024, 1:41 AMwide-midnight-78598
06/15/2024, 2:09 AMhappy-kitchen-89482
06/15/2024, 3:57 AMwas not detected in your @rule body at rule compile time error.wide-midnight-78598
06/15/2024, 4:14 AMcurved-television-6568
06/15/2024, 8:38 AMhappy-kitchen-89482
06/15/2024, 12:43 PMhappy-kitchen-89482
06/15/2024, 12:44 PMwide-midnight-78598
06/15/2024, 12:50 PMYou can call a Get by type recursively inside the @rule that matches the type signature,Ah yeah Well, they'll run side-by-side, and plugins will have GETs, so it's an issue to flag. Probably not a huge issue in the grand scheme
happy-kitchen-89482
06/15/2024, 12:51 PMhappy-kitchen-89482
06/15/2024, 12:52 PMwide-midnight-78598
06/15/2024, 12:54 PMwide-midnight-78598
06/15/2024, 12:58 PMwide-midnight-78598
06/15/2024, 12:59 PMhappy-kitchen-89482
06/15/2024, 1:19 PM