Particular scripts in my project are causing the formatting process to throw an error.
StartCoroutine(Util.RoutineTimer.WaitForFrames(1, () => {
//do logic
}));
public static IEnumerator WaitForFrames(int frames, Action callback)
{
for(int i=0; i<frames; i++)
{
yield return new WaitForEndOfFrame();
}
callback();
}
Traceback (most recent call last):
File "D:\Programs\LAVA-test-coverage-master\client\instrument_client.py", line 922, in <module>
instrumenter.prepare(json_path)
File "D:\Programs\LAVA-test-coverage-master\client\instrument_client.py", line 172, in prepare
self.insert_instrument_function() # to js or source files
File "D:\Programs\LAVA-test-coverage-master\client\instrument_client.py", line 601, in insert_instrument_function
self.insert_instrument_function_into_csharp()
File "D:\Programs\LAVA-test-coverage-master\client\instrument_client.py", line 642, in insert_instrument_function_into_csharp
1]
IndexError: list index out of range
It works fine when trying it with folders that don't contain these scripts.