[GH-ISSUE #210] [Bug] Windows Build Failed #108

Closed
opened 2026-03-23 20:32:00 +00:00 by mirror · 10 comments
Owner

Originally created by @wuzirui on GitHub (Jan 5, 2022).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/210

Describe the bug
build failure on Windows 11

To Reproduce
Steps to reproduce the behavior:
follow BUILD_ON_WINDOWS.md

build log:

(base) PS D:\appflowy\frontend> cargo make flowy_dev
[cargo-make] INFO - cargo make 0.35.7
[cargo-make] INFO - Project: dart-ffi
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: flowy_dev
[cargo-make] INFO - Profile: development
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Running Task: install_targets

D:\appflowy\frontend>cd "D:\appflowy\frontend"

D:\appflowy\frontend>rustup target add x86_64-pc-windows-msvc
info: component 'rust-std' for target 'x86_64-pc-windows-msvc' is up to date
[cargo-make] INFO - Running Task: check_duckscript_installation

D:\appflowy\frontend>cd "D:\appflowy\frontend"
[cargo-make] INFO - Running Task: check_visual_studio_installation
[cargo-make] INFO - Running Task: check_vcpkg
[cargo-make] INFO - Running Task: install_vcpkg_sqlite

D:\appflowy\frontend>cd "D:\appflowy\frontend"

D:\appflowy\frontend>vcpkg install sqlite3:x64-windows-static-md
Computing installation plan...
The following packages are already installed:
    sqlite3[core]:x64-windows-static-md -> 3.37.0#1
Package sqlite3:x64-windows-static-md is already installed
Restored 0 packages from C:\Users\wuzirui\AppData\Local\vcpkg\archives in 119.4 us. Use --debug to see more details.

Total elapsed time: 6.713 ms

The package sqlite3 provides CMake targets:

    find_package(unofficial-sqlite3 CONFIG REQUIRED)
    target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3)

[cargo-make] INFO - Running Task: install_rust_vcpkg_cli
    Updating `tuna` index
     Ignored package `vcpkg_cli v0.2.4` is already installed, use --force to override
[cargo-make] INFO - Running Task: check_vcpkg
[cargo-make] INFO - Running Task: install_diesel

D:\appflowy\frontend>cd "D:\appflowy\frontend"

D:\appflowy\frontend>cargo install diesel_cli --no-default-features --features sqlite
    Updating `tuna` index
     Ignored package `diesel_cli v1.4.1` is already installed, use --force to override
[cargo-make] INFO - Build Done in 3.49 seconds.
(base) PS D:\appflowy\frontend> cargo make -p development-windows-x86 appflowy-windows-dev
[cargo-make] INFO - cargo make 0.35.7
[cargo-make] INFO - Project: dart-ffi
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: appflowy-windows-dev
[cargo-make] INFO - Profile: development-windows-x86
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Running Task: echo_env

D:\appflowy\frontend>cd "D:\appflowy\frontend"

D:\appflowy\frontend>echo "-------- Env Parameters --------"
"-------- Env Parameters --------"

D:\appflowy\frontend>echo CRATE_TYPE: cdylib
CRATE_TYPE: cdylib

D:\appflowy\frontend>echo BUILD_FLAG: debug
BUILD_FLAG: debug

D:\appflowy\frontend>echo TARGET_OS: windows
TARGET_OS: windows

D:\appflowy\frontend>echo RUST_COMPILE_TARGET: x86_64-pc-windows-msvc
RUST_COMPILE_TARGET: x86_64-pc-windows-msvc

D:\appflowy\frontend>echo FEATURES: flutter
FEATURES: flutter

D:\appflowy\frontend>echo PRODUCT_EXT: exe
PRODUCT_EXT: exe

D:\appflowy\frontend>echo APP_ENVIRONMENT: local
APP_ENVIRONMENT: local

D:\appflowy\frontend>echo
ECHO 处于打开状态。

D:\appflowy\frontend>echo "-------- Flutter --------"
"-------- Flutter --------"

