isar / hive

Lightweight and blazing fast key-value database written in pure Dart.
Apache License 2.0
4.01k stars 398 forks source link

Need update analyzer in hive_generator #725

Closed nikitadol closed 3 years ago

nikitadol commented 3 years ago
  json_serializable: ^5.0.0
  hive_generator: ^1.1.0
Because no versions of hive_generator match >1.1.0 <2.0.0 and hive_generator 1.1.0 depends on analyzer ^1.0.0, hive_generator ^1.1.0 requires analyzer ^1.0.0.
And because json_serializable >=5.0.0 depends on analyzer ^2.0.0, hive_generator ^1.1.0 is incompatible with json_serializable >=5.0.0.
So, because rm_backend depends on both json_serializable ^5.0.0 and hive_generator ^1.1.0, version solving failed.
pub get failed (1; So, because rm_backend depends on both json_serializable ^5.0.0 and hive_generator ^1.1.0, version solving failed.)
definev commented 3 years ago

I faced with the same problem.

flukejones commented 3 years ago

Temporary fix is :

dev_dependencies:
  analyzer: ^1.7.2

but yeah, update required soon.

dened commented 3 years ago

What's about this issue? Many packages have moved to analyzer 2.0.0.

RicardoRB commented 3 years ago

@hivedb Would be great to update it

RicardoRB commented 3 years ago

PR created https://github.com/hivedb/hive/pull/765

zs-dima commented 3 years ago

@RicardoRB @themisir looks it doesn't work, nothing generated:

hive_generator:
  git:
    url: https://github.com/hivedb/hive.git
    ref: master
    path: hive_generator
RicardoRB commented 3 years ago

@RicardoRB @themisir looks it doesn't work, nothing generated:

hive_generator:
  git:
    url: https://github.com/hivedb/hive.git
    ref: master
    path: hive_generator

I didn't get what you mean

zs-dima commented 3 years ago

@RicardoRB Thanks for looking into I mean hive_generator generate nothing in this case

zs-dima commented 3 years ago

Flutter 2.6.0-0.0.pre • channel dev

  json_serializable: ^5.0.0

dev_dependencies:
  build_runner: ^2.1.1
  flutter_gen_runner:
  freezed: ^0.14.5
  auto_route_generator: ^2.3.0
  hive_generator:
    git:
      url: https://github.com/hivedb/hive.git
      ref: master
      path: hive_generator
  pedantic: ^1.11.1
roubachof commented 2 years ago

@zs-dima is right, generator doesn't work starting with json_serializable v5 see #795

Silfalion commented 2 years ago

Would like a solution for this too please

zs-dima commented 2 years ago

Would like a solution for this too please

The best solution I found for now - to use SQLite/Drift instead of discontinued Hive. It is reliable and has the same performance in case of load data in memory, plus it support complex queries.

Silfalion commented 2 years ago

Would like a solution for this too please

The best solution I found for now - to use SQLite/Drift instead of discontinued Hive. It is reliable and has the same performance in case of load data in memory, plus it support complex queries.

I see. Thanks for the tip. Considered ObjectBox as well but it faces the same problem with freezed.

zs-dima commented 2 years ago

Would like a solution for this too please

The best solution I found for now - to use SQLite/Drift instead of discontinued Hive. It is reliable and has the same performance in case of load data in memory, plus it support complex queries.

I see. Thanks for the tip. Considered ObjectBox as well but it faces the same problem with freezed.

OpenBox has no FlutterWeb support and is not so reliable as SQLite, so I can see no advantages to use it.

Silfalion commented 2 years ago

Would like a solution for this too please

The best solution I found for now - to use SQLite/Drift instead of discontinued Hive. It is reliable and has the same performance in case of load data in memory, plus it support complex queries.

I see. Thanks for the tip. Considered ObjectBox as well but it faces the same problem with freezed.

OpenBox has no FlutterWeb support and is not so reliable as SQLite, so I can see no advantages to use it.

I see. Thank you.