Coder Social home page Coder Social logo

Comments (5)

hexcola avatar hexcola commented on May 4, 2024 2

I faced the same issue.

I fixed by using cargo nightly version:

rustup install nightly
rustup default nightly

and, btw, I'm using Apple M1, have to install x86_64-apple-darwin toolchain specifically (rust-lang/rust#63519) since flutter won't work directly on aarch64-apple-darwin.

even after this, you still may face a new problem, Exception: Error running pod install, try this flutter/flutter#70796 (comment) will fix that.

from appflowy.

RanKKI avatar RanKKI commented on May 4, 2024 2

Got same error here, however it's works if I run flutter run in the folder frontend/app_flowy

updated:
ok I see why, debugging in VS code will run pre-build task build_flowy_sdk, and flutter run in that folder will skip this task.

replacing one line from frontend/scripts/build_sdk.sh can solve it.

# cargo make --profile development-mac flowy-sdk-dev
rustup run nightly cargo make --profile development-mac flowy-sdk-dev

from appflowy.

appflowy avatar appflowy commented on May 4, 2024

I have updated the install_rust command with the default-toolchain specified.

install_rust:
brew bundle
rustup-init -y --default-toolchain=nightly

from appflowy.

Maksimka101 avatar Maksimka101 commented on May 4, 2024

I switched to the nightly (using rustup install nightly ; rustup default nightly)
Cleaned cache by running cargo clean in frontend/rust-lib directory
And finally face the same error ¯_(ツ)_/¯

Start building rust sdk
Default host: x86_64-apple-darwin
rustup home:  /Users/maksimzemlyanikin/.rustup

installed toolchains
--------------------

stable-x86_64-apple-darwin
nightly-2021-04-24-x86_64-apple-darwin
nightly-x86_64-apple-darwin (default)

active toolchain
----------------

nightly-x86_64-apple-darwin (directory override for '/Users/maksimzemlyanikin/Developer/appflowy/frontend')
rustc 1.58.0-nightly (2885c4748 2021-11-20)

[cargo-make] INFO - cargo make 0.35.6
[cargo-make] INFO - Project: dart-ffi
[cargo-make] INFO - Build File: Makefile.toml
[cargo-make] INFO - Task: flowy-sdk-dev
[cargo-make] INFO - Profile: development-mac
[cargo-make] INFO - Running Task: legacy-migration
[cargo-make] INFO - Running Task: echo_env
CRATE_TYPE: staticlib 
BUILD_FLAG: debug 
TARGET_OS: macos 
RUST_COMPILE_TARGET: x86_64-apple-darwin 
FEATURES: flutter 
PRODUCT_EXT: app 
 
