[ECS] ECS fails when working without cache
Hello,
when using ECS without cache (ie with --clear-cache or after cache dir was manually deleted or invalidated after fixes) the process ends silently on error without any error message.
when running without clearing a cache, the process ends up as expected with green message about shiny code.
It's more apparent when running ecs as a composer script or as a part of series of scripts - because composer stops on error
I've created basic repository to reproduce the error: https://github.com/noximo/ecs-test
Turning off paralelization solves the issue but leads to significant slowdowns.
Passing -vvv or --debug doesn't provide any additional info, just a list of fixers.
Hi,
thanks for reporting. Could you add failing workflow to the repository, so we can see the error clearly? It might be related to Windows, incorrect cache path or relative one. I'd recommend to use absolute cache dir path.
You can debug this part of cache factory, if there is something weird going on: https://github.com/symplify/symplify/blob/8b36b0bf43e80a28421beebd27bac2dffe666982/packages/easy-coding-standard/packages/Caching/CacheFactory.php#L23-L34
I'll take a look at it during the weekend