[GH-ISSUE #1956] [Bug] Build flowy-error Fail #763

Closed
opened 2026-03-23 20:40:50 +00:00 by mirror · 6 comments
Owner

Originally created by @B635 on GitHub (Mar 10, 2023).
Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1956

Bug Description

When I build the rust-lib in fronted, the flowy-error can't build,the result are as follows and shows:failed to run custom build command for `flowy-error v0.1.0

failed to run custom build command for flowy-error v0.1.0 (/Users/b635/Downloads/git_warehouse/AppFlowy/fronted/rust-lib/flowy-error)

Caused by:
process didn't exit successfully: /Users/b635/Downloads/git_warehouse/AppFlowy/fronted/rust-lib/target/debug/build/flowy-error-6b248bcf31766459/build-script-build (exit status: 101)
--- stderr
thread 'main' panicked at 'called Option::unwrap() on a None value', flowy-codegen/src/protobuf_file/ast.rs:77:46
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

How to Reproduce

Screenshot 2023-03-10 at 23 31 32

Expected Behavior

build successfully in flowy-error

Operating System

MacOs

AppFlowy Version(s)

the least version

Screenshots

No response

Additional Context

No response

Originally created by @B635 on GitHub (Mar 10, 2023). Original GitHub issue: https://github.com/AppFlowy-IO/AppFlowy/issues/1956 ### Bug Description When I build the rust-lib in fronted, the flowy-error can't build,the result are as follows and shows:failed to run custom build command for `flowy-error v0.1.0 failed to run custom build command for `flowy-error v0.1.0 (/Users/b635/Downloads/git_warehouse/AppFlowy/fronted/rust-lib/flowy-error)` Caused by: process didn't exit successfully: `/Users/b635/Downloads/git_warehouse/AppFlowy/fronted/rust-lib/target/debug/build/flowy-error-6b248bcf31766459/build-script-build` (exit status: 101) --- stderr thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', flowy-codegen/src/protobuf_file/ast.rs:77:46 note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace warning: build failed, waiting for other jobs to finish... ### How to Reproduce <img width="519" alt="Screenshot 2023-03-10 at 23 31 32" src="https://user-images.githubusercontent.com/60867549/224357002-dab7238b-acf4-4a42-b222-b870e3beb01c.png"> ### Expected Behavior build successfully in flowy-error ### Operating System MacOs ### AppFlowy Version(s) the least version ### Screenshots _No response_ ### Additional Context _No response_
Author
Owner

@B635 commented on GitHub (Mar 10, 2023):

If I delete the build.rs in flowy-error, it build successfully. I did't know why build.rs can't build successfully

<!-- gh-comment-id:1464016722 --> @B635 commented on GitHub (Mar 10, 2023): If I delete the build.rs in flowy-error, it build successfully. I did't know why build.rs can't build successfully
Author
Owner

@appflowy commented on GitHub (Mar 12, 2023):

@B635 Please check this out.https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/environment-setup. I think maybe you need to switch to rust 1.65.

<!-- gh-comment-id:1465054296 --> @appflowy commented on GitHub (Mar 12, 2023): @B635 Please check this out.https://appflowy.gitbook.io/docs/essential-documentation/contribute-to-appflowy/software-contributions/environment-setup. I think maybe you need to switch to rust 1.65.
Author
Owner

@B635 commented on GitHub (Mar 12, 2023):

@appflowy The toolchain.toml has set the rust 1.65, but it still can't build

<!-- gh-comment-id:1465101166 --> @B635 commented on GitHub (Mar 12, 2023): @appflowy The toolchain.toml has set the rust 1.65, but it still can't build
Author
Owner

@B635 commented on GitHub (Mar 12, 2023):

Screenshot 2023-03-12 at 14 09 35
<!-- gh-comment-id:1465101668 --> @B635 commented on GitHub (Mar 12, 2023): <img width="827" alt="Screenshot 2023-03-12 at 14 09 35" src="https://user-images.githubusercontent.com/60867549/224527609-36eb9129-65bd-4f7c-b485-f0b23ce59b04.png">
Author
Owner

@a-wallen commented on GitHub (Mar 14, 2023):

I ran into the same issue with flowy-error failing to build. It was resolved after I switched to the appropriate rust and flutter version.

<!-- gh-comment-id:1467331350 --> @a-wallen commented on GitHub (Mar 14, 2023): I ran into the same issue with flowy-error failing to build. It was resolved after I switched to the appropriate rust and flutter version.
Author
Owner

@B635 commented on GitHub (Mar 14, 2023):

After I restart the project, it was resolved

<!-- gh-comment-id:1467339913 --> @B635 commented on GitHub (Mar 14, 2023): After I restart the project, it was resolved
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
AppFlowy-IO/AppFlowy#763
No description provided.