-
Notifications
You must be signed in to change notification settings - Fork 230
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
add 'generate: true' to support in workspaces #4471
Comments
Oh - this will not be trivial to support. This needs to be supported in the flutter tool The tool could run In general I think we are considering moving away from the I'd suggest using one of the alternative ways of generating internationalization support : |
cc @bkonyi |
Linking to flutter/flutter#160151 |
Issue for deprecation of flutter_gen: flutter/flutter#102983 |
Thanks! Helped this reply: flutter/flutter#160151 (comment) |
Hmm - we should probably fix this in general, but nice that the workaround exists! |
Yeah, the plan is to remove |
I plan to disable it by default in the upcoming stable release (can still be opted-back into) and then removed in the following. |
Environment
dart --version
): Dart SDK version: 3.6.0 (stable) (Thu Dec 5 07:46:24 2024 -0800) on "macos_arm64"Problem
Currently, I have project which currently is using intl package,
and I generate messages from arb using the command 'flutter gen-l10n' with generate: true
but when I trying to run 'flutter pub get' in workspace - terminal giving me error '
generate: true
is not supported within workspaces.'So, I removed 'generate: true' in pubspec.yaml, and I have another error:
"Attempted to generate localizations code without having the flutter: generate flag turned on.
Check pubspec.yaml and ensure that flutter: generate: true has been added and rebuild the project. Otherwise, the localizations source code will not be importable."
Expected behavior
Generate AppLocalizations - dart class
Actual behavior
Giving error
"Attempted to generate localizations code without having the flutter: generate flag turned on.
Check pubspec.yaml and ensure that flutter: generate: true has been added and rebuild the project. Otherwise, the localizations source code will not be importable."
The text was updated successfully, but these errors were encountered: