flutter hive 2.2.3 hive-2.2.3/lib/src/hive_impl.dart:119:9: Error: The getter 'unrethrow' isn't defined for the class 'HiveImpl'.
- Dominant language
- Dart
- Stars
- 4.4k
- Forks
- 449
- PR merge metrics
- No merged PRs in 30d
Description
Error1: /hive-2.2.3/lib/src/hive_impl.dart:119:9: Error: The getter 'unrethrow' isn't defined
for the class 'HiveImpl'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'unrethrow'.
unrethrow;
Error2: hive-2.2.3/lib/src/hive_impl.dart:61:22: Error: A non-null value must be returned
since the return type 'BoxBase' doesn't allow null.
- 'BoxBase' is from 'package:hive/hive.dart' ('../../../.pub-cache/hosted/pub.dartlang.org/hive-2.2.3/lib/hive.dart').
Future> _openBox(
flutter --version
Flutter 3.3.10 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 135454af32 (3 weeks ago) • 2022-12-15 07:36:55 -0800
Engine • revision 3316dd8728
Tools • Dart 2.18.6 • DevTools 2.15.0
flutter doctor
[✓] Xcode - develop for iOS and macOS (Xcode 14.0.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.74.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the reported build with Flutter 3.3.10 and Dart 2.18.6, then inspect hive-2.2.3/lib/src/hive_impl.dart at lines 61 and 119. Done means the package compiles without the reported `unrethrow` and non-null return errors on the stated environment.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter
- Domain
- databases, mobile-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100