Skip to content

[gen-l10n] wrong generation when the placeholder is missing in other languages #119557

@GoShikhar

Description

@GoShikhar

Post 3.7 upgrade, getting the following error for all the i10n strings.

Error: Can't declare a member that conflicts with an inherited one.
.dart_tool/…/gen_l10n/app_localizations_ur.dart:17
  String get devOptionsEnabled => '';
             ^^^^^^^^^^^^^^^^^
: Context: This is the inherited member.
.dart_tool/…/gen_l10n/app_localizations.dart:140
  String devOptionsEnabled(String appName);
         ^^^^^^^^^^^^^^^^^
: Error: Can't declare a member that conflicts with an inherited one.
.dart_tool/…/gen_l10n/app_localizations_bn.dart:449
  String get pulseChlngAcc => '';

             ^^^^^^^^^^^^^
: Context: This is the inherited member.
.dart_tool/…/gen_l10n/app_localizations.dart:1004
  String pulseChlngAcc(String player);

         ^^^^^^^^^^^^^
Target kernel_snapshot failed: Exception


FAILURE: Build failed with an exception.

* Where:
Script 'C:\Users\Shikhar\Documents\Github\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1151

The code gen takes place after running the command flutter gen-l10n as per this guide.

Things I've tried:

  1. Uninstall flutter, reinstall 3.7 fresh
  2. Flutter clean

No code changes in project since the upgrade.

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)c: regressionIt was better in the past than it is nowcustomer: crowdAffects or could affect many people, though not necessarily a specific customer.found in release: 3.7Found to occur in 3.7found in release: 3.8Found to occur in 3.8has reproducible stepsThe issue has been confirmed reproducible and is ready to work onr: fixedIssue is closed as already fixed in a newer versiontoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions