localizely/intl_utils

Flutter 3.24.0 breaks intl_utils:generate

Closed this issue · 1 comments

People might come up with an error like that while executing 'dart run intl_utils:generate':

$ ../../../.pub-cache/hosted/pub.dev/analyzer-6.5.0/lib/src/summary2/macro_application.dart:1261:7: Error: The non-abstract class '_StaticTypeImpl' is missing implementations for these members:
 - StaticType.asInstanceOf
Try to either
 - provide an implementation,
 - inherit an implementation from a superclass or mixin,
 - mark the class as abstract, or
 - provide a 'noSuchMethod' implementation.

class _StaticTypeImpl implements macro.StaticType {
      ^^^^^^^^^^^^^^^
/opt/flutter/bin/cache/dart-sdk/pkg/_macros/lib/src/api/introspection.dart:119:28: Context: 'StaticType.asInstanceOf' is defined here.
  Future<NamedStaticType?> asInstanceOf(TypeDeclaration declaration);
                           ^^^^^^^^^^^^

This can be most probably fixed with reactivating the package

dart-lang/pub#4406

Hope that helps others that come up with the bug as finding the linked issue was hard for me as it was opened in the dart-lang repo.

(Issue can be closed)

Thanks for the hint