tall-country-45957
07/08/2024, 4:01 PMwide-midnight-78598
07/08/2024, 4:32 PMwide-midnight-78598
07/08/2024, 4:37 PMwide-midnight-78598
07/08/2024, 4:42 PMmy_foo = await Get(Foo, FooRequest, value)
# becomes something like
my_foo = await some_function(value)
# or
my_foo = await some_function(value, **implicitly())
# or ...worried-painter-31382
07/08/2024, 4:43 PMwide-midnight-78598
07/08/2024, 4:43 PMwide-midnight-78598
07/08/2024, 4:52 PMworried-painter-31382
07/08/2024, 6:23 PMMockGet migration?wide-midnight-78598
07/08/2024, 6:35 PMworried-painter-31382
07/08/2024, 6:36 PMwide-midnight-78598
07/08/2024, 6:37 PMworried-painter-31382
07/08/2024, 6:37 PMworried-painter-31382
07/08/2024, 6:38 PMwide-midnight-78598
07/08/2024, 6:38 PMworried-painter-31382
07/08/2024, 6:40 PMnodejs_test.pywide-midnight-78598
07/08/2024, 6:41 PMwide-midnight-78598
07/08/2024, 6:42 PMworried-painter-31382
07/08/2024, 6:42 PM19:08:13.46 [WARN] Failed to migrate Get (2, <class 'libcst._nodes.expression.Call'>) in src/python/pants/backend/javascript/subsystems/nodejs.py:node_process_environment due to: Expected a Name but got a Attribute!
and then re-applied the migrationwide-midnight-78598
07/08/2024, 6:42 PMworried-painter-31382
07/08/2024, 6:43 PMworried-painter-31382
07/08/2024, 6:43 PMGet lines failed in the file, I didn't read too closelywide-midnight-78598
07/08/2024, 6:43 PMwide-midnight-78598
07/08/2024, 6:44 PM--json I think? pants help migrate-call-by-name has the syntax, so you can see what we operate onwide-midnight-78598
07/08/2024, 6:46 PMwide-midnight-78598
07/08/2024, 6:47 PMx.y - those are not cst.Name but rather cst.Attribute and you have to do some recursion to get the fully qualified value.
Shouldn't affect the tests though - I have to update the migration tool to cover this use case as well, since we use it a few times in the codebaseworried-painter-31382
07/08/2024, 6:49 PMworried-painter-31382
07/08/2024, 6:50 PMwide-midnight-78598
07/08/2024, 6:52 PMworried-painter-31382
07/08/2024, 7:29 PMPyGeneratorResponseCall exposes the same variables as PyGeneratorResponseGet (args and output type) could be a solution!worried-painter-31382
07/08/2024, 7:48 PMworried-painter-31382
07/08/2024, 7:55 PM