sschmid / Entitas

Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
MIT License
7k stars 1.11k forks source link

Removal of crucial SearchPaths when executing the wiz command #1080

Open SidiaDevelopment opened 9 months ago

SidiaDevelopment commented 9 months ago

Describe the bug I am in the process of updating my custom code generators to Entitas 1.14 and encountered the following bug. When using dotnet Jenny/Jenny.Generator.Cli.dll wiz the Assets\Entitas of SearchPaths line is automatically removed, resulting in errors when generating

To Reproduce Steps to reproduce the behavior:

Expected behavior Do not remove valid SearchPaths

When diving through the jenny code I assume this part is responsible for doing this: https://github.com/sschmid/Jenny/blob/518529e6dd1f33b816cb30ab216b98c44c07f0dc/src/Jenny.Generator.Cli/FixCommand.cs#L85 As this path technically only contains dependencies and no active plugins, it is seen as unused and removed.

I can offer to create a pull request to jenny, but want to clear beforehand if the following method would be a suitable fix: