Closed GuyChriqui closed 1 year ago
Hi @GuyChriqui
Try to use from Jenny.properties
and Entitas.properties
from https://github.com/sschmid/Match-One
then dotnet Jenny/Jenny.Generator.Cli.dll gen
@GuyChriqui Have you found a solution to the problem?
I have same problem like this, have you found a solution to the problem?
Unity 2021.3.5f1 Entitas 1.14.1 dotnet 7.0.102
I am getting the same error when trying to generate code from Unity, but was able to generate the code from cmd. Make sure that Jenny.properties
contains correct folder name pointing to the Entitas
Jenny.SearchPaths = Jenny/Plugins/Entitas, Jenny/Plugins/Jenny, Assets/Thirdparty/Entitas
I've put all the stuff to the Thirdparty folder, so this is where SearchPath was supposed to point to in my case.
Don't know how to resolve the type token error though.
Hi! With the dotnet 6.0 upgrade that happened in Entitas 1.14.x, you can generate from the terminal but not yet from within Unity, which doesn't yet fully support dotnet 6.
In the meantime generate from the terminal, ideally using jenny server, which will be the fastest way to generate.
Also, starting with Entitas 1.14.x the roslyn code generator are now free and included in the GitHub releases.
From your jenny doctor output I can see you're not yet using them
Available: Entitas.Roslyn.CodeGeneration.Plugins.ComponentDataProvider
Available: Entitas.Roslyn.CodeGeneration.Plugins.EntityIndexDataProvider
The roslyn ones are now default and recommended, replacing the soon to obsolete reflection-based ones
As suggested above, you will always find the latest sample Jenny.properties in the Match-One repo
https://github.com/sschmid/Match-One/blob/main/Jenny.properties
Describe the bug
When trying to generate for the first time after installing Entitas and Jenny according to tutorial (from .zip), I am getting the following error :
Also when trying to do it from terminal :
[EDIT]
After Installing dotnet 6 SDK and upgrade unity to 2021.3.15f i was able to
dotnet Jenny/Jenny.Generator.Cli.dll
Thendotnet Jenny/Jenny.Generator.Cli.dll auto-import -s
But When im using
dotnet Jenny/Jenny.Generator.Cli.dll gen
I got the following error :
When trying with editor still same error as in the image
To Reproduce Steps to reproduce the behavior:
Expected behavior Generated folder will appear without error.
Screenshots![Screen Shot 2022-12-03 at 15 30 24](https://user-images.githubusercontent.com/85419923/205443251-5077fe9f-a9d0-4570-b9a6-96790eccc260.png)
Additional context Unity version - 2021.3.15f (SILICON) Entitas Version - Entitas 1.14.1
Jenny.properties :