You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current version realm_generator 1.3.0 depends on an older version of the Flutter analyzer package.
This version contains regressions which are fixed in analyzer 6.0.0. The new version makes the code gen step of our project 400% faster again.
dependency_overrides does not work:
realm_generator-1.3.0/lib/src/field_element_ex.dart:190:25: Error: The getter 'enclosingElement3' isn't defined for the class 'FieldElement'.
- 'FieldElement' is from 'package:analyzer/dart/element/element.dart' ('../../../caches/pub_cache/hosted/pub.dev/analyzer-6.0.0/lib/dart/element/element.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'enclosingElement3'.
final modelSpan = enclosingElement3.span!;
Solution
Upgrade the dependency.
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
The text was updated successfully, but these errors were encountered:
The following minimal pubspec.yaml illustrates the problem with your request:
name: upgrade_analyzerenvironment:
sdk: '>=3.0.6 <4.0.0'dependencies:
analyzer: ^6.0.0flutter:
sdk: flutterdev_dependencies:
flutter_test:
sdk: fluttertest: any # no version of test will work with analyzer ^6.0.0 and current flutter stable (3.10.6)
You will not be able resolve this with current stable version of flutter. I think it is a bit unacceptable for a package like realm to require people to use the master channel or stop using the test package 😄
That said, we will revisit on each new stable release of flutter.
Problem
The current version realm_generator 1.3.0 depends on an older version of the Flutter analyzer package.
This version contains regressions which are fixed in analyzer 6.0.0. The new version makes the code gen step of our project 400% faster again.
dependency_overrides does not work:
Solution
Upgrade the dependency.
Alternatives
No response
How important is this improvement for you?
Would be a major improvement
Feature would mainly be used with
Local Database only
The text was updated successfully, but these errors were encountered: