cannot compile 0.6.0: error[E0432]: unresolved imports super::DatabaseEngine, super::Tree, error[E0728]: await is only allowed inside async functions and blocks #385

Closed
opened 2023-09-21 14:09:45 +00:00 by AlphaJack · 4 comments
AlphaJack commented 2023-09-21 14:09:45 +00:00 (Migrated from gitlab.com)

Description

I cannot compile 0.6.0 from source due to two errors:

   [...]
   Compiling rocksdb v0.21.0
   Compiling conduit v0.6.0 (/tmp/makepkg/conduit/src/conduit)
error[E0432]: unresolved imports `super::DatabaseEngine`, `super::Tree`
  --> src/database/abstraction/heed.rs:12:13
   |
12 | use super::{DatabaseEngine, Tree};
   |             ^^^^^^^^^^^^^^  ^^^^ no `Tree` in `database::abstraction`
   |             |
   |             no `DatabaseEngine` in `database::abstraction`

error[E0728]: `await` is only allowed inside `async` functions and blocks
  --> src/database/abstraction/heed.rs:81:49
   |
72 | /     fn iter_from_thread(
73 | |         &self,
74 | |         tree: Arc<heed::UntypedDatabase>,
75 | |         from: Vec<u8>,
...  |
81 | |         let lock = self.engine.iter_pool.lock().await;
   | |                                                 ^^^^^ only allowed inside `async` functions and blocks
...  |
92 | |         Box::new(r.into_iter())
93 | |     }
   | |_____- this is not `async`

Some errors have detailed explanations: E0432, E0728.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `conduit` (lib) due to 2 previous errors
### Description I cannot compile 0.6.0 from source due to two errors: ```plaintext [...] Compiling rocksdb v0.21.0 Compiling conduit v0.6.0 (/tmp/makepkg/conduit/src/conduit) error[E0432]: unresolved imports `super::DatabaseEngine`, `super::Tree` --> src/database/abstraction/heed.rs:12:13 | 12 | use super::{DatabaseEngine, Tree}; | ^^^^^^^^^^^^^^ ^^^^ no `Tree` in `database::abstraction` | | | no `DatabaseEngine` in `database::abstraction` error[E0728]: `await` is only allowed inside `async` functions and blocks --> src/database/abstraction/heed.rs:81:49 | 72 | / fn iter_from_thread( 73 | | &self, 74 | | tree: Arc<heed::UntypedDatabase>, 75 | | from: Vec<u8>, ... | 81 | | let lock = self.engine.iter_pool.lock().await; | | ^^^^^ only allowed inside `async` functions and blocks ... | 92 | | Box::new(r.into_iter()) 93 | | } | |_____- this is not `async` Some errors have detailed explanations: E0432, E0728. For more information about an error, try `rustc --explain E0432`. error: could not compile `conduit` (lib) due to 2 previous errors ```
Aranjedeath commented 2023-09-21 14:36:30 +00:00 (Migrated from gitlab.com)

Hi! Can you provide more information about your computer(OS), build environment, etc? Have you run cargo clean recently?

Hi! Can you provide more information about your computer(OS), build environment, etc? Have you run cargo clean recently?
julianuu commented 2023-09-28 19:31:52 +00:00 (Migrated from gitlab.com)

I get the same errors trying to build under arch using the AUR recipe.

I get the same errors trying to build under arch using the [AUR recipe](https://aur.archlinux.org/packages/conduit).
cybertailor commented 2023-11-21 10:14:10 +00:00 (Migrated from gitlab.com)

Seems like heed support is borken in v0.6.0

build.log

Seems like `heed` support is borken in v0.6.0 [build.log](/uploads/eb03dfe51fe7c11714e88a93d7d724e9/build.log)
CobaltCause commented 2024-01-24 23:52:32 +00:00 (Migrated from gitlab.com)

This was fixed in https://gitlab.com/famedly/conduit/-/merge_requests/564 by disabling the heed backend features.

This was fixed in https://gitlab.com/famedly/conduit/-/merge_requests/564 by disabling the heed backend features.
Sign in to join this conversation.
No labels
Android
CS::needs customer feedback
CS::needs follow up
CS::needs on prem installation
CS::waiting
Chrome
Design:: Ready
Design:: in progress
Design::UX
E2EE
Edge
Firefox
GDPR
Iteration 13 IM
Linux
MacOS
Need::Discussion
Need::Steps to reproduce
Need::Upstream fix
Needs:: Planning
Needs::Dev-Team
Needs::More information
Needs::Priority
Needs::Product
Needs::Refinement
Needs::Severity
Priority::1-Critical
Priority::2-Max
Priority::3-Impending
Priority::4-High
Priority::5-Medium
Priority::6-Low
Priority::7-None
Progress::Backlog
Progress::Review
Progress::Started
Progress::Testing
Progress::Triage
Progress::Waiting
Reporter::Sentry
Safari
Target::Community
Target::Customer
Target::Internal
Target::PoC
Target::Security
Team:Customer-Success
Team:Design
Team:Infrastructure
Team:Instant-Messaging
Team:Product
Team:Workflows
Type::Bug
Type::Design
Type::Documentation
Type::Feature
Type::Improvement
Type::Support
Type::Tests
Windows
blocked
blocked-by-spec
cla-signed
conduit
contribution::advanced
contribution::easy
contribution::help needed
from::review
iOS
p::ti-tenant
performance
product::triage
proposal
refactor
release-blocker
s: dart_openapi_codegen
s::Famedly-Patient
s::Org-Directory
s::Passport-Generator
s::Requeuest
s:CRM
s:Famedly-App
s:Famedly-Web
s:Fhiroxide
s:Fhiroxide-cli
s:Fhiroxide-client
s:Fhirs
s:Hedwig
s:LISA
s:Matrix-Dart-SDK
s:Role-Manager
s:Synapse
s:User-Directory
s:WFS-Matrix
s:Workflow Engine
s:dtls
s:famedly-error
s:fcm-shared-isolate
s:matrix-api-lite
s:multiple-tab-detector
s:native-imaging
severity::1
severity::2
severity::3
severity::4
technical-debt
voip
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: Matthias/conduit#385
No description provided.