[cargo-make] INFO - Running Task: setup-crate-type
[cargo-make] INFO - Running Task: sdk-build
cargo build --package=dart-ffi --target x86_64-apple-darwin --features=flutter
   Compiling proc-macro2 v1.0.32
   Compiling unicode-xid v0.2.2
   Compiling syn v1.0.81
   Compiling autocfg v1.0.1
   Compiling cfg-if v1.0.0
   Compiling libc v0.2.108
   Compiling memchr v2.4.1
   Compiling serde_derive v1.0.130
   Compiling lazy_static v1.4.0
   Compiling serde v1.0.130
   Compiling log v0.4.14
   Compiling pin-project-lite v0.2.7
   Compiling smallvec v1.7.0
   Compiling scopeguard v1.1.0
   Compiling itoa v0.4.8
   Compiling parking_lot_core v0.8.5
   Compiling once_cell v1.8.0
   Compiling cc v1.0.72
   Compiling futures-core v0.3.17
   Compiling ryu v1.0.5
   Compiling pkg-config v0.3.22
   Compiling proc-macro-hack v0.5.19
   Compiling serde_json v1.0.71
   Compiling regex-syntax v0.6.25
   Compiling proc-macro-nested v0.1.7
   Compiling futures-sink v0.3.17
   Compiling futures-channel v0.3.17
   Compiling futures-task v0.3.17
   Compiling tinyvec_macros v0.1.0
   Compiling matches v0.1.9
   Compiling slab v0.4.5
   Compiling pin-utils v0.1.0
   Compiling percent-encoding v2.1.0
   Compiling ppv-lite86 v0.2.15
   Compiling futures-io v0.3.17
   Compiling core-foundation-sys v0.8.3
   Compiling unicode-bidi v0.3.7
   Compiling protobuf v2.25.2
   Compiling fnv v1.0.7
   Compiling byteorder v1.4.3
   Compiling httparse v1.5.1
   Compiling typenum v1.14.0
   Compiling version_check v0.9.3
   Compiling adler v1.0.2
   Compiling gimli v0.26.1
   Compiling rustc-demangle v0.1.21
   Compiling ident_case v1.0.1
   Compiling unicode-segmentation v1.8.0
   Compiling convert_case v0.4.0
   Compiling bitflags v1.3.2
   Compiling hashbrown v0.11.2
   Compiling crossbeam-utils v0.8.5
   Compiling remove_dir_all v0.5.3
   Compiling strsim v0.10.0
   Compiling native-tls v0.2.8
   Compiling try-lock v0.2.3
   Compiling rustversion v1.0.5
   Compiling tower-service v0.3.1
   Compiling httpdate v1.0.2
   Compiling base64 v0.13.0
   Compiling encoding_rs v0.8.29
   Compiling bytecount v0.6.2
   Compiling bit-vec v0.6.3
   Compiling strum v0.21.0
   Compiling cpufeatures v0.2.1
   Compiling opaque-debug v0.3.0
   Compiling anyhow v1.0.47
   Compiling validator_types v0.12.0
   Compiling md5 v0.7.0
   Compiling termcolor v1.1.2
   Compiling mime v0.3.16
   Compiling humantime v2.1.0
   Compiling ipnet v2.3.1
   Compiling paste v1.0.6
   Compiling utf-8 v0.7.6
   Compiling dyn-clone v1.0.4
   Compiling crossbeam-epoch v0.9.5
   Compiling ansi_term v0.12.1
   Compiling crossbeam-queue v0.3.2
   Compiling eyre v0.6.5
   Compiling indenter v0.3.3
   Compiling owo-colors v1.3.0
   Compiling instant v0.1.12
   Compiling tracing-core v0.1.21
   Compiling sharded-slab v0.1.4
   Compiling lock_api v0.4.5
   Compiling thread_local v1.1.3
   Compiling tinyvec v1.5.1
   Compiling form_urlencoded v1.0.1
   Compiling tokio v1.14.0
   Compiling futures-macro v0.3.17
   Compiling futures-util v0.3.17
   Compiling num-traits v0.2.14
   Compiling num-integer v0.1.44
   Compiling miniz_oxide v0.4.4
   Compiling indexmap v1.7.0
   Compiling atomic v0.5.1
   Compiling memoffset v0.6.4
   Compiling generic-array v0.14.4
   Compiling heck v0.3.3
   Compiling bit-set v0.5.2
   Compiling libsqlite3-sys v0.22.2
   Compiling backtrace v0.3.63
   Compiling regex-automata v0.1.10
   Compiling want v0.3.0
   Compiling tracing-log v0.1.2
   Compiling ffi-support v0.4.4
   Compiling unicode-normalization v0.1.19
   Compiling aho-corasick v0.7.18
   Compiling object v0.27.1
   Compiling addr2line v0.17.0
   Compiling quote v1.0.10
   Compiling getrandom v0.2.3
   Compiling num_cpus v1.13.0
   Compiling mio v0.7.14
   Compiling signal-hook-registry v1.4.0
   Compiling time v0.1.44
   Compiling core-foundation v0.9.2
   Compiling security-framework-sys v2.4.2
   Compiling socket2 v0.4.2
   Compiling atty v0.2.14
   Compiling thread-id v3.3.0
   Compiling gethostname v0.2.1
   Compiling crossbeam-channel v0.5.1
   Compiling matchers v0.0.1
   Compiling idna v0.2.3
   Compiling parking_lot v0.11.2
   Compiling rand_core v0.6.3
   Compiling dashmap v4.0.2
   Compiling regex v1.5.4
   Compiling security-framework v2.4.2
   Compiling scheduled-thread-pool v0.2.5
   Compiling digest v0.9.0
   Compiling block-buffer v0.9.0
   Compiling rand_chacha v0.3.1
   Compiling url v2.2.2
   Compiling chrono v0.4.19
   Compiling r2d2 v0.8.9
   Compiling sha-1 v0.9.8
   Compiling crossbeam-deque v0.8.1
   Compiling rand v0.8.4
   Compiling crossbeam v0.8.1
   Compiling fancy-regex v0.5.0
   Compiling env_logger v0.8.4
   Compiling tempfile v3.2.0
   Compiling error-chain v0.12.0
   Compiling color-eyre v0.5.11
   Compiling flowy-ast v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-ast)
   Compiling darling_core v0.13.0
   Compiling tracing-attributes v0.1.18
   Compiling tokio-macros v1.6.0
   Compiling diesel_derives v1.4.1
   Compiling pin-project-internal v1.0.8
   Compiling flowy-derive v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-derive)
   Compiling derive_more v0.99.16
   Compiling strum_macros v0.21.1
   Compiling thiserror-impl v1.0.30
   Compiling serde_repr v0.1.7
   Compiling derivative v2.2.0
   Compiling async-stream-impl v0.3.2
   Compiling darling_macro v0.13.0
   Compiling darling v0.13.0
   Compiling serde_with_macros v1.5.1
   Compiling async-stream v0.3.2
   Compiling tracing v0.1.29
   Compiling pin-project v1.0.8
   Compiling allo-isolate v0.1.11
   Compiling tracing-futures v0.2.5
   Compiling thiserror v1.0.30
   Compiling diesel v1.4.8
   Compiling futures-executor v0.3.17
   Compiling futures v0.3.17
   Compiling bytes v1.1.0
   Compiling uuid v0.8.2
   Compiling serde_urlencoded v0.7.0
   Compiling serde_with v1.11.0
   Compiling tracing-serde v0.1.2
   Compiling bincode v1.3.3
   Compiling http v0.2.5
   Compiling lib-ot v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/lib-ot)
   Compiling validator v0.12.0
   Compiling tracing-subscriber v0.2.25
   Compiling flowy-user-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-user-infra)
   Compiling http-body v0.4.4
   Compiling tungstenite v0.14.0
   Compiling tracing-appender v0.1.2
   Compiling tracing-bunyan-formatter v0.2.6
   Compiling lib-log v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-log)
   Compiling migrations_internals v1.4.1
   Compiling migrations_macros v1.4.2
   Compiling tokio-util v0.6.9
   Compiling tokio-native-tls v0.3.0
   Compiling flowy-document-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-document-infra)
   Compiling lib-dispatch v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-dispatch)
   Compiling tokio-tungstenite v0.15.0
   Compiling h2 v0.3.7
   Compiling diesel_migrations v1.4.0
   Compiling lib-sqlite v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-sqlite)
   Compiling dart-notify v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/dart-notify)
   Compiling lib-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/lib-infra)
   Compiling flowy-database v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-database)
   Compiling flowy-workspace-infra v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/flowy-workspace-infra)
   Compiling hyper v0.14.15
   Compiling hyper-tls v0.5.0
   Compiling reqwest v0.11.6
   Compiling backend-service v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/backend-service)
   Compiling lib-ws v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/shared-lib/lib-ws)
   Compiling flowy-document v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-document)
   Compiling flowy-user v0.1.0 (/Users/maksimzemlyanikin/Developer/appflowy/frontend/rust-lib/flowy-user)
error[E0554]: `#![feature]` may not be used on the stable release channel
 --> flowy-document/src/lib.rs:1:1
  |
1 | #![feature(vecdeque_binary_search)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0554`.
error: could not compile `flowy-document` due to previous error
warning: build failed, waiting for other jobs to finish...
error: build failed
[cargo-make] ERROR - Error while executing command, exit code: 101
[cargo-make] WARN - Build Failed.

from appflowy.

Maksimka101 avatar Maksimka101 commented on May 4, 2024

@hexcola Could you help me again?)

from appflowy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.