emabee / flexi_logger

A flexible logger for rust programs that can write to stderr, stdout, and/or to log files
Apache License 2.0
307 stars 50 forks source link

0.19.0 fail to compile #89

Closed dallenng closed 3 years ago

dallenng commented 3 years ago

0.19.0 fail to compile due to the "ERROR_INFO.rs" file named in capital case among other things.

Tested on Linux.

Build output (truncated, there are other errors)

error[E0583]: file not found for module `error_info`
  --> flexi_logger-0.19.0/src/lib.rs:64:1
   |
64 | pub mod error_info;
   | ^^^^^^^^^^^^^^^^^^^
   |

error[E0433]: failed to resolve: use of undeclared type `ERRCODE`
   --> flexi_logger-0.19.0/src/writers/file_log_writer/state.rs:664:28
    |
664 |                 eprint_err(ERRCODE::Symlink, "cannot delete symlink to log file", e);
    |                            ^^^^^^^ use of undeclared type `ERRCODE`
emabee commented 3 years ago

Windows tricked me here, I guess. Should be fixed now with version 0.19.1.

dallenng commented 3 years ago

Still 2 errors :)

error[E0433]: failed to resolve: use of undeclared type `ERRCODE`
   --> flexi_logger-0.19.1/src/writers/file_log_writer/state.rs:664:28
    |
664 |                 eprint_err(ERRCODE::Symlink, "cannot delete symlink to log file", e);
    |                            ^^^^^^^ use of undeclared type `ERRCODE`

error[E0433]: failed to resolve: use of undeclared type `ERRCODE`
   --> flexi_logger-0.19.1/src/writers/file_log_writer/state.rs:670:24
    |
670 |             eprint_err(ERRCODE::Symlink, "cannot create symlink to logfile", e);
    |                        ^^^^^^^ use of undeclared type `ERRCODE`

error[E0425]: cannot find function `eprint_err` in this scope
   --> flexi_logger-0.19.1/src/writers/file_log_writer/state.rs:664:17
    |
664 |                 eprint_err(ERRCODE::Symlink, "cannot delete symlink to log file", e);
    |                 ^^^^^^^^^^ not found in this scope
    |
help: consider importing this function
    |
653 |     use crate::writers::file_log_writer::state::eprint_err;
    |

error[E0425]: cannot find function `eprint_err` in this scope
   --> flexi_logger-0.19.1/src/writers/file_log_writer/state.rs:670:13
    |
670 |             eprint_err(ERRCODE::Symlink, "cannot create symlink to logfile", e);
    |             ^^^^^^^^^^ not found in this scope
    |
help: consider importing this function
    |
653 |     use crate::writers::file_log_writer::state::eprint_err;
    |
emabee commented 3 years ago

Oh gosh, I need to revive my cross builds :-( Sorry for that. 0.19.2 is on its way.

HEnquist commented 3 years ago

Github actions can help here! If you want I can set something up and submit a PR.

emabee commented 3 years ago

Would be great! I used travis, but this is broken since some months.

dallenng commented 3 years ago

Seems to be fixed with 0.19.3, you can close if you want or let it open a few days for visibility.

emabee commented 3 years ago

Thanks a lot for your support! The new github actions based CI will hopefully help to prevent such disasters.