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.4k stars 3.34k forks source link

[Bug] Community \ MSBuild \ Microsoft \ VC \ v170 \ Microsoft CppCommon. targets (254,5): error MSB8066 #4973

Open puning opened 3 months ago

puning commented 3 months ago

Bug Description

I run

Cargo make -- profile production windows x86 appflow

The final compilation failed with the following error

C: \ Program Files \ Microsoft Visual Studio \ 2022 \ Community \ MSBuild \ Microsoft \ VC \ v170 \ Microsoft CppCommon. targets (254,5): error MSB8066: * D: \ wwwroot \ AppFlow \ front end \ appflowy_flutter \ build \ windows \ x64 \ CMakeFiles \ 5a184fcff5748b28bf693499bc85a4a1 \ super-native extensions. dll. rule; D: In the file \ wwwroot \ AppFlow \ front end \ appflowy_flutter \ build \ windows \ x64 \ CMakeFiles \ ea6ee0acb77cdc7cb91cfe44181ec65b \ super_native_extensions_plugin_cargokit.rule Զ ˳ Ϊ 1. [D: \ wwwroot \ AppFlowy \ front end \ appflowy_flutter \ build \ windows \ x64 \ plugins \ supernotative_extensions \ supernotative_extensions_plugin_cargument. vcxproj]

Building Windows application

Build process failed

Compilation has been like this multiple times. May I ask what the problem is and how to solve it? Thank you!

How to Reproduce

cargo make --profile production-windows-x86 appflowy

Expected Behavior

After multiple unsuccessful compilations, the problem cannot be determined. How can we successfully compile

Operating System

windows11

AppFlowy Version(s)

0.5.2

Screenshots

No response

Additional Context

No response

LucasXu0 commented 3 months ago

@puning It's a cache issue due to the network. There are two options you can try:

solution 1

cd appflowy_flutter
# /Desktop/AppFlowy/frontend/appflowy_flutter
flutter clean

solution 2

# /Desktop/AppFlowy/
git clean -xdf

After that, execute cargo make --profile production-windows-x86 appflowy again.

puning commented 3 months ago

@puning It's a cache issue due to the network. There are two options you can try:

solution 1

cd appflowy_flutter
# /Desktop/AppFlowy/frontend/appflowy_flutter
flutter clean

solution 2

# /Desktop/AppFlowy/
git clean -xdf

After that, execute cargo make --profile production-windows-x86 appflowy again.

Okay, thank you. I'll try again and provide feedback here

annieappflowy commented 3 months ago

Did it work? Closing it as no follow up on the issue

puning commented 3 months ago

@puning这是网络造成的存储问题。您可以尝试以下两个选择:

解决方案1

cd appflowy_flutter
# /Desktop/AppFlowy/frontend/appflowy_flutter
flutter clean

解决方案2

# /Desktop/AppFlowy/
git clean -xdf

之后,cargo make --profile production-windows-x86 appflowy再次执行。

I did not solve the problem with the first solution, based on the same error message. Every two solutions are not applicable. Tip: fatal: not a git repository (or any of the parent directors):. git

LucasXu0 commented 3 months ago

How did you clone this project? There should be a .git file in the project's root directory.

puning commented 3 months ago

How did you clone this project? There should be a .git file in the project's root directory.

I downloaded the 0.5.2 compressed file directly from Releases

puning commented 3 months ago

How did you clone this project? There should be a .git file in the project's root directory.

I changed the Flutter source and downloaded and installed it through Git, and there was no problem. It should be caused by my use of an image source. Thank you for your reply and help, thank you very much!