Comments (15)
@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.
Problem confirmed. We're figuring out the best way to solve this. We will provide updates promptly.
from surrealdb.
v1.5.1 is out, the compilation issue should be solved.
from surrealdb.
Successfully builds after upgrading [email protected]
to [email protected]
and running cargo update
🎉.
from surrealdb.
Have the same issue, I am unable to compile my app after update to 1.5.0
from surrealdb.
+1
from surrealdb.
same
from surrealdb.
same
from surrealdb.
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`.
from surrealdb.
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.
same here both on my Arch and ubuntu 22.04 server
from surrealdb.
same here
from surrealdb.
I Think it's the problem with kv features
from surrealdb.
@emmanuel-keller Hi. any idea when your pull request will be merged?
from surrealdb.
After upgrading to [email protected]
compilation issue fixed.
Thank you @emmanuel-keller, Thanks everyone.
Im gona close this issue.
from surrealdb.
Related Issues (20)
- Bug: CLI handling of version check not working HOT 1
- Bug: "No Iterator has been found" when mixing indexes HOT 1
- Bug: REPL exits immediately HOT 4
- Bug: graph queries do not work as documented HOT 3
- Uploaded SurrealML Model Did Not Give Expected Results HOT 1
- Bug: Relation creation using Rust SDK fails HOT 2
- Bug: Select value breaks fetch
- Bug: table name is stored in an escaped format if the id is passed as a field HOT 2
- Bug: (Rust SDK) `.bind()` function on query doesn't seem to work correctly when passing valid record id as a `&str`. HOT 1
- Feature: `surrealdb::api::method::Surreal::create` should return `Option<T>` when creating a record with a random ID.
- Bug: Large `number`s cast into odd floats instead of decimals
- Bug: Incorrect parsing of the Content-Type request header
- Bug: `type::thing()` method allows creation of empty ident parts
- Bug: multiple `take()`'s for different fields on one response can fail
- Bug: Aggregate on Aggregate table results to "Cannot perform addition with '0' and 'NONE'" HOT 1
- Bug: Aggregate on Aggregate Table results to "Cannot perform division with '0' and '0'"
- Bug: math::median says it expects an array, whereas math::mean, sum, etc. work
- Feature: Bidirectional link records
- Bug: --tick-interval seems to be ignored
- Bug: Internal database error: ts is less than or equal to the latest ts
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from surrealdb.