mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #3244] [Bug] How start code on macOS / #1430
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#1430
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 @Taverz on GitHub (Aug 20, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/3244
Bug Description
.pb.dart File ? / appflowy_backend/protobuf/ Folder?
how generate / how run ?
on mac.
Doctor -v
[✓] Flutter (Channel stable, 3.10.5, on macOS 13.4.1 22F770820d darwin-arm64, locale ru-US)
• Flutter version 3.10.5 on channel stable at /Users/nikitakovalevtaverz/Documents/dev/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 796c8ef792 (10 weeks ago), 2023-06-13 15:51:02 -0700
• Engine revision 45f6e00911
• Dart version 3.0.5
• DevTools version 2.23.1
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
• Android SDK at /Users/nikitakovalevtaverz/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 14E300c
• CocoaPods version 1.12.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2022.2)
• Android Studio at /Applications/Android Studio.app/Contents
• 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 17.0.6+0-17.0.6b802.4-9586694)
[✓] VS Code (version 1.81.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.70.0
[✓] Connected device (2 available)
• macOS (desktop) • macos • darwin-arm64 • macOS 13.4.1 22F770820d darwin-arm64
• Chrome (web) • chrome • web-javascript • Google Chrome 116.0.5845.96
[✓] Network resources
• All expected network resources are available.
• No issues found!
How to Reproduce
Expected Behavior
Operating System
Mac os
AppFlowy Version(s)
last dev - 0.2.9
Screenshots
Additional Context
No response
@LucasXu0 commented on GitHub (Aug 21, 2023):
@Taverz Did you follow the install-appflowy documentation?
@Taverz commented on GitHub (Aug 21, 2023):
@LucasXu0 yes
@LucasXu0 commented on GitHub (Aug 21, 2023):
@Taverz You can run the application by following step 4.
@Taverz commented on GitHub (Aug 21, 2023):
@LucasXu0
I was able to reproduce as you said later, at first the version of the error intl: ^17 popped up, I went up to 18, other errors appeared.
launched as it was written in the documentation -> AF-desktop: Clean + Rebuild All
launched as it was written in the documentation -> AF-desktop: Clean + Rebuild All
InvalidType get locale => throw _privateConstructorUsedError;
^^^^^^^^^^^
InvalidType locale,
^^^^^^^^^^^
InvalidType locale,
^^^^^^^^^^^
final InvalidType locale;
^^^^^^^^^^^
required final InvalidType locale,
^^^^^^^^^^^
InvalidType get locale;
^^^^^^^^^^^
Try to either
void insertContent(KeyboardInsertedContent content) {}
^^^^^^^^^^^^^
InvalidType locale,
^^^^^^^^^^^
as InvalidType,
^^^^^^^^^^^
InvalidType locale,
^^^^^^^^^^^
as InvalidType,
^^^^^^^^^^^
final InvalidType locale;
^^^^^^^^^^^
required final InvalidType locale,
^^^^^^^^^^^
..m<$core.String, BlockPB>(2, _omitFieldNames ? '' : 'blocks', entryClassName: 'DocumentDataPB2.BlocksEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: BlockPB.create, valueDefaultOrMaker: BlockPB.getDefault)
^^^^^^^^^^^^^^^^^^^
..m<$core.String, ChildrenPB>(1, _omitFieldNames ? '' : 'childrenMap', entryClassName: 'MetaPB.ChildrenMapEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: ChildrenPB.create, valueDefaultOrMaker: ChildrenPB.getDefault)
^^^^^^^^^^^^^^^^^^^
text: state.path,
^
onTapDown: onTapDown,
^
: Error: The argument type 'void Function(TapUpDetails)' can't be assigned to the parameter type 'void Function(TapDragUpDetails)?'.
onSingleTapUp: onSingleTapUp,
^
: Error: The argument type 'void Function(TapDownDetails)' can't be assigned to the parameter type 'void Function(TapDragDownDetails)?'.
onDoubleTapDown: onDoubleTapDown,
^
: Error: The argument type 'void Function(DragStartDetails)' can't be assigned to the parameter type 'void Function(TapDragStartDetails)?'.
onDragSelectionStart: onDragSelectionStart,
^
: Error: The argument type 'void Function(DragStartDetails, DragUpdateDetails)' can't be assigned to the parameter type 'void Function(TapDragUpdateDetails)?'.
onDragSelectionUpdate: onDragSelectionUpdate,
^
: Error: The argument type 'void Function(DragEndDetails)' can't be assigned to the parameter type 'void Function(TapDragEndDetails)?'.
onDragSelectionEnd: onDragSelectionEnd,
^
int,double,Pointer, or a subtype ofStructorUnion.int,double,Pointer, or a subtype ofStructorUnion.external int? wCodePage;
^
Target kernel_snapshot failed: Exception
Command PhaseScriptExecution failed with a nonzero exit code
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
/Users/nikitakovalevtaverz/Documents/GitHub/AppFlowy/frontend/appflowy_flutter/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'ReachabilitySwift' from project 'Pods')
** BUILD FAILED **
Exception: Build process failed
Exited
launched as shown in the screenshot above AF-desktop: Build Dart Only
launched as shown in the screenshot above AF-desktop: Build Dart Only
..m<$core.String, BlockPB>(2, _omitFieldNames ? '' : 'blocks', entryClassName: 'DocumentDataPB2.BlocksEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: BlockPB.create, valueDefaultOrMaker: BlockPB.getDefault)
^^^^^^^^^^^^^^^^^^^
..m<$core.String, ChildrenPB>(1, _omitFieldNames ? '' : 'childrenMap', entryClassName: 'MetaPB.ChildrenMapEntry', keyFieldType: $pb.PbFieldType.OS, valueFieldType: $pb.PbFieldType.OM, valueCreator: ChildrenPB.create, valueDefaultOrMaker: ChildrenPB.getDefault)
^^^^^^^^^^^^^^^^^^^
InvalidType get locale => throw _privateConstructorUsedError;
^^^^^^^^^^^
InvalidType locale,
^^^^^^^^^^^
InvalidType locale,
^^^^^^^^^^^
Error: Type 'InvalidType' not found.
final InvalidType locale;
^^^^^^^^^^^
required final InvalidType locale,
^^^^^^^^^^^
InvalidType get locale;
^^^^^^^^^^^
InvalidType locale,
^^^^^^^^^^^
as InvalidType,
^^^^^^^^^^^
InvalidType locale,
^^^^^^^^^^^
as InvalidType,
^^^^^^^^^^^
final InvalidType locale;
^^^^^^^^^^^
required final InvalidType locale,
^^^^^^^^^^^
Try to either
void insertContent(KeyboardInsertedContent content) {}
^^^^^^^^^^^^^
'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('../../../../dev/flutter/packages/flutter/lib/src/gestures/tap.dart').
'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('../../../../dev/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
onTapDown: onTapDown,
^
: Error: The argument type 'void Function(TapUpDetails)' can't be assigned to the parameter type 'void Function(TapDragUpDetails)?'.
'TapUpDetails' is from 'package:flutter/src/gestures/tap.dart' ('../../../../dev/flutter/packages/flutter/lib/src/gestures/tap.dart').
'TapDragUpDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('../../../../dev/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
onSingleTapUp: onSingleTapUp,
^
: Error: The argument type 'void Function(TapDownDetails)' can't be assigned to the parameter type 'void Function(TapDragDownDetails)?'.
'TapDownDetails' is from 'package:flutter/src/gestures/tap.dart' ('../../../../dev/flutter/packages/flutter/lib/src/gestures/tap.dart').
'TapDragDownDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('../../../../dev/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
onDoubleTapDown: onDoubleTapDown,
^
: Error: The argument type 'void Function(DragStartDetails)' can't be assigned to the parameter type 'void Function(TapDragStartDetails)?'.
'DragStartDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('../../../../dev/flutter/packages/flutter/lib/src/gestures/drag_details.dart').
'TapDragStartDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('../../../../dev/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
onDragSelectionStart: onDragSelectionStart,
^
: Error: The argument type 'void Function(DragStartDetails, DragUpdateDetails)' can't be assigned to the parameter type 'void Function(TapDragUpdateDetails)?'.
'DragStartDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('../../../../dev/flutter/packages/flutter/lib/src/gestures/drag_details.dart').
'DragUpdateDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('../../../../dev/flutter/packages/flutter/lib/src/gestures/drag_details.dart').
'TapDragUpdateDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('../../../../dev/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
onDragSelectionUpdate: onDragSelectionUpdate,
^
: Error: The argument type 'void Function(DragEndDetails)' can't be assigned to the parameter type 'void Function(TapDragEndDetails)?'.
'DragEndDetails' is from 'package:flutter/src/gestures/drag_details.dart' ('../../../../dev/flutter/packages/flutter/lib/src/gestures/drag_details.dart').
'TapDragEndDetails' is from 'package:flutter/src/widgets/tap_and_drag_gestures.dart' ('../../../../dev/flutter/packages/flutter/lib/src/widgets/tap_and_drag_gestures.dart').
onDragSelectionEnd: onDragSelectionEnd,
^
: Error: The argument type 'String?' can't be assigned to the parameter type 'String' because 'String?' is nullable and 'String' isn't.
text: state.path,
^
Target kernel_snapshot failed: Exception
Command PhaseScriptExecution failed with a nonzero exit code
warning: Run script build phase 'Run Script' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'Flutter Assemble' from project 'Runner')
/Users/nikitakovalevtaverz/Documents/GitHub/AppFlowy/frontend/appflowy_flutter/macos/Pods/Pods.xcodeproj: warning: The macOS deployment target 'MACOSX_DEPLOYMENT_TARGET' is set to 10.11, but the range of supported deployment target versions is 10.13 to 13.3.99. (in target 'ReachabilitySwift' from project 'Pods')
** BUILD FAILED **
Exception: Build process failed
Exited
@hmncube commented on GitHub (Aug 24, 2023):
@LucasXu0 Any news on how to fix this? These steps are not working.
@richardshiue commented on GitHub (Aug 25, 2023):
There might be a few others, but one of the problems that could be causing this is that AppFlowy is currently being built against Flutter version 3.10.1. From your
flutter doctor -vit seems like you have 3.10.5 installed. Please downgrade and see if that fixes your issue.@Taverz commented on GitHub (Aug 25, 2023):
@richardshiue can I run this particular project on one version, and the rest on another?! I have been interested in this issue for a long time, since different projects, different versions
@richardshiue commented on GitHub (Aug 26, 2023):
You can look into something like fvm that manages different flutter versions on your system.
@Mo5hu commented on GitHub (Aug 26, 2023):
@Taverz Can you show the error details, when you are running clean + rebuild all ?
@Taverz commented on GitHub (Aug 28, 2023):
@Taverz commented on GitHub (Aug 28, 2023):
Description problem
https://github.com/AppFlowy-IO/AppFlowy/issues/3244#issuecomment-1686600007
@LucasXu0 commented on GitHub (Aug 29, 2023):
@Taverz It seems you were running the application with a different version of Flutter.
You can try checking out Flutter versions 3.10.1 to 3.10.4 and give it a shot.
@Taverz commented on GitHub (Aug 30, 2023):
@LucasXu0 Changing the version didn't help. I ran =All Desktop: Clean + Rebuild= then fixed all the problems, after each fix I ran =All Desktop: Clean + Rebuild= and new problems appeared, I changed the version of intl / appflowy_editor , after they stopped crying I ran -All DEsktop: Build Dart Only - , after running more problems I just commented out these problems and restarted. everything works cheers, but I destroyed half of the project, it's a joke )) but I had to comment out a lot of code, I'll probably create a new branch and launch it to reflect the changes