bug: cargo install hedu does not compile (v0.1.1) #5

Closed
opened 2024-05-23 14:28:01 +02:00 by PlexSheep · 1 comment
Owner
No description provided.
PlexSheep added the
Kind/Bug
Reviewed
Confirmed
Priority
Critical
labels 2024-05-23 14:28:09 +02:00
Author
Owner
error[E0599]: no function or associated item named `init` found for struct `libpt::libpt_log::Logger` in the current scope
   --> /home/plex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hedu-0.1.1/src/main.rs:133:17
    |
133 |         Logger::init(None, Some(ll), false).expect("could not initialize Logger");
    |                 ^^^^ function or associated item not found in `Logger`
    |
note: if you're trying to build a new `libpt::libpt_log::Logger` consider using one of the following associated functions:
      libpt::libpt_log::Logger::build
      libpt::libpt_log::Logger::build_mini
      libpt::libpt_log::Logger::build_customized
   --> /home/plex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libpt-log-0.3.12/src/lib.rs:53:5
    |
53  |       pub fn build(log_dir: Option<PathBuf>, max_level: Option<Level>, uptime: bool) -> Result<Self> {
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
77  |       pub fn build_mini(max_level: Option<Level>) -> Result<Self> {
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
100 | /     pub fn build_customized(
101 | |         log_to_file: bool,
102 | |         log_dir: PathBuf,
103 | |         ansi: bool,
...   |
113 | |         uptime: bool, // uptime instead of system time
114 | |     ) -> Result<Self> {
    | |_____________________^

error[E0599]: no function or associated item named `init_mini` found for struct `libpt::libpt_log::Logger` in the current scope
   --> /home/plex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hedu-0.1.1/src/main.rs:136:17
    |
136 |         Logger::init_mini(Some(ll)).expect("could not initialize Logger");
    |                 ^^^^^^^^^ function or associated item not found in `Logger`
    |
note: if you're trying to build a new `libpt::libpt_log::Logger` consider using one of the following associated functions:
      libpt::libpt_log::Logger::build
      libpt::libpt_log::Logger::build_mini
      libpt::libpt_log::Logger::build_customized
   --> /home/plex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libpt-log-0.3.12/src/lib.rs:53:5
    |
53  |       pub fn build(log_dir: Option<PathBuf>, max_level: Option<Level>, uptime: bool) -> Result<Self> {
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
77  |       pub fn build_mini(max_level: Option<Level>) -> Result<Self> {
    |       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
100 | /     pub fn build_customized(
101 | |         log_to_file: bool,
102 | |         log_dir: PathBuf,
103 | |         ansi: bool,
...   |
113 | |         uptime: bool, // uptime instead of system time
114 | |     ) -> Result<Self> {
    | |_____________________^

For more information about this error, try `rustc --explain E0599`.
error: could not compile `hedu` (bin "hedu") due to 2 previous errors
error: failed to compile `hedu v0.1.1`, intermediate artifacts can be found at `/tmp/cargo-installCRW799`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
``` error[E0599]: no function or associated item named `init` found for struct `libpt::libpt_log::Logger` in the current scope --> /home/plex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hedu-0.1.1/src/main.rs:133:17 | 133 | Logger::init(None, Some(ll), false).expect("could not initialize Logger"); | ^^^^ function or associated item not found in `Logger` | note: if you're trying to build a new `libpt::libpt_log::Logger` consider using one of the following associated functions: libpt::libpt_log::Logger::build libpt::libpt_log::Logger::build_mini libpt::libpt_log::Logger::build_customized --> /home/plex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libpt-log-0.3.12/src/lib.rs:53:5 | 53 | pub fn build(log_dir: Option<PathBuf>, max_level: Option<Level>, uptime: bool) -> Result<Self> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 77 | pub fn build_mini(max_level: Option<Level>) -> Result<Self> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 100 | / pub fn build_customized( 101 | | log_to_file: bool, 102 | | log_dir: PathBuf, 103 | | ansi: bool, ... | 113 | | uptime: bool, // uptime instead of system time 114 | | ) -> Result<Self> { | |_____________________^ error[E0599]: no function or associated item named `init_mini` found for struct `libpt::libpt_log::Logger` in the current scope --> /home/plex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/hedu-0.1.1/src/main.rs:136:17 | 136 | Logger::init_mini(Some(ll)).expect("could not initialize Logger"); | ^^^^^^^^^ function or associated item not found in `Logger` | note: if you're trying to build a new `libpt::libpt_log::Logger` consider using one of the following associated functions: libpt::libpt_log::Logger::build libpt::libpt_log::Logger::build_mini libpt::libpt_log::Logger::build_customized --> /home/plex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/libpt-log-0.3.12/src/lib.rs:53:5 | 53 | pub fn build(log_dir: Option<PathBuf>, max_level: Option<Level>, uptime: bool) -> Result<Self> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 77 | pub fn build_mini(max_level: Option<Level>) -> Result<Self> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... 100 | / pub fn build_customized( 101 | | log_to_file: bool, 102 | | log_dir: PathBuf, 103 | | ansi: bool, ... | 113 | | uptime: bool, // uptime instead of system time 114 | | ) -> Result<Self> { | |_____________________^ For more information about this error, try `rustc --explain E0599`. error: could not compile `hedu` (bin "hedu") due to 2 previous errors error: failed to compile `hedu v0.1.1`, intermediate artifacts can be found at `/tmp/cargo-installCRW799`. To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path. ```
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
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: PlexSheep/hedu#5
No description provided.