Closed benloh closed 1 year ago
Upon further investigation, the errors were being generated by Touches trying to set the global
agent.
But the global
agent should have nothing to do with Touches in the current script.
--
The clue here is that TestKeywordAgent1
id and the global
agent id were both '1'. This is because sim-agents
was injecting the global agent instance right after existing instances were cleared, and BEFORE the instances are re-constructed from the stored instance defs. The result is that the global agent retrieved an id of '1', but the project instance spec also defines an agent with an id of 1. After the stored instance id is deleted, when we try to retrieve an agent by id, we end up retrieving the global
agent.
The fix is to auto-assign the global id AFTER you've already instantiated the instanceDefs.
mentioned in commit f3b16b60f4e6858593c114738486a0da9b6b15f9
In GitLab by @jdanish on Sep 16, 2022, 03:23
mentioned in commit 760dd20be73b47a207f21f64a4d507ad17c3357b
mentioned in commit b8fd6b8369e9f3df4e6eca5792b68cff1df8204d
mentioned in commit 171a2822b3f5cfae85b4d8ed950a97cd6d80d91f
To Reproduce
keywordTest.gemprj
fromglobal-integration
repo (aa701f102b5f39f770c3f116f84456fce392788a)no feature named 'Physics'
error will be reportedNOTES