AppFlowy-IO / AppFlowy

Bring projects, wikis, and teams together with AI. AppFlowy is an AI collaborative workspace where you achieve more without losing control of your data. The best open source alternative to Notion.
https://www.appflowy.io
GNU Affero General Public License v3.0
50.39k stars 3.34k forks source link

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

Open allanGoldZhiKang opened 1 week ago

allanGoldZhiKang commented 1 week ago
          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)

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 https://github.com/AppFlowy-IO/AppFlowy/issues/5615#issuecomment-2194971748

allanGoldZhiKang commented 1 week ago

5615

allanGoldZhiKang commented 5 days ago

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

LucasXu0 commented 4 days ago

@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