-
Notifications
You must be signed in to change notification settings - Fork 27.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[tool_crash] _CastError: (#0 LocalizationsGenerator._generateMethod.generateHelperMethods (package:flutter_tools/src/localizations/gen_l10n.dart:1214:54)) #116459
Comments
Here is my l10n.yaml: arb-dir: lib/l10n
template-arb-file: lw_en.arb
output-localization-file: lw_localizations.dart
output-class: LWLocalizations
nullable-getter: false |
I am unable to replicate the issue based on details provided. Keeping it open and labeling for team's attention. |
After some debugging it seems removing these lines from my arb is fixing the crash: "profileType": "{level, plural, =0{Novice} =1{Not bad} =2{TODO} =3{Gamer} other{True gamer}}",
"@profileType": {
"placeholders": {
"level": {
"description": "The level. Starts from 0",
"format": "decimalPattern",
"type": "num"
}
}
}, |
@thkim1011 it seems like this no longer affects the master channel with the new parser, is that correct? |
I think this may be a bug. Technically, the |
@rares45 you might want to consider using a select case instead as follows:
and use the string with Currently, it will throw a syntax error if numbers are used for select cases instead of alphanumeric strings, but I'm working on a fix for this as well. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Command
Steps to Reproduce
flutter gen-l10n --verbose
Logs
_CastError: (#0 LocalizationsGenerator._generateMethod.generateHelperMethods (package:flutter_tools/src/localizations/gen_l10n.dart:1214:54))
Flutter Application Metadata
Type: app
Version: 0.0.1+1
Material: true
Android X: false
Module: false
Plugin: false
Android package: null
iOS bundle identifier: null
Creation channel: beta
Creation framework version: d6260f1
Plugins
dynamic_color-1.5.4
flutter_native_splash-2.2.16
mobile_scanner-2.1.0
package_info_plus-3.0.2
The text was updated successfully, but these errors were encountered: