-
Notifications
You must be signed in to change notification settings - Fork 393
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
[hive_generator] Error when running #63
Comments
This is a bug in the dart analyzer. Please downgrade it using dev_dependencies:
analyzer: 0.38.2 |
@leisim it works, thanks! |
@leisim By the way, I am not getting this while generating hive adapter but when using it to read from cache on app's restart. It's a company project so I can't provide code. But I can provide a basic object structure outline for reference.
Can you tell me what the maximum in-memory object size that type adapter can parse at a time? Update 1 : When I used jsonString format to store and retrieve the same object via HiveBox then it worked fine and did not throw any error. Additional info:Flutter doctor output:
====================== dev_dependencies:
test: ^1.9.4
analyzer: 0.38.2 # as per https://github.com/hivedb/hive/issues/63
build_runner: ^1.0.0
hive_generator: 0.5.2
json_serializable: 3.2.3 # https://pub.dev/packages/json_serializable#-readme-tab-
retrofit_generator: 1.0.2+2 # https://pub.dev/packages/retrofit_generator#-readme-tab- |
as of now when I perform this then I will tell that first run the pub get after running pub get it automatically change the analyzer version to the latest |
Steps to Reproduce
When run
$ flutter pub run build_runner build
in project with hivei getting error:
Code sample
Version
The text was updated successfully, but these errors were encountered: