mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #37] [Bug] The setter 'observer' isn't defined for the type 'Bloc' #17
Labels
No labels
2024
2025
2026
acct mgmt
AI
automation
bug
calendar
ci
CJK
cloud
code-block
collaboration
copy-paste
database
data migration
data sync
deploy
desktop
develop
develop
documentation
duplicate
editor
editor-plugin
emoji
export
files
flutter-only
follow-up
formula
good first issue for devs
good first issue for experienced devs
grid
hacktoberfest
HACKTOBERFEST-ACCEPTED
help wanted
i18n
icons
images
importer
improvements
infra
install
integrations
IR
kanban board
login
look and joy
mentorship
mobile
mobile
needs design
new feature
new feature
non-coding
notes
notifications
onboarding
organization
P0+
permission
platform-linux
platform-mac
platform-windows
plugins
program
pull-request
Q1 25
Q1 26
Q2 24
Q2 25
Q3 24
Q3 25
Q4 24
Q4 25
react
regression
rust
rust
Rust-only
Rust-only
Rust-starter
Rust-starter
self-hosted
shortcuts
side panel
slash-menu
sync v2
table
tablet
task
tauri
templates
tests
themes
translation
v0.5.6
v0.5.8
v0.5.9
v0.6.0
v0.6.1
v0.6.4
v0.6.7
v0.6.8
v0.7.1
v0.7.4
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.8.0
v0.8.4
v0.8.5
v0.8.9
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
AppFlowy-IO/AppFlowy#17
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xurenda on GitHub (Nov 19, 2021).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/37
Originally assigned to: @appflowy on GitHub.
In
app_flowy/lib/startup/tasks/application_task.dart, line 19:The error arises:
The setter 'observer' isn't defined for the type 'Bloc'.I run:
flutter run -d macosGot:
Does anyone know what to do? Thank you very much!
@appflowy commented on GitHub (Nov 19, 2021):
@xurenda Would you mind showing me your flutter env by running: flutter pub get?
@xurenda commented on GitHub (Nov 20, 2021):
@appflowy Sure, thanks for your reply.
flutter pub get:flutter pub get -v[ +151 ms] executing: sysctl hw.optional.arm64 [ +32 ms] Exit code 0 from: sysctl hw.optional.arm64 [ +3 ms] hw.optional.arm64: 1 [ +8 ms] executing: [/Users/kingen/flutter/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H [ +30 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H [ ] 2901cd720879ba3d7ba7cbd7d447ec9e80f937b6 [ +1 ms] executing: [/Users/kingen/flutter/flutter/] git tag --points-at 2901cd720879ba3d7ba7cbd7d447ec9e80f937b6 [ +26 ms] Exit code 0 from: git tag --points-at 2901cd720879ba3d7ba7cbd7d447ec9e80f937b6 [ ] 2.8.0-3.2.pre [ +13 ms] executing: [/Users/kingen/flutter/flutter/] git rev-parse --abbrev-ref --symbolic @{u} [ +20 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u} [ ] origin/beta [ ] executing: [/Users/kingen/flutter/flutter/] git ls-remote --get-url origin [ +20 ms] Exit code 0 from: git ls-remote --get-url origin [ ] https://github.com/flutter/flutter.git [ +154 ms] Unable to locate an Android SDK. [ +9 ms] executing: [/Users/kingen/flutter/flutter/] git rev-parse --abbrev-ref HEAD [ +27 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD [ ] beta [ +9 ms] executing: sw_vers -productName [ +31 ms] Exit code 0 from: sw_vers -productName [ ] macOS [ ] executing: sw_vers -productVersion [ +18 ms] Exit code 0 from: sw_vers -productVersion [ ] 11.5.2 [ ] executing: sw_vers -buildVersion [ +17 ms] Exit code 0 from: sw_vers -buildVersion [ ] 20G95 [ +66 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ +48 ms] Running "flutter pub get" in flutter_tools... [ +6 ms] executing: [/Users/kingen/flutter/flutter/packages/flutter_tools/] /Users/kingen/flutter/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub --verbose get --no-precompile [ +90 ms] MSG : Resolving dependencies... [ +17 ms] MSG : devtools_shared 2.7.0 (2.8.0 available) [ ] | pedantic 1.11.1 (discontinued replaced by lints) [ ] | shelf 1.1.4 (1.2.0 available) [ ] | test 1.17.12 (1.19.3 available) [ ] | test_api 0.4.3 (0.4.7 available) [ ] | test_core 0.4.2 (0.4.8 available) [ ] | vm_service 7.3.0 (7.5.0 available) [ ] MSG : Downloading devtools_shared 2.7.0... [ ] MSG : Downloading dwds 11.4.0... [ ] MSG : Downloading dds 2.1.4... [ ] MSG : Downloading archive 3.1.6... [ +2 ms] MSG : Got dependencies! [ +139 ms] Running "flutter pub get" in flutter_tools... (completed in 3.9s) [ +24 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update. [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update. [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update. [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update. [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update. [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'WindowsUwpEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update. [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update. [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update. [ ] Artifact Instance of 'PubDependencies' is not required, skipping update. [ +98 ms] Found plugin flowy_editor at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_editor/ [ +8 ms] Found plugin flowy_infra_ui at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_infra_ui/ [ +4 ms] Found plugin flowy_sdk at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_sdk/ [ +2 ms] Found plugin flowy_infra_ui_web at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_web/ [ +91 ms] Running "flutter pub get" in app_flowy... [ +3 ms] executing: [/Users/kingen/Desktop/code/app/app_flowy/] /Users/kingen/flutter/flutter/bin/cache/dart-sdk/bin/dart __deprecated_pub --verbose get --no-precompile [ +92 ms] MSG : Resolving dependencies... [ +19 ms] MSG : bloc 8.0.0 (8.0.1 available) [ ] | build_resolvers 2.0.4 (2.0.5 available) [ ] | dartz 0.10.0-nullsafety.2 (0.10.0 available) [ ] | flutter_colorpicker 0.6.1 (1.0.2 available) [ ] | flutter_svg 0.22.0 (0.23.0+1 available) [ ] | freezed 0.14.5 (1.0.0 available) [ ] | freezed_annotation 0.14.3 (1.0.0 available) [ ] | path_provider_android 2.0.7 (2.0.8 available) [ ] | quiver_hashcode 2.0.0 (3.0.0+1 available) [ ] | test_api 0.4.3 (0.4.7 available) [ ] | url_launcher 6.0.13 (6.0.14 available) [ ] MSG : Downloading vector_math 2.1.1... [ ] MSG : Downloading animations 2.0.2... [ ] MSG : Got dependencies! [ +98 ms] Running "flutter pub get" in app_flowy... (completed in 5.7s) [ +54 ms] Found plugin window_size at /Users/kingen/.pub-cache/git/flutter-desktop-embedding-e48abe7c3e9ebfe0b81622167c5201d4e783bb81/plugins/window_size/ [ +36 ms] Found plugin flutter_inappwebview at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview-5.3.2/ [ +1 ms] Found plugin flutter_keyboard_visibility at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/flutter_keyboard_visibility-5.1.0/ [ ] Found plugin flutter_keyboard_visibility_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/flutter_keyboard_visibility_web-2.0.0/ [ ] Found plugin flutter_plugin_android_lifecycle at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/flutter_plugin_android_lifecycle-2.0.4/ [ +7 ms] Found plugin image_picker at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/image_picker-0.8.4+4/ [ ] Found plugin image_picker_for_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/image_picker_for_web-2.1.4/ [ +7 ms] Found plugin package_info_plus at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus-1.3.0/ [ ] Found plugin package_info_plus_macos at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus_macos-1.3.0/ [ +1 ms] Found plugin package_info_plus_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus_web-1.0.4/ [ +1 ms] Found plugin path_provider at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider-2.0.7/ [ ] Found plugin path_provider_android at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_android-2.0.7/ [ ] Found plugin path_provider_ios at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_ios-2.0.7/ [ ] Found plugin path_provider_linux at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-2.1.2/ [ ] Found plugin path_provider_macos at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_macos-2.0.3/ [ ] Found plugin path_provider_windows at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-2.0.4/ [ +11 ms] Found plugin url_launcher at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher-6.0.13/ [ +1 ms] Found plugin url_launcher_linux at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_linux-2.0.2/ [ +1 ms] Found plugin url_launcher_macos at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_macos-2.0.2/ [ ] Found plugin url_launcher_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_web-2.0.4/ [ ] Found plugin url_launcher_windows at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_windows-2.0.2/ [ +1 ms] Found plugin video_player at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/video_player-2.2.7/ [ ] Found plugin video_player_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/video_player_web-2.0.4/ [ +4 ms] Found plugin flowy_editor at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_editor/ [ +1 ms] Found plugin flowy_infra_ui at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_infra_ui/ [ +1 ms] Found plugin flowy_sdk at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_sdk/ [ ] Found plugin flowy_infra_ui_web at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_web/ [ +37 ms] Found plugin window_size at /Users/kingen/.pub-cache/git/flutter-desktop-embedding-e48abe7c3e9ebfe0b81622167c5201d4e783bb81/plugins/window_size/ [ +7 ms] Found plugin flutter_inappwebview at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/flutter_inappwebview-5.3.2/ [ ] Found plugin flutter_keyboard_visibility at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/flutter_keyboard_visibility-5.1.0/ [ ] Found plugin flutter_keyboard_visibility_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/flutter_keyboard_visibility_web-2.0.0/ [ ] Found plugin flutter_plugin_android_lifecycle at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/flutter_plugin_android_lifecycle-2.0.4/ [ +2 ms] Found plugin image_picker at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/image_picker-0.8.4+4/ [ +1 ms] Found plugin image_picker_for_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/image_picker_for_web-2.1.4/ [ +2 ms] Found plugin package_info_plus at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus-1.3.0/ [ ] Found plugin package_info_plus_macos at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus_macos-1.3.0/ [ ] Found plugin package_info_plus_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/package_info_plus_web-1.0.4/ [ ] Found plugin path_provider at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider-2.0.7/ [ ] Found plugin path_provider_android at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_android-2.0.7/ [ ] Found plugin path_provider_ios at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_ios-2.0.7/ [ ] Found plugin path_provider_linux at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_linux-2.1.2/ [ ] Found plugin path_provider_macos at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_macos-2.0.3/ [ ] Found plugin path_provider_windows at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/path_provider_windows-2.0.4/ [ +8 ms] Found plugin url_launcher at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher-6.0.13/ [ ] Found plugin url_launcher_linux at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_linux-2.0.2/ [ ] Found plugin url_launcher_macos at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_macos-2.0.2/ [ ] Found plugin url_launcher_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_web-2.0.4/ [ ] Found plugin url_launcher_windows at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/url_launcher_windows-2.0.2/ [ ] Found plugin video_player at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/video_player-2.2.7/ [ ] Found plugin video_player_web at /Users/kingen/.pub-cache/hosted/pub.flutter-io.cn/video_player_web-2.0.4/ [ +2 ms] Found plugin flowy_editor at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_editor/ [ +1 ms] Found plugin flowy_infra_ui at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_infra_ui/ [ ] Found plugin flowy_sdk at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_sdk/ [ ] Found plugin flowy_infra_ui_web at /Users/kingen/Desktop/code/app/app_flowy/packages/flowy_infra_ui/flowy_infra_ui_web/ [ +15 ms] Generating /Users/kingen/Desktop/code/app/app_flowy/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java [ +51 ms] executing: sysctl hw.optional.arm64 [ +14 ms] Exit code 0 from: sysctl hw.optional.arm64 [ ] hw.optional.arm64: 1 [ ] executing: /usr/bin/arch -arm64e xcrun xcodebuild -version [ +593 ms] Exit code 0 from: /usr/bin/arch -arm64e xcrun xcodebuild -version [ ] Xcode 13.1 Build version 13A1030d [ +13 ms] "flutter get" took 10,842ms. [ +266 ms] ensureAnalyticsSent: 259ms [ +1 ms] Running shutdown hooks [ ] Shutdown hooks complete [ ] exiting with code 0app_flowy/.dart_tool/package_config.json:Is there something wrong with my version?
Here is additional information:
flutter doctor -v[✓] Flutter (Channel beta, 2.8.0-3.2.pre, on macOS 11.5.2 20G95 darwin-arm, locale zh-Hans-CN) • Flutter version 2.8.0-3.2.pre at /Users/kingen/flutter/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 2901cd7208 (33 hours ago), 2021-11-18 11:15:09 -0800 • Engine revision bcc2b7f12c • Dart version 2.15.0 (build 2.15.0-268.18.beta) • Pub download mirror https://pub.flutter-io.cn • Flutter download mirror https://storage.flutter-io.cn[✗] Android toolchain - develop for Android devices
✗ Unable to locate Android SDK.
Install Android Studio from: https://developer.android.com/studio/index.html
On first launch it will assist you in installing the Android SDK components.
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
If the Android SDK has been installed to a custom location, please use
flutter config --android-sdkto update to that location.[✓] Xcode - develop for iOS and macOS (Xcode 13.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] VS Code (version 1.62.3)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.28.0
[!] Proxy Configuration
• HTTP_PROXY is set
! NO_PROXY is not set
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 11.5.2 20G95 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 96.0.4664.55
! Doctor found issues in 3 categories.
flutter --version:dart --version:@appflowy commented on GitHub (Nov 20, 2021):
Thank you, the errors caused by the flutter_bloc version changed. I will fix it asap.
@appflowy commented on GitHub (Nov 20, 2021):
@xurenda Done, Pulling the latest main branch code, please.
@xurenda commented on GitHub (Nov 20, 2021):
@appflowy Great, it works fine!