mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2026-03-24 04:46:56 +00:00
[GH-ISSUE #210] [Bug] Windows Build Failed #108
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#108
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 @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:
in which "绯荤粺鎵句笉鍒版寚瀹氱殑璺緞銆? " probably means that it cannot find the file "flutter_assemble.vcxproj"
Screenshots

If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
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!
@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?
@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'.
@MikeWallaceDev commented on GitHub (Jan 11, 2022):
Did you get the latest version of the code? I just added a fix to this problem.
@StanLi-ops commented on GitHub (Jan 11, 2022):
@naughtz commented on GitHub (Jan 12, 2022):
You need to execute frontend\scripts\generate_language_files.cmd to generate file 'lib/generated/locale_keys.g.dart'.
@StanLi-ops commented on GitHub (Jan 13, 2022):
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".
@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.
@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...
@edsion11 commented on GitHub (Jan 29, 2022):
hello, Mac os have the same problem, when run the below scripts:
It goes well!
@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, showSee, we already have the locale_keys.g.dart file.
Now just change flutter.generate = false lead the build ok.