Skip to content
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

[BUG] lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_button.dart:32:15: Error: The getter 'LocaleKeys' isn't defined for the class 'ThemeUploadButton'. #5496

Open
lucasjinreal opened this issue Jun 8, 2024 · 2 comments

Comments

@lucasjinreal
Copy link

lib/workspace/presentation/settings/widgets/theme_upload/theme_confirm_delete_dialog.dart:49:17: Error: The getter 'LocaleKeys' isn't defined for the class 'ThemeConfirmDeleteDialog'.
 - 'ThemeConfirmDeleteDialog' is from 'package:appflowy/workspace/presentation/settings/widgets/theme_upload/theme_confirm_delete_dialog.dart' ('lib/workspace/presentation/settings/widgets/theme_upload/theme_confirm_delete_dialog.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'LocaleKeys'.
                LocaleKeys.button_cancel.tr(),
                ^^^^^^^^^^
lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_button.dart:32:15: Error: The getter 'LocaleKeys' isn't defined for the class 'ThemeUploadButton'.
 - 'ThemeUploadButton' is from 'package:appflowy/workspace/presentation/settings/widgets/theme_upload/theme_upload_button.dart' ('lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_button.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'LocaleKeys'.
              LocaleKeys.settings_appearance_themeUpload_button.tr(),
              ^^^^^^^^^^
lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_learn_more_button.dart:30:15: Error: The getter 'LocaleKeys' isn't defined for the class 'ThemeUploadLearnMoreButton'.
 - 'ThemeUploadLearnMoreButton' is from 'package:appflowy/workspace/presentation/settings/widgets/theme_upload/theme_upload_learn_more_button.dart' ('lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_learn_more_button.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'LocaleKeys'.
              LocaleKeys.document_plugins_autoGeneratorLearnMore.tr(),
              ^^^^^^^^^^
lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_learn_more_button.dart:44:25: Error: The getter 'LocaleKeys' isn't defined for the class 'ThemeUploadLearnMoreButton'.
 - 'ThemeUploadLearnMoreButton' is from 'package:appflowy/workspace/presentation/settings/widgets/theme_upload/theme_upload_learn_more_button.dart' ('lib/workspace/presentation/settings/widgets/theme_upload/theme_upload_learn_more_button.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'LocaleKeys'.
                        LocaleKeys
@Xazin
Copy link
Collaborator

Xazin commented Jun 9, 2024

These errors appear when you haven't run the script to generate code for language keys. It's run as part of other scripts such as AF-Desktop: Clean and rebuild all.

The script is run like this

sh .\scripts\code_generation\language_files\generate_language_files

Notice that build_runner can fail, and in that case you would receive this error as well, if you didn't look at the output of the build command.

@lucasjinreal
Copy link
Author

How a new eerorr got: :0: error: missing required module 'SwiftShims'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants