TBS1996 / speki

flashcard app in your terminal
GNU General Public License v2.0
496 stars 18 forks source link

Ubuntu 24.04 Compile Error #22

Open periplume opened 2 months ago

periplume commented 2 months ago
os: ubuntu 24.04.1
# cargo install speki

produces these errors:

error[E0432]: unresolved import `sentry_types::protocol::v7::Profile`
 --> /home/jason/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sentry-core-0.31.5/src/profiling.rs:8:5
  |
8 | use sentry_types::protocol::v7::Profile;
  |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Profile` in `protocol::v7`

error[E0432]: unresolved imports `sentry_types::protocol::v7::DeviceMetadata`, `sentry_types::protocol::v7::OSMetadata`, `sentry_types::protocol::v7::RuntimeMetadata`, `sentry_types::protocol::v7::RustFrame`, `sentry_types::protocol::v7::Sample`, `sentry_types::protocol::v7::SampleProfile`, `sentry_types::protocol::v7::ThreadMetadata`, `sentry_types::protocol::v7::TransactionMetadata`, `sentry_types::protocol::v7::Version`
  --> /home/jason/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sentry-core-0.31.5/src/profiling.rs:10:28
   |
10 |     DebugImage, DebugMeta, DeviceMetadata, OSMetadata, RuntimeMetadata, RustFrame, Sample,
   |                            ^^^^^^^^^^^^^^  ^^^^^^^^^^  ^^^^^^^^^^^^^^^  ^^^^^^^^^  ^^^^^^ no `Sample` in `protocol::v7`
   |                            |               |           |                |
   |                            |               |           |                no `RustFrame` in `protocol::v7`
   |                            |               |           no `RuntimeMetadata` in `protocol::v7`
   |                            |               no `OSMetadata` in `protocol::v7`
   |                            no `DeviceMetadata` in `protocol::v7`
11 |     SampleProfile, SymbolicDebugImage, ThreadMetadata, TraceId, Transaction, TransactionMetada...
   |     ^^^^^^^^^^^^^                      ^^^^^^^^^^^^^^                        ^^^^^^^^^^^^^^^^^^^ no `TransactionMetadata` in `protocol::v7`
   |     |                                  |
   |     |                                  no `ThreadMetadata` in `protocol::v7`
   |     no `SampleProfile` in `protocol::v7`
12 |     Version,
   |     ^^^^^^^ no `Version` in `protocol::v7`
   |
   = help: consider importing one of these items instead:
           rustc_version_runtime::Version
           uuid::Version

error[E0560]: struct `sentry_types::protocol::v7::Transaction<'_>` has no field named `active_thread_id`
   --> /home/jason/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sentry-core-0.31.5/src/performance.rs:441:21
    |
441 |                     active_thread_id: Some(
    |                     ^^^^^^^^^^^^^^^^ `sentry_types::protocol::v7::Transaction<'_>` does not have this field
    |
    = note: available fields are: `event_id`, `release`, `environment`, `user`, `tags` ... and 8 others

error[E0609]: no field `active_thread_id` on type `&sentry_types::protocol::v7::Transaction<'_>`
   --> /home/jason/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sentry-core-0.31.5/src/profiling.rs:252:43
    |
252 |             active_thread_id: transaction.active_thread_id.unwrap_or(0),
    |                                           ^^^^^^^^^^^^^^^^ unknown field
    |
    = note: available fields are: `event_id`, `name`, `release`, `environment`, `user` ... and 9 others

Some errors have detailed explanations: E0432, E0560, E0609.
For more information about an error, try `rustc --explain E0432`.
error: could not compile `sentry-core` (lib) due to 4 previous errors
warning: build failed, waiting for other jobs to finish...
error: failed to compile `speki v0.4.8`, intermediate artifacts can be found at `/tmp/cargo-installNfKIYd`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
$ uname -a
Linux delphi 6.8.0-41-generic #41-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug  2 20:41:06 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 24.04.1 LTS
Release:    24.04
Codename:   noble

project looks nice

colinstu12 commented 1 month ago

Same exact hangup in Debian Trixie I'm encountering right now too.