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] can't run refer to the doc #5653

Open
allanGoldZhiKang opened this issue Jun 28, 2024 · 3 comments
Open

[Bug] can't run refer to the doc #5653

allanGoldZhiKang opened this issue Jun 28, 2024 · 3 comments

Comments

@allanGoldZhiKang
Copy link

          I had tried as what you said, but still went wrong

Below is the info:

$ sh scripts/code_generation/generate.sh
Generating files using easy_localization
Generating language files
Resolving dependencies... (4.3s)
Downloading packages... (1.0s)

  • _fe_analyzer_shared 67.0.0 (was 67.0.0) (72.0.0 available)
  • analyzer 6.4.1 (was 6.4.1) (6.7.0 available)
  • animations 2.0.11 (was 2.0.11)
  • app_links 3.5.1 (was 3.5.0) (6.1.3 available)
    ! appflowy_editor 3.0.0 from git https://github.com/AppFlowy-IO/appflowy-editor.git at e8ee05 (overridden)
    ! appflowy_editor_plugins 0.0.6 from git https://github.com/AppFlowy-IO/AppFlowy-plugins.git at 87af52 in packages/appflowy_editor_plugins (overridden)
  • archive 3.6.1 (was 3.4.10)
  • args 2.5.0 (was 2.4.2)
  • async 2.11.0 (was 2.11.0)
  • auto_size_text_field 2.2.3 (was 2.2.3)
  • avatar_stack 1.2.0 (was 1.2.0)
  • bitsdojo_window 0.1.6 (was 0.1.6)
  • bitsdojo_window_linux 0.1.4 (was 0.1.4)
  • bitsdojo_window_macos 0.1.4 (was 0.1.4)
  • bitsdojo_window_platform_interface 0.1.2 (was 0.1.2)
  • bitsdojo_window_windows 0.1.6 (was 0.1.6)
  • bloc 8.1.4 (was 8.1.3)
  • bloc_test 9.1.7 (was 9.1.6)
  • boolean_selector 2.1.1 (was 2.1.1)
  • build 2.4.1 (was 2.4.1)
  • build_config 1.1.1 (was 1.1.1)
  • build_daemon 4.0.2 (was 4.0.1)
  • build_resolvers 2.4.2 (was 2.4.2)
  • build_runner 2.4.11 (was 2.4.9)
  • build_runner_core 7.3.1 (was 7.3.0)
  • built_collection 5.1.1 (was 5.1.1)
  • built_value 8.9.2 (was 8.9.0)
  • cached_network_image 3.3.1 (was 3.3.1)
  • cached_network_image_platform_interface 4.0.0 (was 4.0.0)
  • cached_network_image_web 1.2.0 (was 1.1.1)
  • characters 1.3.0 (was 1.3.0)
  • charcode 1.3.1 (was 1.3.1)
  • checked_yaml 2.0.3 (was 2.0.3)
  • clipboard 0.1.3 (was 0.1.3)
  • clock 1.1.1 (was 1.1.1)
  • code_builder 4.10.0 (was 4.10.0)
  • collection 1.18.0 (was 1.18.0) (1.19.0 available)
  • connectivity_plus 5.0.2 (was 5.0.2) (6.0.3 available)
  • connectivity_plus_platform_interface 1.2.4 (was 1.2.4) (2.0.0 available)
  • convert 3.1.1 (was 3.1.1)
  • coverage 1.8.0 (was 1.7.2)
  • cross_file 0.3.4+1 (was 0.3.4+1)
  • crypto 3.0.3 (was 3.0.3)
  • csslib 1.0.0 (was 1.0.0)
  • dart_style 2.3.6 (was 2.3.4)
  • dbus 0.7.10 (was 0.7.10)
  • device_info_plus 10.1.0 (was 10.1.0)
  • device_info_plus_platform_interface 7.0.0 (was 7.0.0)
  • diff_match_patch 0.4.1 (was 0.4.1)
  • diffutil_dart 4.0.1 (was 4.0.1)
  • dotted_border 2.1.0 (was 2.1.0)
  • easy_debounce 2.0.3 (was 2.0.3)
  • easy_localization 3.0.7 (was 3.0.4)
  • easy_logger 0.0.2 (was 0.0.2)
  • envied 0.5.4+1 (was 0.5.3)
  • envied_generator 0.5.4+1 (was 0.5.3)
  • equatable 2.0.5 (was 2.0.5)
  • expandable 5.0.1 (was 5.0.1)
  • fake_async 1.3.1 (was 1.3.1)
  • ffi 2.1.2 (was 2.1.2)
  • file 7.0.0 (was 7.0.0)
  • file_picker 8.0.5 (was 8.0.3)
  • file_selector_linux 0.9.2+1 (was 0.9.2+1)
  • file_selector_macos 0.9.4 (was 0.9.3+3)
  • file_selector_platform_interface 2.6.2 (was 2.6.2)
  • file_selector_windows 0.9.3+1 (was 0.9.3+1)
  • fixnum 1.1.0 (was 1.1.0)
  • flutter_animate 4.5.0 (was 4.5.0)
  • flutter_bloc 8.1.6 (was 8.1.4)
    ! flutter_cache_manager 3.3.1 from git https://github.com/LucasXu0/flutter_cache_manager.git at fbab85 in flutter_cache_manager (overridden)
  • flutter_chat_types 3.6.2 (was 3.6.2)
  • flutter_chat_ui 1.6.14 (was 1.6.13)
  • flutter_colorpicker 1.1.0 (was 1.0.3)
  • flutter_highlight 0.7.0 (was 0.7.0)
  • flutter_link_previewer 3.2.2 (was 3.2.2)
  • flutter_linkify 6.0.0 (was 6.0.0)
  • flutter_lints 3.0.2 (was 3.0.1) (4.0.0 available)
  • flutter_math_fork 0.7.2 (was 0.7.2)
  • flutter_parsed_text 2.2.1 (was 2.2.1)
  • flutter_plugin_android_lifecycle 2.0.20 (was 2.0.17)
  • flutter_shaders 0.1.2 (was 0.1.2)
  • flutter_slidable 3.1.0 (was 3.0.1)
  • flutter_sticky_header 0.6.5 (was 0.6.5)
  • flutter_svg 2.0.10+1 (was 2.0.9)
  • fluttertoast 8.2.6 (was 8.2.4)
  • freezed 2.5.2 (was 2.4.7) (2.5.3 available)
  • freezed_annotation 2.4.1 (was 2.4.1)
  • frontend_server_client 4.0.0 (was 3.2.0)
  • functions_client 2.2.0 (was 2.0.0)
  • get_it 7.7.0 (was 7.6.7)
  • glob 2.1.2 (was 2.1.2)
  • go_router 13.2.5 (was 13.2.0) (14.2.0 available)
  • google_fonts 6.2.1 (was 6.1.0)
  • gotrue 2.8.1 (was 2.5.0)
  • graphs 2.3.1 (was 2.3.1)
  • gtk 2.1.0 (was 2.1.0)
  • highlight 0.7.0 (was 0.7.0)
  • hive 2.2.3 (was 2.2.3)
  • hive_flutter 1.1.0 (was 1.1.0)
  • hotkey_manager 0.1.8 (was 0.1.8) (0.2.3 available)
  • html 0.15.4 (was 0.15.4)
    ! http 1.2.1 (overridden)
  • http_multi_server 3.2.1 (was 3.2.1)
  • http_parser 4.0.2 (was 4.0.2) (4.1.0 available)
  • image_gallery_saver 2.0.3 (was 2.0.3)
  • image_picker 1.1.2 (was 1.0.7)
  • image_picker_android 0.8.12+3 (was 0.8.9+3)
  • image_picker_for_web 3.0.4 (was 3.0.2)
  • image_picker_ios 0.8.12 (was 0.8.9+1)
  • image_picker_linux 0.2.1+1 (was 0.2.1+1)
  • image_picker_macos 0.2.1+1 (was 0.2.1+1)
  • image_picker_platform_interface 2.10.0 (was 2.9.3)
  • image_picker_windows 0.2.1+1 (was 0.2.1+1)
  • intl 0.19.0 (was 0.19.0)
  • intl_utils 2.8.7 (was 2.8.7)
  • io 1.0.4 (was 1.0.4)
  • irondash_engine_context 0.5.4 (was 0.5.2)
  • irondash_message_channel 0.7.0 (was 0.6.0)
  • isolates 3.0.3+8 (was 3.0.3+8)
  • js 0.6.7 (was 0.6.7) (0.7.1 available)
  • json_annotation 4.9.0 (was 4.8.1)
  • json_serializable 6.8.0 (was 6.7.1)
  • jwt_decode 0.3.1 (was 0.3.1)
  • keyboard_height_plugin 0.0.5 (was 0.0.5)
  • leak_tracker 10.0.4 (was 10.0.4) (10.0.5 available)
  • leak_tracker_flutter_testing 3.0.3 (was 3.0.3) (3.0.5 available)
  • leak_tracker_testing 3.0.1 (was 3.0.1)
  • linked_scroll_controller 0.2.0 (was 0.2.0)
  • linkify 5.0.0 (was 5.0.0)
  • lint 1.10.0 (was 1.10.0) (2.3.0 available)
  • lints 3.0.0 (was 3.0.0) (4.0.0 available)
  • loading_indicator 3.1.1 (was 3.1.1)
  • local_notifier 0.1.6 (was 0.1.5)
  • logger 2.3.0 (was 2.0.2+1)
  • logging 1.2.0 (was 1.2.0)
  • markdown 7.2.2 (was 7.2.2)
  • markdown_widget 2.3.2+6 (was 2.3.2+6)
  • matcher 0.12.16+1 (was 0.12.16+1)
  • material_color_utilities 0.8.0 (was 0.8.0) (0.12.0 available)
  • meta 1.12.0 (was 1.12.0) (1.15.0 available)
  • mime 1.0.5 (was 1.0.5)
  • mockito 5.4.4 (was 5.4.4)
  • mocktail 1.0.4 (was 1.0.3)
  • nanoid 1.0.0 (was 1.0.0)
  • nested 1.0.0 (was 1.0.0)
  • nm 0.5.0 (was 0.5.0)
  • node_preamble 2.0.2 (was 2.0.2)
  • numerus 2.2.0 (was 2.2.0)
  • octo_image 2.0.0 (was 2.0.0)
  • package_config 2.1.0 (was 2.1.0)
  • package_info_plus 6.0.0 (was 6.0.0) (8.0.0 available)
  • package_info_plus_platform_interface 2.0.1 (was 2.0.1) (3.0.0 available)
  • path 1.9.0 (was 1.9.0)
  • path_drawing 1.0.1 (was 1.0.1)
  • path_parsing 1.0.1 (was 1.0.1)
  • path_provider 2.1.3 (was 2.1.2)
  • path_provider_android 2.2.6 (was 2.2.2)
  • path_provider_foundation 2.4.0 (was 2.3.2)
  • path_provider_linux 2.2.1 (was 2.2.1)
  • path_provider_platform_interface 2.1.2 (was 2.1.2)
  • path_provider_windows 2.2.1 (was 2.2.1)
  • percent_indicator 4.2.3 (was 4.2.3)
  • permission_handler 11.3.1 (was 11.3.1)
  • permission_handler_android 12.0.7 (was 12.0.6)
  • permission_handler_apple 9.4.5 (was 9.4.4)
  • permission_handler_html 0.1.1 (was 0.1.1)
  • permission_handler_platform_interface 4.2.1 (was 4.2.1)
  • permission_handler_windows 0.2.1 (was 0.2.1)
  • petitparser 6.0.2 (was 6.0.2)
  • photo_view 0.15.0 (was 0.15.0)
  • pixel_snap 0.1.5 (was 0.1.5)
  • platform 3.1.4 (was 3.1.4) (3.1.5 available)
  • plugin_platform_interface 2.1.8 (was 2.1.8)
  • pool 1.5.1 (was 1.5.1)
  • postgrest 2.1.2 (was 2.1.0)
  • process 5.0.2 (was 5.0.2)
  • protobuf 3.1.0 (was 3.1.0)
  • provider 6.1.2 (was 6.1.2)
  • pub_semver 2.1.4 (was 2.1.4)
  • pubspec_parse 1.3.0 (was 1.2.3)
  • realtime_client 2.1.0 (was 2.0.0)
  • recase 4.1.0 (was 4.1.0)
  • reorderable_tabbar 1.0.6 (was 1.0.6)
  • reorderables 0.6.0 (was 0.6.0)
  • retry 3.1.2 (was 3.1.2)
  • run_with_network_images 0.0.1 (was 0.0.1)
  • rxdart 0.27.7 (was 0.27.7) (0.28.0 available)
  • scaled_app 2.3.0 (was 2.3.0)
  • screen_retriever 0.1.9 (was 0.1.9)
  • scroll_to_index 3.0.1 (was 3.0.1)
  • scrollable_positioned_list 0.3.8 (was 0.3.8)
  • share_plus 7.2.2 (was 7.2.2) (9.0.0 available)
  • share_plus_platform_interface 3.4.0 (was 3.3.1) (4.0.0 available)
  • shared_preferences 2.2.3 (was 2.2.2)
  • shared_preferences_android 2.2.3 (was 2.2.1)
  • shared_preferences_foundation 2.4.0 (was 2.3.5)
  • shared_preferences_linux 2.3.2 (was 2.3.2)
  • shared_preferences_platform_interface 2.3.2 (was 2.3.2)
  • shared_preferences_web 2.3.0 (was 2.3.0)
  • shared_preferences_windows 2.3.2 (was 2.3.2)
    ! sheet 1.0.0 from git https://github.com/jamesblasco/modal_bottom_sheet at e44458 in sheet (overridden)
  • shelf 1.4.1 (was 1.4.1) (1.4.2 available)
  • shelf_packages_handler 3.0.2 (was 3.0.2)
  • shelf_static 1.1.2 (was 1.1.2)
  • shelf_web_socket 1.0.4 (was 1.0.4) (2.0.0 available)
  • shimmer 3.0.0 (was 3.0.0)
  • simple_gesture_detector 0.2.1 (was 0.2.1)
  • sized_context 1.0.0+4 (was 1.0.0+4)
  • sliver_tools 0.2.12 (was 0.2.12)
  • source_gen 1.5.0 (was 1.5.0)
  • source_helper 1.3.4 (was 1.3.4)
  • source_map_stack_trace 2.1.1 (was 2.1.1)
  • source_maps 0.10.12 (was 0.10.12)
  • source_span 1.10.0 (was 1.10.0)
  • sprintf 7.0.0 (was 7.0.0)
  • sqflite 2.3.3+1 (was 2.3.2)
  • sqflite_common 2.5.4 (was 2.5.3)
  • stack_trace 1.11.1 (was 1.11.1)
  • storage_client 2.0.2 (was 2.0.1)
  • stream_channel 2.1.2 (was 2.1.2)
  • stream_transform 2.1.0 (was 2.1.0)
  • string_scanner 1.2.0 (was 1.2.0)
  • string_validator 1.1.0 (was 1.0.2)
  • styled_widget 0.4.1 (was 0.4.1)
  • supabase 2.2.2 (was 2.0.7)
    ! supabase_flutter 2.3.1 from git https://github.com/supabase/supabase-flutter at 9b05ee in packages/supabase_flutter (overridden)
  • super_clipboard 0.8.17 (was 0.8.5)
  • super_native_extensions 0.8.17 (was 0.8.12)
  • sync_http 0.3.1 (was 0.3.1)
  • synchronized 3.1.0+1 (was 3.1.0+1)
  • tab_indicator_styler 2.0.0 (was 2.0.0)
  • table_calendar 3.1.2 (was 3.1.1)
  • term_glyph 1.2.1 (was 1.2.1)
  • test 1.25.2 (was 1.25.2) (1.25.7 available)
  • test_api 0.7.0 (was 0.7.0) (0.7.2 available)
  • test_core 0.6.0 (was 0.6.0) (0.6.4 available)
  • textstyle_extensions 2.0.0-nullsafety (was 2.0.0-nullsafety)
  • time 2.1.4 (was 2.1.4)
  • timing 1.0.1 (was 1.0.1)
  • tuple 2.0.2 (was 2.0.2)
  • typed_data 1.3.2 (was 1.3.2)
  • universal_html 2.2.4 (was 2.2.4)
  • universal_io 2.2.2 (was 2.2.2)
  • universal_platform 1.1.0 (was 1.0.0+1)
  • unsplash_client 2.2.0 (was 2.2.0)
  • url_launcher 6.3.0 (was 6.2.6)
  • url_launcher_android 6.3.3 (was 6.3.0)
  • url_launcher_ios 6.3.0 (was 6.2.4)
  • url_launcher_linux 3.1.1 (was 3.1.1)
  • url_launcher_macos 3.2.0 (was 3.1.0)
  • url_launcher_platform_interface 2.3.2 (was 2.3.2)
  • url_launcher_web 2.3.1 (was 2.3.1)
  • url_launcher_windows 3.1.1 (was 3.1.1)
    ! url_protocol 1.0.0 from git https://github.com/LucasXu0/flutter_url_protocol.git at 77a842 (overridden)
    ! uuid 4.4.0 (overridden)
  • value_layout_builder 0.3.1 (was 0.3.1)
  • vector_graphics 1.1.11+1 (was 1.1.10+1)
  • vector_graphics_codec 1.1.11+1 (was 1.1.10+1)
  • vector_graphics_compiler 1.1.11+1 (was 1.1.10+1)
  • vector_math 2.1.4 (was 2.1.4)
  • visibility_detector 0.4.0+2 (was 0.4.0+2)
  • vm_service 14.2.1 (was 14.2.1) (14.2.4 available)
  • watcher 1.1.0 (was 1.1.0)
  • web 0.5.1 (was 0.5.1)
  • web_socket_channel 2.4.5 (was 2.4.5) (3.0.0 available)
  • webdriver 3.0.3 (was 3.0.3)
  • webkit_inspection_protocol 1.2.1 (was 1.2.1)
  • win32 5.5.1 (was 5.2.0)
  • win32_registry 1.1.3 (was 1.1.2)
  • window_manager 0.3.9 (was 0.3.9)
  • xdg_directories 1.0.4 (was 1.0.4)
  • xml 6.5.0 (was 6.5.0)
  • yaml 3.1.2 (was 3.1.2)
  • yet_another_json_isolate 2.0.0 (was 2.0.0)
    These packages are no longer being depended on:
  • pointycastle 3.7.4
    Changed 267 dependencies!
    31 packages have newer versions incompatible with dependency constraints.
    Try flutter pub outdated for more information.
    Resolving dependencies... (1.6s)
    Downloading packages...
    _fe_analyzer_shared 67.0.0 (72.0.0 available)
    analyzer 6.4.1 (6.7.0 available)
    app_links 3.5.1 (6.1.3 available)
    ! appflowy_editor 3.0.0 from git https://github.com/AppFlowy-IO/appflowy-editor.git at e8ee05 (overridden)
    ! appflowy_editor_plugins 0.0.6 from git https://github.com/AppFlowy-IO/AppFlowy-plugins.git at 87af52 in packages/appflowy_editor_plugins (overridden)
    collection 1.18.0 (1.19.0 available)
    connectivity_plus 5.0.2 (6.0.3 available)
    connectivity_plus_platform_interface 1.2.4 (2.0.0 available)
    ! flutter_cache_manager 3.3.1 from git https://github.com/LucasXu0/flutter_cache_manager.git at fbab85 in flutter_cache_manager (overridden)
    flutter_lints 3.0.2 (4.0.0 available)
    freezed 2.5.2 (2.5.3 available)
    go_router 13.2.5 (14.2.0 available)
    hotkey_manager 0.1.8 (0.2.3 available)
    ! http 1.2.1 (overridden)
    http_parser 4.0.2 (4.1.0 available)
    js 0.6.7 (0.7.1 available)
    leak_tracker 10.0.4 (10.0.5 available)
    leak_tracker_flutter_testing 3.0.3 (3.0.5 available)
    lint 1.10.0 (2.3.0 available)
    lints 3.0.0 (4.0.0 available)
    material_color_utilities 0.8.0 (0.12.0 available)
    meta 1.12.0 (1.15.0 available)
    package_info_plus 6.0.0 (8.0.0 available)
    package_info_plus_platform_interface 2.0.1 (3.0.0 available)
    platform 3.1.4 (3.1.5 available)
    rxdart 0.27.7 (0.28.0 available)
    share_plus 7.2.2 (9.0.0 available)
    share_plus_platform_interface 3.4.0 (4.0.0 available)
    ! sheet 1.0.0 from git https://github.com/jamesblasco/modal_bottom_sheet at e44458 in sheet (overridden)
    shelf 1.4.1 (1.4.2 available)
    shelf_web_socket 1.0.4 (2.0.0 available)
    ! supabase_flutter 2.3.1 from git https://github.com/supabase/supabase-flutter at 9b05ee in packages/supabase_flutter (overridden)
    test 1.25.2 (1.25.7 available)
    test_api 0.7.0 (0.7.2 available)
    test_core 0.6.0 (0.6.4 available)
    ! url_protocol 1.0.0 from git https://github.com/LucasXu0/flutter_url_protocol.git at 77a842 (overridden)
    ! uuid 4.4.0 (overridden)
    vm_service 14.2.1 (14.2.4 available)
    web_socket_channel 2.4.5 (3.0.0 available)
    Got dependencies!
    31 packages have newer versions incompatible with dependency constraints.
    Try flutter pub outdated for more information.
    Specifying source directory for AppFlowy Localizations.
    Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter... (1.5s)
    Downloading packages...
    Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter.
    Building package executable...
    Built easy_localization:generate.
    All done! File generated in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/lib/generated/codegen_loader.g.dart
    Generating language files for AppFlowy.
    Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter... (1.5s)
    Downloading packages...
    Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter.
    Building package executable...
    Built easy_localization:generate.
    All done! File generated in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/lib/generated/locale_keys.g.dart
    Done generating language files.
    Generating files using build_runner
    Generating files for appflowy_flutter
    Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter... (1.8s)
    Downloading packages...
    Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter.
    Building package executable... (6.4s)
    Built build_runner:build_runner.
    [INFO] Generating build script completed, took 599ms
    [INFO] Precompiling build script... completed, took 6.2s
    [INFO] Building new asset graph completed, took 2.9s
    [INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
    [INFO] Generating SDK summary completed, took 8.1s
    [SEVERE] freezed on lib/generated/codegen_loader.g.dart:

This builder requires Dart inputs without syntax errors.
However, package:appflowy/generated/codegen_loader.g.dart (or an existing part) contains the following errors.
codegen_loader.g.dart:11856:23: Expected an identifier.
codegen_loader.g.dart:11928:20: Expected an identifier.
codegen_loader.g.dart:11934:20: Expected an identifier.
And 2 more...

Try fixing the errors and re-running the build.

[WARNING] build_resolvers:transitive_digests on package:appflowy_backend/rust_stream.dart:
Unable to read asset, could not compute transitive deps: appflowy_backend|lib/protobuf/flowy-notification/subject.pb.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/plugins/bloc/dynamic_plugin_event.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/plugins/bloc/dynamic_plugin_event.freezed.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/plugins/bloc/dynamic_plugin_state.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/plugins/service/models/flowy_dynamic_plugin.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/plugins/service/models/plugin_type.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:appflowy_backend/dispatch/dispatch.dart:
Unable to read asset, could not compute transitive deps: appflowy_backend|lib/protobuf/flowy-search/protobuf.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:appflowy_backend/dispatch/error.dart:
Unable to read asset, could not compute transitive deps: appflowy_backend|lib/protobuf/dart-ffi/protobuf.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/plugins/bloc/dynamic_plugin_bloc.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/plugins/service/plugin_service.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/colorscheme/colorscheme.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/colorscheme/default_colorscheme.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/colorscheme/lavender.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/colorscheme/dandelion.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/colorscheme/lemonade.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:appflowy_backend/appflowy_backend.dart:
Unable to read asset, could not compute transitive deps: appflowy_backend|lib/protobuf/flowy-notification/subject.pb.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[WARNING] build_resolvers:transitive_digests on package:flowy_infra/theme.dart:
Unable to read asset, could not compute transitive deps: flowy_infra|lib/colorscheme/colorscheme.g.dart

This may cause less efficient builds, see the following doc for help:
https://github.com/dart-lang/build/blob/master/docs/faq.md#unable-to-read-asset-could-not-compute-transitive-deps
[SEVERE] json_serializable on lib/generated/codegen_loader.g.dart:

This builder requires Dart inputs without syntax errors.
However, package:appflowy/generated/codegen_loader.g.dart (or an existing part) contains the following errors.
codegen_loader.g.dart:11856:23: Expected an identifier.
codegen_loader.g.dart:11928:20: Expected an identifier.
codegen_loader.g.dart:11934:20: Expected an identifier.
And 2 more...

Try fixing the errors and re-running the build.

[WARNING] json_serializable on lib/plugins/document/application/document_awareness_metadata.dart:
The version constraint "^4.8.1" on json_annotation allows versions before 4.9.0 which is not allowed.
[SEVERE] envied_generator:envied on lib/generated/codegen_loader.g.dart:

This builder requires Dart inputs without syntax errors.
However, package:appflowy/generated/codegen_loader.g.dart (or an existing part) contains the following errors.
codegen_loader.g.dart:11856:23: Expected an identifier.
codegen_loader.g.dart:11928:20: Expected an identifier.
codegen_loader.g.dart:11934:20: Expected an identifier.
And 2 more...

Try fixing the errors and re-running the build.

[INFO] Running build completed, took 2m 27s
[INFO] Caching finalized dependency graph completed, took 2.5s
[SEVERE] Failed after 2m 30s
Done generating files for appflowy_flutter
Generating files for packages
Generating freezed files in appflowy_backend/...
Please wait while we clean the project and fetch the dependencies.
Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/appflowy_backend...
Downloading packages...
Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/appflowy_backend.
Building package executable... (6.6s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 535ms
[INFO] Precompiling build script... completed, took 5.7s
[INFO] Building new asset graph completed, took 1.9s
[INFO] Checking for unexpected pre-existing outputs. completed, took 3ms
[INFO] Generating SDK summary completed, took 7.8s
[INFO] Running build completed, took 25.2s
[INFO] Caching finalized dependency graph completed, took 96ms
[INFO] Succeeded after 25.3s with 56 outputs (154 actions)
Done running build command in appflowy_backend/
Generating freezed files in appflowy_popover/...
Please wait while we clean the project and fetch the dependencies.
Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/appflowy_popover...
Downloading packages...
Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/appflowy_popover.
Could not find package build_runner or file build_runner
Done running build command in appflowy_popover/
Generating freezed files in appflowy_result/...
Please wait while we clean the project and fetch the dependencies.
Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/appflowy_result...
Downloading packages...
Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/appflowy_result.
Could not find package build_runner or file build_runner
Done running build command in appflowy_result/
Generating freezed files in flowy_infra/...
Please wait while we clean the project and fetch the dependencies.
Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/flowy_infra...
Downloading packages...
Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/flowy_infra.
Building package executable... (6.5s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 618ms
[INFO] Precompiling build script... completed, took 7.7s
[INFO] Building new asset graph completed, took 1.9s
[INFO] Checking for unexpected pre-existing outputs. completed, took 1ms
[INFO] Generating SDK summary completed, took 6.6s
[WARNING] json_serializable on lib/colorscheme/colorscheme.dart:
The version constraint "^4.7.0" on json_annotation allows versions before 4.9.0 which is not allowed.
[INFO] Running build completed, took 26.5s
[INFO] Caching finalized dependency graph completed, took 182ms
[INFO] Succeeded after 26.7s with 34 outputs (140 actions)
Done running build command in flowy_infra/
Generating freezed files in flowy_infra_ui/...
Please wait while we clean the project and fetch the dependencies.
Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/flowy_infra_ui... (1.2s)
Downloading packages...
Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/flowy_infra_ui.
Could not find package build_runner or file build_runner
Done running build command in flowy_infra_ui/
Generating freezed files in flowy_svg/...
Please wait while we clean the project and fetch the dependencies.
Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/flowy_svg...
Downloading packages...
Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter/packages/flowy_svg.
Could not find package build_runner or file build_runner
Done running build command in flowy_svg/
Generating svg files using flowy_svg
Generating flowy icon files
Resolving dependencies... (3.8s)
Downloading packages... (1.1s)
_fe_analyzer_shared 67.0.0 (72.0.0 available)
analyzer 6.4.1 (6.7.0 available)
app_links 3.5.1 (6.1.3 available)
! appflowy_editor 3.0.0 from git https://github.com/AppFlowy-IO/appflowy-editor.git at e8ee05 (overridden)
! appflowy_editor_plugins 0.0.6 from git https://github.com/AppFlowy-IO/AppFlowy-plugins.git at 87af52 in packages/appflowy_editor_plugins (overridden)
collection 1.18.0 (1.19.0 available)
connectivity_plus 5.0.2 (6.0.3 available)
connectivity_plus_platform_interface 1.2.4 (2.0.0 available)
! flutter_cache_manager 3.3.1 from git https://github.com/LucasXu0/flutter_cache_manager.git at fbab85 in flutter_cache_manager (overridden)
flutter_lints 3.0.2 (4.0.0 available)
freezed 2.5.2 (2.5.3 available)
go_router 13.2.5 (14.2.0 available)
hotkey_manager 0.1.8 (0.2.3 available)
! http 1.2.1 (overridden)
http_parser 4.0.2 (4.1.0 available)
js 0.6.7 (0.7.1 available)
leak_tracker 10.0.4 (10.0.5 available)
leak_tracker_flutter_testing 3.0.3 (3.0.5 available)
lint 1.10.0 (2.3.0 available)
lints 3.0.0 (4.0.0 available)
material_color_utilities 0.8.0 (0.12.0 available)
meta 1.12.0 (1.15.0 available)
package_info_plus 6.0.0 (8.0.0 available)
package_info_plus_platform_interface 2.0.1 (3.0.0 available)
platform 3.1.4 (3.1.5 available)
rxdart 0.27.7 (0.28.0 available)
share_plus 7.2.2 (9.0.0 available)
share_plus_platform_interface 3.4.0 (4.0.0 available)
! sheet 1.0.0 from git https://github.com/jamesblasco/modal_bottom_sheet at e44458 in sheet (overridden)
shelf 1.4.1 (1.4.2 available)
shelf_web_socket 1.0.4 (2.0.0 available)
! supabase_flutter 2.3.1 from git https://github.com/supabase/supabase-flutter at 9b05ee in packages/supabase_flutter (overridden)
test 1.25.2 (1.25.7 available)
test_api 0.7.0 (0.7.2 available)
test_core 0.6.0 (0.6.4 available)
! url_protocol 1.0.0 from git https://github.com/LucasXu0/flutter_url_protocol.git at 77a842 (overridden)
! uuid 4.4.0 (overridden)
vm_service 14.2.1 (14.2.4 available)
web_socket_channel 2.4.5 (3.0.0 available)
Got dependencies!
31 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
Resolving dependencies... (2.5s)
Downloading packages...
_fe_analyzer_shared 67.0.0 (72.0.0 available)
analyzer 6.4.1 (6.7.0 available)
app_links 3.5.1 (6.1.3 available)
! appflowy_editor 3.0.0 from git https://github.com/AppFlowy-IO/appflowy-editor.git at e8ee05 (overridden)
! appflowy_editor_plugins 0.0.6 from git https://github.com/AppFlowy-IO/AppFlowy-plugins.git at 87af52 in packages/appflowy_editor_plugins (overridden)
collection 1.18.0 (1.19.0 available)
connectivity_plus 5.0.2 (6.0.3 available)
connectivity_plus_platform_interface 1.2.4 (2.0.0 available)
! flutter_cache_manager 3.3.1 from git https://github.com/LucasXu0/flutter_cache_manager.git at fbab85 in flutter_cache_manager (overridden)
flutter_lints 3.0.2 (4.0.0 available)
freezed 2.5.2 (2.5.3 available)
go_router 13.2.5 (14.2.0 available)
hotkey_manager 0.1.8 (0.2.3 available)
! http 1.2.1 (overridden)
http_parser 4.0.2 (4.1.0 available)
js 0.6.7 (0.7.1 available)
leak_tracker 10.0.4 (10.0.5 available)
leak_tracker_flutter_testing 3.0.3 (3.0.5 available)
lint 1.10.0 (2.3.0 available)
lints 3.0.0 (4.0.0 available)
material_color_utilities 0.8.0 (0.12.0 available)
meta 1.12.0 (1.15.0 available)
package_info_plus 6.0.0 (8.0.0 available)
package_info_plus_platform_interface 2.0.1 (3.0.0 available)
platform 3.1.4 (3.1.5 available)
rxdart 0.27.7 (0.28.0 available)
share_plus 7.2.2 (9.0.0 available)
share_plus_platform_interface 3.4.0 (4.0.0 available)
! sheet 1.0.0 from git https://github.com/jamesblasco/modal_bottom_sheet at e44458 in sheet (overridden)
shelf 1.4.1 (1.4.2 available)
shelf_web_socket 1.0.4 (2.0.0 available)
! supabase_flutter 2.3.1 from git https://github.com/supabase/supabase-flutter at 9b05ee in packages/supabase_flutter (overridden)
test 1.25.2 (1.25.7 available)
test_api 0.7.0 (0.7.2 available)
test_core 0.6.0 (0.6.4 available)
! url_protocol 1.0.0 from git https://github.com/LucasXu0/flutter_url_protocol.git at 77a842 (overridden)
! uuid 4.4.0 (overridden)
vm_service 14.2.1 (14.2.4 available)
web_socket_channel 2.4.5 (3.0.0 available)
Got dependencies!
31 packages have newer versions incompatible with dependency constraints.
Try flutter pub outdated for more information.
Generating FlowySvg classes
Resolving dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter... (1.8s)
Downloading packages...
Got dependencies in /Users/allan/Downloads/AppFlowy-main/frontend/appflowy_flutter.
Building package executable...
Built flowy_svg:flowy_svg.
Done generating icon files.

Then, what should i do next?
Thank you

Originally posted by @allanGoldZhiKang in #5615 (comment)

@allanGoldZhiKang
Copy link
Author

#5615

@allanGoldZhiKang
Copy link
Author

@LucasXu0 can you help me to resolve this problem, Thank you

@LucasXu0
Copy link
Collaborator

LucasXu0 commented Jul 5, 2024

@allanGoldZhiKang You can run these two commands

# install the requirements
sh frontend/scripts/install_dev_env/install_macos.sh

# build the application
cargo make --profile development-mac-arm64 appflowy

By the way, I suggest you run the application from VSCode. That's an easier way.
https://docs.appflowy.io/docs/documentation/appflowy/from-source/environment-setup/building-on-macos

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