easy_localization icon indicating copy to clipboard operation
easy_localization copied to clipboard

type 'ParserRecovery' is not a subtype of type 'TypeBuilder?' in type cast

Open kabinswivt opened this issue 2 years ago • 2 comments

Unhandled exception:
Crash when compiling package:localala/src/localization/locale_keys.g.dart:
locale_keys.g.dart:1
type 'ParserRecovery' is not a subtype of type 'TypeBuilder?' in type cast

#0      OutlineBuilder._endClassMethod (package:front_end/src/fasta/source/outline_builder.dart:1962:37)
#1      OutlineBuilder.endClassMethod (package:front_end/src/fasta/source/outline_builder.dart:1836:5)
#2      Parser.parseMethod
parser_impl.dart:4888
#3      Parser.parseInvalidOperatorDeclaration
parser_impl.dart:9068
#4      Parser.recoverFromInvalidMember
parser_impl.dart:9116
#5      Parser.parseClassOrMixinOrExtensionOrEnumMemberImpl
parser_impl.dart:4545
#6      Parser.parseClassOrMixinOrExtensionBody
parser_impl.dart:4222

kabinswivt avatar Jun 09 '23 02:06 kabinswivt

Please check if there is any empty string in your locale_keys.g.dart

Snofkin avatar Jun 09 '23 05:06 Snofkin

I experienced the same issue, Please check the following points:

  • Words that can't be used as keys:
    • Reserved words:

      • with
      • continue
      • try
    • Symbols:

      • include -
      • ?
  • Duplicated keys

nitaking avatar Oct 04 '23 05:10 nitaking