D:\appflowy\frontend>flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale zh-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
[✓] Chrome - develop for the web
[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4)
[✓] Android Studio (version 2020.3)
[✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
[✓] VS Code (version 1.63.2)
[✓] Connected device (3 available)

• No issues found!
[cargo-make] INFO - Running Task: setup-crate-type
[cargo-make] INFO - Running Task: sdk-build
    Updating `tuna` index
   Compiling proc-macro2 v1.0.36
   ......
   Compiling flowy-sdk v0.1.0 (D:\appflowy\frontend\rust-lib\flowy-sdk)
   Compiling dart-ffi v0.1.0 (D:\appflowy\frontend\rust-lib\dart-ffi)
    Finished dev [unoptimized + debuginfo] target(s) in 1m 26s
[cargo-make] INFO - Running Task: post-desktop
🚀 🚀 🚀  Flowy-SDK(windows) build success
[cargo-make] INFO - Running Task: restore-crate-type
[cargo-make] INFO - Running Task: generate_language_files

D:\appflowy\frontend>cd "D:\appflowy\frontend"

D:\appflowy\frontend>cd app_flowy/

D:\appflowy\frontend\app_flowy>flutter clean
[cargo-make] INFO - Running Task: flutter-build
Running "flutter pub get" in app_flowy...                           5.4s

💪 Building with sound null safety 💪

lib/workspace/infrastructure/repos/workspace_repo.dart(17,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/application/sign_up_bloc.dart(8,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯 荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/blank/blank_page.dart(5,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_up_screen.dart(17,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_in_screen.dart(18,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/skip_log_in_screen.dart(18,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/welcome_screen.dart(12,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/edit_pannel/edit_pannel.dart(11,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(16,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/menu_user.dart(12,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/create_button.dart(9,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/menu_trash.dart(11,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/doc_stack_page.dart(22,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/header/header.dart(16,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/dialogs.dart(16,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/trash_page.dart(18,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/domain/edit_action/app_edit.dart(4,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/section/item.dart(17,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/widget/trash_header.dart(6,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/banner.dart(9,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(15,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/domain/edit_action/view_edit.dart(4,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/infrastructure/repos/workspace_repo.dart(46,53): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'WorkspaceRepo'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/application/sign_up_bloc.dart(39,29): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpBloc'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/application/sign_up_bloc.dart(47,35): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpBloc'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/application/sign_up_bloc.dart(55,35): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpBloc'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/infrastructure/network_monitor.dart(47,47): error G79957FC8: A value of type 'NetworkType?' can't be assigned to a variable of type 'NetworkType' because 'NetworkType?' is nullable and 'NetworkType' isn't. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/blank/blank_page.dart(14,46): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'BlankStackContext'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_up_screen.dart(59,20): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpForm'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_up_screen.dart(91,11): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpPrompt'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_up_screen.dart(97,23): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpPrompt'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_up_screen.dart(114,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_up_screen.dart(140,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'PasswordTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_up_screen.dart(168,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'RepeatPasswordTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_up_screen.dart(192,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'EmailTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_in_screen.dart(64,20): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignInForm'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_in_screen.dart(98,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpPrompt'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_in_screen.dart(105,13): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpPrompt'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_in_screen.dart(124,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'LoginButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_in_screen.dart(152,9): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ForgetPasswordButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_in_screen.dart(175,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'PasswordTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/sign_in_screen.dart(199,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'EmailTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/skip_log_in_screen.dart(55,18): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_SkipLogInScreenState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/skip_log_in_screen.dart(66,17): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_SkipLogInScreenState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/skip_log_in_screen.dart(75,17): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_SkipLogInScreenState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/skip_log_in_screen.dart(100,52): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_SkipLogInScreenState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/skip_log_in_screen.dart(140,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'GoButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/welcome_screen.dart(58,9): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'WelcomeScreen'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/user/presentation/welcome_screen.dart(62,72): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'WelcomeScreen'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/edit_pannel/edit_pannel.dart(60,22): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'EditPannelTopBar'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(32,18): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'QuestionBubble'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(73,32): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'QuestionBubble'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(99,32): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'QuestionBubble'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(237,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'BubbleAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(239,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'BubbleAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(241,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'BubbleAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/menu_user.dart(77,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuUser'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/menu_user.dart(84,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuUser'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/create_button.dart(19,7): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'NewAppButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/create_button.dart(34,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'NewAppButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/menu_trash.dart(34,24): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuTrash'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/doc_stack_page.dart(227,29): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'DocShareButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/doc_stack_page.dart(284,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ShareAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/doc_stack_page.dart(286,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ShareAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/header/header.dart(105,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuAppHeader'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/header/header.dart(110,40): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuAppHeader'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/header/header.dart(121,20): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuAppHeader'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/dialogs.dart(57,23): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_CreateTextFieldDialog'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/dialogs.dart(200,30): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'OkCancelButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/dialogs.dart(210,26): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'OkCancelButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/trash_page.dart(29,46): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'TrashStackContext'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/trash_page.dart(121,30): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_TrashStackPageState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/trash_page.dart(126,38): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_TrashStackPageState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/trash_page.dart(136,38): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_TrashStackPageState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/domain/edit_action/app_edit.dart(15,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'AppDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/domain/edit_action/app_edit.dart(17,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'AppDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/widgets/menu/widget/app/section/item.dart(89,20): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ViewSectionItem'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/widget/trash_header.dart(39,28): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/widget/trash_header.dart(40,28): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/trash/widget/trash_header.dart(41,28): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/banner.dart(27,30): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'DocBanner'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/banner.dart(38,41): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'DocBanner'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/banner.dart(50,41): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'DocBanner'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(61,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(68,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(75,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(82,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(89,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(96,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(121,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(128,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(134,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(141,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(148,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/domain/edit_action/view_edit.dart(16,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ViewDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/domain/edit_action/view_edit.dart(18,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ViewDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
lib/workspace/domain/edit_action/view_edit.dart(20,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ViewDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: “D:\appflowy\frontend\app_flowy\build\windows\CMakeFiles\1e49fcaeedc3dfcead0436882494bf7c\flutter_windows.dll.rule;D:\appflowy\frontend\app_flowy\build\windows\CMakeFiles\c4f0f02a82a56df5b4c3c6228e99a0b5\flutter_assemble.rule;D:\appflowy\frontend\app_flowy\windows\flutter\CMakeLists.txt”的自定义生成已退出,代码为 1。 [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj]
Building Windows application...
Build process failed.
[cargo-make] INFO - Running Task: copy-to-product
[cargo-make] INFO - Build Done in 138.76 seconds.

in which "绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? " probably means that it cannot find the file "flutter_assemble.vcxproj"

Screenshots
If applicable, add screenshots to help explain your problem.
image

Desktop (please complete the following information):

  • Windows 11 21H2
  • Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale zh-CN)
  • Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4)

Additional context
Default host: x86_64-pc-windows-msvc
rustup home: C:\Users\wuzirui.rustup

installed toolchains

stable-x86_64-pc-windows-msvc
nightly-2021-04-24-x86_64-pc-windows-msvc
nightly-x86_64-pc-windows-msvc (default)

active toolchain

nightly-x86_64-pc-windows-msvc (default)
rustc 1.59.0-nightly (399ba6bb3 2022-01-03)

[✓] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale zh-CN)
• Flutter version 2.8.1 at C:\Flutter\flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800
• Engine revision 890a5fca2e
• Dart version 2.15.1
• Pub download mirror https://pub.flutter-io.cn
• Flutter download mirror https://storage.flutter-io.cn

[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0)
• Android SDK at C:\Users\wuzirui\AppData\Local\Android\Sdk
• Platform android-31, build-tools 31.0.0
• ANDROID_HOME = C:\Users\wuzirui\AppData\Local\Android\Sdk
• Java binary at: C:\Users\wuzirui\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7784292\jre\bin\java
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)
• All Android licenses accepted.

[✓] Chrome - develop for the web
• Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4)
• Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community
• Visual Studio Community 2022 version 17.0.32014.148
• Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 2020.3)
• Android Studio at C:\Users\wuzirui\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7784292
• Flutter plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189)

[✓] IntelliJ IDEA Ultimate Edition (version 2021.2)
• IntelliJ at C:\Users\wuzirui\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\212.5457.46
• Flutter plugin installed
• Dart plugin version 212.5632

[✓] VS Code (version 1.63.2)
• VS Code at C:\Users\wuzirui\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.32.0

[✓] Connected device (3 available)
• Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.376]
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110
• Edge (web) • edge • web-javascript • Microsoft Edge 96.0.1054.62

• No issues found!

Originally created by @wuzirui on GitHub (Jan 5, 2022). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/210 **Describe the bug** build failure on Windows 11 **To Reproduce** Steps to reproduce the behavior: follow BUILD_ON_WINDOWS.md build log: ``` (base) PS D:\appflowy\frontend> cargo make flowy_dev [cargo-make] INFO - cargo make 0.35.7 [cargo-make] INFO - Project: dart-ffi [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: flowy_dev [cargo-make] INFO - Profile: development [cargo-make] INFO - Running Task: legacy-migration [cargo-make] INFO - Running Task: install_targets D:\appflowy\frontend>cd "D:\appflowy\frontend" D:\appflowy\frontend>rustup target add x86_64-pc-windows-msvc info: component 'rust-std' for target 'x86_64-pc-windows-msvc' is up to date [cargo-make] INFO - Running Task: check_duckscript_installation D:\appflowy\frontend>cd "D:\appflowy\frontend" [cargo-make] INFO - Running Task: check_visual_studio_installation [cargo-make] INFO - Running Task: check_vcpkg [cargo-make] INFO - Running Task: install_vcpkg_sqlite D:\appflowy\frontend>cd "D:\appflowy\frontend" D:\appflowy\frontend>vcpkg install sqlite3:x64-windows-static-md Computing installation plan... The following packages are already installed: sqlite3[core]:x64-windows-static-md -> 3.37.0#1 Package sqlite3:x64-windows-static-md is already installed Restored 0 packages from C:\Users\wuzirui\AppData\Local\vcpkg\archives in 119.4 us. Use --debug to see more details. Total elapsed time: 6.713 ms The package sqlite3 provides CMake targets: find_package(unofficial-sqlite3 CONFIG REQUIRED) target_link_libraries(main PRIVATE unofficial::sqlite3::sqlite3) [cargo-make] INFO - Running Task: install_rust_vcpkg_cli Updating `tuna` index Ignored package `vcpkg_cli v0.2.4` is already installed, use --force to override [cargo-make] INFO - Running Task: check_vcpkg [cargo-make] INFO - Running Task: install_diesel D:\appflowy\frontend>cd "D:\appflowy\frontend" D:\appflowy\frontend>cargo install diesel_cli --no-default-features --features sqlite Updating `tuna` index Ignored package `diesel_cli v1.4.1` is already installed, use --force to override [cargo-make] INFO - Build Done in 3.49 seconds. (base) PS D:\appflowy\frontend> cargo make -p development-windows-x86 appflowy-windows-dev [cargo-make] INFO - cargo make 0.35.7 [cargo-make] INFO - Project: dart-ffi [cargo-make] INFO - Build File: Makefile.toml [cargo-make] INFO - Task: appflowy-windows-dev [cargo-make] INFO - Profile: development-windows-x86 [cargo-make] INFO - Running Task: legacy-migration [cargo-make] INFO - Running Task: echo_env D:\appflowy\frontend>cd "D:\appflowy\frontend" D:\appflowy\frontend>echo "-------- Env Parameters --------" "-------- Env Parameters --------" D:\appflowy\frontend>echo CRATE_TYPE: cdylib CRATE_TYPE: cdylib D:\appflowy\frontend>echo BUILD_FLAG: debug BUILD_FLAG: debug D:\appflowy\frontend>echo TARGET_OS: windows TARGET_OS: windows D:\appflowy\frontend>echo RUST_COMPILE_TARGET: x86_64-pc-windows-msvc RUST_COMPILE_TARGET: x86_64-pc-windows-msvc D:\appflowy\frontend>echo FEATURES: flutter FEATURES: flutter D:\appflowy\frontend>echo PRODUCT_EXT: exe PRODUCT_EXT: exe D:\appflowy\frontend>echo APP_ENVIRONMENT: local APP_ENVIRONMENT: local D:\appflowy\frontend>echo ECHO 处于打开状态。 D:\appflowy\frontend>echo "-------- Flutter --------" "-------- Flutter --------" D:\appflowy\frontend>flutter doctor Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale zh-CN) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Chrome - develop for the web [✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4) [✓] Android Studio (version 2020.3) [✓] IntelliJ IDEA Ultimate Edition (version 2021.2) [✓] VS Code (version 1.63.2) [✓] Connected device (3 available) • No issues found! [cargo-make] INFO - Running Task: setup-crate-type [cargo-make] INFO - Running Task: sdk-build Updating `tuna` index Compiling proc-macro2 v1.0.36 ...... Compiling flowy-sdk v0.1.0 (D:\appflowy\frontend\rust-lib\flowy-sdk) Compiling dart-ffi v0.1.0 (D:\appflowy\frontend\rust-lib\dart-ffi) Finished dev [unoptimized + debuginfo] target(s) in 1m 26s [cargo-make] INFO - Running Task: post-desktop 🚀 🚀 🚀 Flowy-SDK(windows) build success [cargo-make] INFO - Running Task: restore-crate-type [cargo-make] INFO - Running Task: generate_language_files D:\appflowy\frontend>cd "D:\appflowy\frontend" D:\appflowy\frontend>cd app_flowy/ D:\appflowy\frontend\app_flowy>flutter clean [cargo-make] INFO - Running Task: flutter-build Running "flutter pub get" in app_flowy... 5.4s 💪 Building with sound null safety 💪 lib/workspace/infrastructure/repos/workspace_repo.dart(17,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/application/sign_up_bloc.dart(8,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯 荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/blank/blank_page.dart(5,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_up_screen.dart(17,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_in_screen.dart(18,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/skip_log_in_screen.dart(18,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/welcome_screen.dart(12,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/edit_pannel/edit_pannel.dart(11,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(16,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/menu_user.dart(12,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/create_button.dart(9,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/menu_trash.dart(11,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/doc_stack_page.dart(22,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/header/header.dart(16,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/dialogs.dart(16,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/trash_page.dart(18,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/domain/edit_action/app_edit.dart(4,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/section/item.dart(17,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/widget/trash_header.dart(6,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/banner.dart(9,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(15,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/domain/edit_action/view_edit.dart(4,8): error GBB7C8005: Error when reading 'lib/generated/locale_keys.g.dart': 绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/infrastructure/repos/workspace_repo.dart(46,53): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'WorkspaceRepo'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/application/sign_up_bloc.dart(39,29): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpBloc'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/application/sign_up_bloc.dart(47,35): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpBloc'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/application/sign_up_bloc.dart(55,35): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpBloc'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/infrastructure/network_monitor.dart(47,47): error G79957FC8: A value of type 'NetworkType?' can't be assigned to a variable of type 'NetworkType' because 'NetworkType?' is nullable and 'NetworkType' isn't. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/blank/blank_page.dart(14,46): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'BlankStackContext'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_up_screen.dart(59,20): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpForm'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_up_screen.dart(91,11): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpPrompt'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_up_screen.dart(97,23): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpPrompt'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_up_screen.dart(114,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_up_screen.dart(140,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'PasswordTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_up_screen.dart(168,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'RepeatPasswordTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_up_screen.dart(192,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'EmailTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_in_screen.dart(64,20): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignInForm'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_in_screen.dart(98,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpPrompt'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_in_screen.dart(105,13): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'SignUpPrompt'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_in_screen.dart(124,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'LoginButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_in_screen.dart(152,9): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ForgetPasswordButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_in_screen.dart(175,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'PasswordTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/sign_in_screen.dart(199,21): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'EmailTextField'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/skip_log_in_screen.dart(55,18): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_SkipLogInScreenState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/skip_log_in_screen.dart(66,17): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_SkipLogInScreenState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/skip_log_in_screen.dart(75,17): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_SkipLogInScreenState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/skip_log_in_screen.dart(100,52): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_SkipLogInScreenState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/skip_log_in_screen.dart(140,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'GoButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/welcome_screen.dart(58,9): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'WelcomeScreen'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/user/presentation/welcome_screen.dart(62,72): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'WelcomeScreen'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/edit_pannel/edit_pannel.dart(60,22): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'EditPannelTopBar'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(32,18): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'QuestionBubble'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(73,32): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'QuestionBubble'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(99,32): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'QuestionBubble'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(237,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'BubbleAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(239,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'BubbleAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/float_bubble/question_bubble.dart(241,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'BubbleAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/menu_user.dart(77,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuUser'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/menu_user.dart(84,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuUser'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/create_button.dart(19,7): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'NewAppButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/create_button.dart(34,14): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'NewAppButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/menu_trash.dart(34,24): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuTrash'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/doc_stack_page.dart(227,29): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'DocShareButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/doc_stack_page.dart(284,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ShareAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/doc_stack_page.dart(286,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ShareAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/header/header.dart(105,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuAppHeader'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/header/header.dart(110,40): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuAppHeader'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/header/header.dart(121,20): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'MenuAppHeader'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/dialogs.dart(57,23): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_CreateTextFieldDialog'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/dialogs.dart(200,30): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'OkCancelButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/dialogs.dart(210,26): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'OkCancelButton'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/trash_page.dart(29,46): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'TrashStackContext'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/trash_page.dart(121,30): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_TrashStackPageState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/trash_page.dart(126,38): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_TrashStackPageState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/trash_page.dart(136,38): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class '_TrashStackPageState'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/domain/edit_action/app_edit.dart(15,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'AppDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/domain/edit_action/app_edit.dart(17,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'AppDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/widgets/menu/widget/app/section/item.dart(89,20): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ViewSectionItem'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/widget/trash_header.dart(39,28): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/widget/trash_header.dart(40,28): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/trash/widget/trash_header.dart(41,28): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/banner.dart(27,30): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'DocBanner'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/banner.dart(38,41): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'DocBanner'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/banner.dart(50,41): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'DocBanner'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(61,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(68,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(75,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(82,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(89,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(96,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(121,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(128,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(134,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(141,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/presentation/stack_page/doc/widget/toolbar/tool_bar.dart(148,24): error GA0A3EB9C: Undefined name 'LocaleKeys'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/domain/edit_action/view_edit.dart(16,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ViewDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/domain/edit_action/view_edit.dart(18,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ViewDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] lib/workspace/domain/edit_action/view_edit.dart(20,16): error GD65BB2B6: The getter 'LocaleKeys' isn't defined for the class 'ViewDisclosureAction'. [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets(241,5): error MSB8066: “D:\appflowy\frontend\app_flowy\build\windows\CMakeFiles\1e49fcaeedc3dfcead0436882494bf7c\flutter_windows.dll.rule;D:\appflowy\frontend\app_flowy\build\windows\CMakeFiles\c4f0f02a82a56df5b4c3c6228e99a0b5\flutter_assemble.rule;D:\appflowy\frontend\app_flowy\windows\flutter\CMakeLists.txt”的自定义生成已退出,代码为 1。 [D:\appflowy\frontend\app_flowy\build\windows\flutter\flutter_assemble.vcxproj] Building Windows application... Build process failed. [cargo-make] INFO - Running Task: copy-to-product [cargo-make] INFO - Build Done in 138.76 seconds. ``` in which "绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? " probably means that it cannot find the file "flutter_assemble.vcxproj" **Screenshots** If applicable, add screenshots to help explain your problem. ![image](https://user-images.githubusercontent.com/7344146/148143718-d3eaf9e2-a056-4874-bbdd-01e0a999d944.png) **Desktop (please complete the following information):** - Windows 11 21H2 - Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale zh-CN) - Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4) **Additional context** Default host: x86_64-pc-windows-msvc rustup home: C:\Users\wuzirui\.rustup installed toolchains -------------------- stable-x86_64-pc-windows-msvc nightly-2021-04-24-x86_64-pc-windows-msvc nightly-x86_64-pc-windows-msvc (default) active toolchain ---------------- nightly-x86_64-pc-windows-msvc (default) rustc 1.59.0-nightly (399ba6bb3 2022-01-03) [✓] Flutter (Channel stable, 2.8.1, on Microsoft Windows [Version 10.0.22000.376], locale zh-CN) • Flutter version 2.8.1 at C:\Flutter\flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 77d935af4d (3 weeks ago), 2021-12-16 08:37:33 -0800 • Engine revision 890a5fca2e • Dart version 2.15.1 • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) • Android SDK at C:\Users\wuzirui\AppData\Local\Android\Sdk • Platform android-31, build-tools 31.0.0 • ANDROID_HOME = C:\Users\wuzirui\AppData\Local\Android\Sdk • Java binary at: C:\Users\wuzirui\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7784292\jre\bin\java • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) • All Android licenses accepted. [✓] Chrome - develop for the web • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe [✓] Visual Studio - develop for Windows (Visual Studio Community 2022 17.0.4) • Visual Studio at C:\Program Files\Microsoft Visual Studio\2022\Community • Visual Studio Community 2022 version 17.0.32014.148 • Windows 10 SDK version 10.0.19041.0 [✓] Android Studio (version 2020.3) • Android Studio at C:\Users\wuzirui\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\203.7784292 • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.10+0-b96-7249189) [✓] IntelliJ IDEA Ultimate Edition (version 2021.2) • IntelliJ at C:\Users\wuzirui\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\212.5457.46 • Flutter plugin installed • Dart plugin version 212.5632 [✓] VS Code (version 1.63.2) • VS Code at C:\Users\wuzirui\AppData\Local\Programs\Microsoft VS Code • Flutter extension version 3.32.0 [✓] Connected device (3 available) • Windows (desktop) • windows • windows-x64 • Microsoft Windows [Version 10.0.22000.376] • Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.110 • Edge (web) • edge • web-javascript • Microsoft Edge 96.0.1054.62 • No issues found!
Author
Owner

@MikeWallaceDev commented on GitHub (Jan 5, 2022):

Hi @wuzirui ! Thank you for that bug report. There was a script file missing in the Windows build. I added it. Can you please update your repository and try again?

<!-- gh-comment-id:1006010845 --> @MikeWallaceDev commented on GitHub (Jan 5, 2022): Hi @wuzirui ! Thank you for that bug report. There was a script file missing in the Windows build. I added it. Can you please update your repository and try again?
Author
Owner

@StanLi-ops commented on GitHub (Jan 11, 2022):

I also got the same error.
Vs Code prompts me: Target of URI hasn't been generated: 'package:app_flowy/generated/locale_keys.g.dart'.

<!-- gh-comment-id:1009576689 --> @StanLi-ops commented on GitHub (Jan 11, 2022): I also got the same error. Vs Code prompts me: Target of URI hasn't been generated: 'package:app_flowy/generated/locale_keys.g.dart'.
Author
Owner

@MikeWallaceDev commented on GitHub (Jan 11, 2022):

Did you get the latest version of the code? I just added a fix to this problem.

<!-- gh-comment-id:1009577860 --> @MikeWallaceDev commented on GitHub (Jan 11, 2022): Did you get the latest version of the code? I just added a fix to this problem.
Author
Owner

@StanLi-ops commented on GitHub (Jan 11, 2022):

Did you get the latest version of the code? I just added a fix to this problem.
Yes.
When flutter-build still prompts missing 'lib/generated/locale_keys.g.dart'

<!-- gh-comment-id:1009595156 --> @StanLi-ops commented on GitHub (Jan 11, 2022): > Did you get the latest version of the code? I just added a fix to this problem. Yes. When flutter-build still prompts missing 'lib/generated/locale_keys.g.dart'
Author
Owner

@naughtz commented on GitHub (Jan 12, 2022):

您是否获得了最新版本的代码?我刚刚为这个问题添加了一个修复程序。

Yes. When flutter-build still prompts missing 'lib/generated/locale_keys.g.dart'

You need to execute frontend\scripts\generate_language_files.cmd to generate file 'lib/generated/locale_keys.g.dart'.

<!-- gh-comment-id:1010979349 --> @naughtz commented on GitHub (Jan 12, 2022): > > 您是否获得了最新版本的代码?我刚刚为这个问题添加了一个修复程序。 > > Yes. When flutter-build still prompts missing 'lib/generated/locale_keys.g.dart' You need to execute frontend\scripts\generate_language_files.cmd to generate file 'lib/generated/locale_keys.g.dart'.
Author
Owner

@StanLi-ops commented on GitHub (Jan 13, 2022):

Did you get the latest version of the code? I just added a fix to this problem.

Yes. When flutter-build still prompts missing 'lib/generated/locale_keys.g.dart'

You need to execute frontend\scripts\generate_language_files.cmd to generate file 'lib/generated/locale_keys.g.dart'.

Thanks a lot, I can compile successfully. Is this step necessary? If yes, it is suggested that an explanation of this step can be added in "BUILD_ON_WINDOWS.md".

<!-- gh-comment-id:1011888230 --> @StanLi-ops commented on GitHub (Jan 13, 2022): > > > Did you get the latest version of the code? I just added a fix to this problem. > > > > > > Yes. When flutter-build still prompts missing 'lib/generated/locale_keys.g.dart' > > You need to execute frontend\scripts\generate_language_files.cmd to generate file 'lib/generated/locale_keys.g.dart'. Thanks a lot, I can compile successfully. Is this step necessary? If yes, it is suggested that an explanation of this step can be added in "BUILD_ON_WINDOWS.md".
Author
Owner

@MikeWallaceDev commented on GitHub (Jan 17, 2022):

This step should execute automatically when you compile. I will install a Windows VM and do some testing.

<!-- gh-comment-id:1014020892 --> @MikeWallaceDev commented on GitHub (Jan 17, 2022): This step should execute automatically when you compile. I will install a Windows VM and do some testing.
Author
Owner

@MikeWallaceDev commented on GitHub (Jan 20, 2022):

I've been looking at this for 2 days now and still can't find an answer. The code is there to make this work, but somehow the cargo-make framework just isn't running it.

I have posted a question on stackoverflow, hopefully someone will come back with an answer. I have also posted an issue on the Cargo-Make project.

We'll just have to wait and see...

<!-- gh-comment-id:1017044839 --> @MikeWallaceDev commented on GitHub (Jan 20, 2022): I've been looking at this for 2 days now and still can't find an answer. The code is there to make this work, but somehow the cargo-make framework just isn't running it. I have posted [a question on stackoverflow](https://stackoverflow.com/questions/70779672/why-does-my-cargo-make-task-return-half-way-through), hopefully someone will come back with an answer. I have also posted an issue on the Cargo-Make project. We'll just have to wait and see...
Author
Owner

@edsion11 commented on GitHub (Jan 29, 2022):

hello, Mac os have the same problem, when run the below scripts:

sh ../scripts/generate_language_files.sh

It goes well!

<!-- gh-comment-id:1024897864 --> @edsion11 commented on GitHub (Jan 29, 2022): hello, Mac os have the same problem, when run the below scripts: ```sh sh ../scripts/generate_language_files.sh ``` It goes well!
Author
Owner

@inevity commented on GitHub (Apr 5, 2022):

windows 11
same error, but when run :cargo make -p development-windows-x86 appflowy-windows-dev, before this error, show

Running "flutter pub get" in app_flowy...                          13.3s
easy localization: All done! File generated in D:\appflowy\appflowy\frontend\app_flowy\lib\generated\locale_keys.g.dart
Unhandled exception:
Bad state: Unable to generate package graph, no `D:\appflowy\appflowy\frontend\app_flowy\.dart_tool\flutter_gen\pubspec.yaml` found.
#0      _pubspecForPath (package:build_runner_core/src/package_graph/package_graph.dart:232:5)
#1      _parsePackageDependencies (package:build_runner_core/src/package_graph/package_graph.dart:206:21)
#2      PackageGraph.forPath (package:build_runner_core/src/package_graph/package_graph.dart:101:33)
<asynchronous suspension>
#3      main (file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/build_runner-2.1.7/bin/build_runner.dart:27:30)
<asynchronous suspension>
pub finished with exit code 255

See, we already have the locale_keys.g.dart file.
Now just change flutter.generate = false lead the build ok.

<!-- gh-comment-id:1088420181 --> @inevity commented on GitHub (Apr 5, 2022): windows 11 same error, but when run :`cargo make -p development-windows-x86 appflowy-windows-dev`, before this error, show ``` Running "flutter pub get" in app_flowy... 13.3s easy localization: All done! File generated in D:\appflowy\appflowy\frontend\app_flowy\lib\generated\locale_keys.g.dart Unhandled exception: Bad state: Unable to generate package graph, no `D:\appflowy\appflowy\frontend\app_flowy\.dart_tool\flutter_gen\pubspec.yaml` found. #0 _pubspecForPath (package:build_runner_core/src/package_graph/package_graph.dart:232:5) #1 _parsePackageDependencies (package:build_runner_core/src/package_graph/package_graph.dart:206:21) #2 PackageGraph.forPath (package:build_runner_core/src/package_graph/package_graph.dart:101:33) <asynchronous suspension> #3 main (file:///C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/build_runner-2.1.7/bin/build_runner.dart:27:30) <asynchronous suspension> pub finished with exit code 255 ``` See, we already have the locale_keys.g.dart file. Now just change flutter.generate = false lead the build ok.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#108
No description provided.