-
Notifications
You must be signed in to change notification settings - Fork 116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generator doesn't work with freezed models #414
Comments
I assume you have set up ObjectBox as documented at https://docs.objectbox.io/getting-started? If so, please submit a full project that we can reproduce this with. |
You are right. With clean project it works. For those who might be experienced the same bug - the reason is in |
@awaik Weird, if you ever find out if this is because something ObjectBox can improve, let us know! Closing this then! |
I deleted all the |
I got exactly the same issue and found no way to work around it. I tried limiting the scanned directories for both generatos in build.yaml At the moment auto_route_generator is added to pubspec.yaml, objectbox just stops generating freezed classes. It doesn't even appear in the build --verbose output anymore. |
In my case it happens because objectbox runs BEFORE freezed. |
According to the documentation and closed issue #229 Objectbox supports generating with freezed.
But if I copy-paste the example from the docs - nothing happens. All classes are ok, but with freezed - nothing generated.
Basic info (please complete the following information):
Steps to reproduce
Just copy-paste an example and run
packages pub run build_runner build --delete-conflicting-outputs
Expected behavior
Should generate ModelEntity in objectbox.g.dart
The text was updated successfully, but these errors were encountered: