Uploaded image for project: 'Realm Dart SDK'
  1. Realm Dart SDK
  2. RDART-846

Upgrade to newer flutter analyzer

      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:

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: