Coder Social home page Coder Social logo

Comments (15)

emmanuel-keller avatar emmanuel-keller commented on June 2, 2024 6

@miladamery It should be merged to the branch 1.x by tomorrow. I will check with the team when it will be released

from surrealdb.

emmanuel-keller avatar emmanuel-keller commented on June 2, 2024 4

Problem confirmed. We're figuring out the best way to solve this. We will provide updates promptly.

from surrealdb.

emmanuel-keller avatar emmanuel-keller commented on June 2, 2024 2

v1.5.1 is out, the compilation issue should be solved.

from surrealdb.

ctison avatar ctison commented on June 2, 2024 1

Successfully builds after upgrading [email protected] to [email protected] and running cargo update 🎉.

from surrealdb.

charlescgs avatar charlescgs commented on June 2, 2024

Have the same issue, I am unable to compile my app after update to 1.5.0

from surrealdb.

Vzz1c avatar Vzz1c commented on June 2, 2024

+1

from surrealdb.

AnatoliiShliakhto avatar AnatoliiShliakhto commented on June 2, 2024

same

from surrealdb.

drunkplato avatar drunkplato commented on June 2, 2024

same

from surrealdb.

markocoric avatar markocoric commented on June 2, 2024

I can't build on Rust 1.78.0 ... no matter if use 1.3, 1.4, 1.5 version. For exampole, error

error[E0277]: the trait bound surrealdb_core::err::Error: Fromrevision::Error is not satisfied --> /Users/markocoric/.cargo/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:176:74

let kvs = kvs.with_temporary_directory(address.config.temporary_directory);

yup, no mater on version you select, this is my cargo build output

   Compiling speedb v0.0.4
   Compiling surrealdb-core v2.0.0-1.5.0
   Compiling surrealdb-core v1.4.2
   Compiling surrealdb v1.5.0
error[E0599]: no method named `with_temporary_directory` found for struct `Datastore` in the current scope
   --> /root/.cargo/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/local/native.rs:156:17
    |
156 |         let kvs = kvs.with_temporary_directory(address.config.temporary_directory);
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Datastore`

For more information about this error, try `rustc --explain E0599`.

Screenshot 2024-05-15 at 14 40 16

from surrealdb.

ctison avatar ctison commented on June 2, 2024

Hey, for me it builds on Rust 1.78.0-aarch64-apple-darwin with surrealdb = { version = "1.3.1", features = ["kv-rocksdb", "kv-mem"] } , but fails when upgrading surrealdb to the versions above v1.3.1.

When trying to upgrade then downgrade surrealdb (eg. v1.3.1->v1.4.2->v1.3.1), cargo won't be able to downgrade deps' deps, and will continue to output build errors from [email protected] (even tho I upgraded to v1.4.2 not v1.5.0 before downgrading to v1.3.1) or else, so you must revert changes to the Cargo.lock (and not simply cargo clean or deleting it, it's weird/sad I know).

When upgrading from surrealdb from v1.3.1 to v1.4.2, cargo build tries to build [email protected], which fails with bunch of errors, and I've seen many more differents errors trying to tinker with surrealdb in Cargo.toml, so this log is not "exhaustive" and I also came accross the logs from previous comments.
error[E0599]: no method named `with_temporary_directory` found for struct `Datastore` in the current scope
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/local/native.rs:156:17
    |
156 |         let kvs = kvs.with_temporary_directory(address.config.temporary_directory);
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^ method not found in `Datastore`

error[E0277]: the trait bound `surrealdb_core::sql::Value: Revisioned` is not satisfied
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/native.rs:444:12
    |
444 | ...                   #[revisioned(revision = 1)]
    |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `surrealdb_core::sql::Value`, which is required by `std::option::Option<surrealdb_core::sql::Value>: Revisioned`
    |
    = help: the following other types implement trait `Revisioned`:
              bool
              char
              isize
              i8
              i16
              i32
              i64
              i128
            and 77 others
    = note: required for `std::option::Option<surrealdb_core::sql::Value>` to implement `Revisioned`
    = note: this error originates in the attribute macro `revisioned` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `surrealdb_core::sql::Value: Revisioned` is not satisfied
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/native.rs:447:17
    |
447 | ...                   id: Option<Value>,
    |                           ^^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `surrealdb_core::sql::Value`, which is required by `std::option::Option<surrealdb_core::sql::Value>: Revisioned`
    |
    = help: the following other types implement trait `Revisioned`:
              bool
              char
              isize
              i8
              i16
              i32
              i64
              i128
            and 77 others
    = note: required for `std::option::Option<surrealdb_core::sql::Value>` to implement `Revisioned`

error[E0277]: the trait bound `surrealdb_core::sql::Value: Revisioned` is not satisfied
  --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:94:1
   |
94 | #[revisioned(revision = 1)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `surrealdb_core::sql::Value`
   |
   = help: the following other types implement trait `Revisioned`:
             bool
             char
             isize
             i8
             i16
             i32
             i64
             i128
           and 76 others
   = note: this error originates in the attribute macro `revisioned` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `QueryMethodResponse: Revisioned` is not satisfied
  --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:94:1
   |
94 | #[revisioned(revision = 1)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `QueryMethodResponse`, which is required by `Vec<QueryMethodResponse>: Revisioned`
   |
   = help: the following other types implement trait `Revisioned`:
             bool
             char
             isize
             i8
             i16
             i32
             i64
             i128
           and 76 others
   = note: required for `Vec<QueryMethodResponse>` to implement `Revisioned`
   = note: this error originates in the attribute macro `revisioned` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `surrealdb_core::dbs::Notification: Revisioned` is not satisfied
  --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:94:1
   |
94 | #[revisioned(revision = 1)]
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `surrealdb_core::dbs::Notification`
   |
   = help: the following other types implement trait `Revisioned`:
             bool
             char
             isize
             i8
             i16
             i32
             i64
             i128
           and 76 others
   = note: this error originates in the attribute macro `revisioned` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `surrealdb_core::sql::Value: Revisioned` is not satisfied
  --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:97:8
   |
97 |     Other(Value),
   |           ^^^^^ the trait `Revisioned` is not implemented for `surrealdb_core::sql::Value`
   |
   = help: the following other types implement trait `Revisioned`:
             bool
             char
             isize
             i8
             i16
             i32
             i64
             i128
           and 76 others

error[E0277]: the trait bound `QueryMethodResponse: Revisioned` is not satisfied
  --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:98:8
   |
98 |     Query(Vec<QueryMethodResponse>),
   |           ^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `QueryMethodResponse`, which is required by `Vec<QueryMethodResponse>: Revisioned`
   |
   = help: the following other types implement trait `Revisioned`:
             bool
             char
             isize
             i8
             i16
             i32
             i64
             i128
           and 76 others
   = note: required for `Vec<QueryMethodResponse>` to implement `Revisioned`

error[E0277]: the trait bound `surrealdb_core::dbs::Notification: Revisioned` is not satisfied
  --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:99:7
   |
99 |     Live(Notification),
   |          ^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `surrealdb_core::dbs::Notification`
   |
   = help: the following other types implement trait `Revisioned`:
             bool
             char
             isize
             i8
             i16
             i32
             i64
             i128
           and 76 others

error[E0277]: the trait bound `surrealdb_core::sql::Value: Revisioned` is not satisfied
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:154:1
    |
154 | #[revisioned(revision = 1)]
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `surrealdb_core::sql::Value`, which is required by `std::option::Option<surrealdb_core::sql::Value>: Revisioned`
    |
    = help: the following other types implement trait `Revisioned`:
              bool
              char
              isize
              i8
              i16
              i32
              i64
              i128
            and 76 others
    = note: required for `std::option::Option<surrealdb_core::sql::Value>` to implement `Revisioned`
    = note: this error originates in the attribute macro `revisioned` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0277]: the trait bound `surrealdb_core::sql::Value: Revisioned` is not satisfied
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:157:6
    |
157 |     id: Option<Value>,
    |         ^^^^^^^^^^^^^ the trait `Revisioned` is not implemented for `surrealdb_core::sql::Value`, which is required by `std::option::Option<surrealdb_core::sql::Value>: Revisioned`
    |
    = help: the following other types implement trait `Revisioned`:
              bool
              char
              isize
              i8
              i16
              i32
              i64
              i128
            and 76 others
    = note: required for `std::option::Option<surrealdb_core::sql::Value>` to implement `Revisioned`

error[E0599]: no method named `serialize_revisioned` found for reference `&surrealdb_core::sql::Value` in the current scope
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:164:9
    |
164 |         value.serialize_revisioned(&mut buf).map_err(|error| crate::Error::Db(error.into()))?;
    |               ^^^^^^^^^^^^^^^^^^^^ method not found in `&Value`
    |
    = help: items from traits can only be used if the trait is in scope
help: trait `Revisioned` which provides `serialize_revisioned` is implemented but not in scope; perhaps you want to import it
    |
3   + use revision::Revisioned;
    |

error[E0277]: the trait bound `surrealdb_core::err::Error: From<revision::Error>` is not satisfied
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/engine/remote/ws/mod.rs:176:74
    |
176 |         return T::deserialize_revisioned(bytes).map_err(|x| crate::Error::Db(x.into()));
    |                                                                                ^^^^ the trait `From<revision::Error>` is not implemented for `surrealdb_core::err::Error`, which is required by `revision::Error: Into<_>`
    |
    = help: the following other types implement trait `From<T>`:
              <surrealdb_core::err::Error as From<echodb::err::Error>>
              <surrealdb_core::err::Error as From<async_channel::SendError<T>>>
              <surrealdb_core::err::Error as From<async_channel::RecvError>>
              <surrealdb_core::err::Error as From<Box<bincode::ErrorKind>>>
              <surrealdb_core::err::Error as From<revision::error::Error>>
              <surrealdb_core::err::Error as From<storekey::decode::Error>>
              <surrealdb_core::err::Error as From<storekey::encode::Error>>
              <surrealdb_core::err::Error as From<surrealdb_jsonwebtoken::errors::Error>>
            and 10 others
    = note: required for `revision::Error` to implement `Into<surrealdb_core::err::Error>`

error[E0599]: no method named `to_cond` found for struct `surrealdb_core::sql::Range` in the current scope
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/method/live.rs:70:25
    |
70  |                         stmt.cond = range.to_cond();
    |                                           ^^^^^^^ method not found in `Range`
...
142 |     into_future! {}
    |     --------------- in this macro invocation
    |
    = note: this error originates in the macro `into_future` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `to_cond` found for struct `surrealdb_core::sql::Range` in the current scope
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/method/live.rs:70:25
    |
70  |                         stmt.cond = range.to_cond();
    |                                           ^^^^^^^ method not found in `Range`
...
153 |     into_future! {}
    |     --------------- in this macro invocation
    |
    = note: this error originates in the macro `into_future` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no method named `to_cond` found for struct `surrealdb_core::sql::Range` in the current scope
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/method/live.rs:70:25
    |
70  |                         stmt.cond = range.to_cond();
    |                                           ^^^^^^^ method not found in `Range`
...
164 |     into_future! {}
    |     --------------- in this macro invocation
    |
    = note: this error originates in the macro `into_future` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0599]: no function or associated item named `new` found for struct `surrealdb_core::sql::Range` in the current scope
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/opt/resource.rs:24:45
    |
24  |             Resource::Table(table) => Ok(sql::Range::new(table.0, range.start, range.end)),
    |                                                      ^^^ function or associated item not found in `Range`
    |
    = help: items from traits can only be used if the trait is implemented and in scope
note: `conn::Connection` defines an item `new`, perhaps you need to implement it
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/registry/src/index.crates.io-6f17d22bba15001f/surrealdb-1.5.0/src/api/conn.rs:170:1
    |
170 | pub trait Connection: Sized + Send + Sync + 'static {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
help: there is a method `ne` with a similar name, but with different arguments
   --> /Users/nil/.local/share/mise/installs/rust/1.78.0/toolchains/1.78.0-aarch64-apple-darwin/lib/rustlib/src/rust/library/core/src/cmp.rs:263:5
    |
263 |     fn ne(&self, other: &Rhs) -> bool {
    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
error: could not compile `surrealdb` (lib) due to 17 previous errors

Working Cargo.toml with Rust 1.78.0-aarch64-apple-darwin

[workspace.dependencies]
surrealdb = { version = "1.3.1", features = ["kv-rocksdb", "kv-mem"] }

🤞💋🤖

from surrealdb.

Walker-00 avatar Walker-00 commented on June 2, 2024

same here both on my Arch and ubuntu 22.04 server

from surrealdb.

takkuumi avatar takkuumi commented on June 2, 2024

same here

from surrealdb.

Walker-00 avatar Walker-00 commented on June 2, 2024

I Think it's the problem with kv features

from surrealdb.

miladamery avatar miladamery commented on June 2, 2024

@emmanuel-keller Hi. any idea when your pull request will be merged?

from surrealdb.

miladamery avatar miladamery commented on June 2, 2024

After upgrading to [email protected] compilation issue fixed.
Thank you @emmanuel-keller, Thanks everyone.
Im gona close this issue.

from surrealdb.

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.