msiemens / one2html

Convert OneNote files to HTML
MIT License
35 stars 7 forks source link

Doesn't compile on MacOS #16

Open svollbehr opened 1 month ago

svollbehr commented 1 month ago
image
Julian-1-2-3-4-5 commented 2 weeks ago

i have the exact same issue on archlinux

Updating crates.io index
  Installing one2html v1.1.1
    Updating crates.io index
     Locking 132 packages to latest compatible versions
      Adding addr2line v0.15.2 (latest: v0.24.1)
      Adding aho-corasick v0.7.15 (latest: v1.1.3)
      Adding approx v0.3.2 (latest: v0.5.1)
      Adding arrayvec v0.5.2 (latest: v0.7.6)
      Adding askama v0.10.5 (latest: v0.12.1)
      Adding askama_derive v0.10.5 (latest: v0.12.5)
      Adding askama_shared v0.11.2 (latest: v0.12.2)
      Adding backtrace v0.3.59 (latest: v0.3.73)
      Adding bitflags v1.3.2 (latest: v2.6.0)
      Adding bitvec v0.19.6 (latest: v1.0.1)
      Adding bytes v0.5.6 (latest: v1.7.1)
      Adding clap v2.34.0 (latest: v4.5.16)
      Adding color-eyre v0.5.11 (latest: v0.6.3)
      Adding color-spantrace v0.1.6 (latest: v0.2.1)
      Adding console v0.14.1 (latest: v0.15.8)
      Adding encode_unicode v0.3.6 (latest: v1.0.0)
      Adding enum-primitive-derive v0.2.2 (latest: v0.3.0)
      Adding funty v1.1.0 (latest: v2.0.0)
      Adding getrandom v0.1.16 (latest: v0.2.15)
      Adding gimli v0.24.0 (latest: v0.31.0)
      Adding heck v0.3.3 (latest: v0.5.0)
      Adding hermit-abi v0.1.19 (latest: v0.4.0)
      Adding humansize v1.1.1 (latest: v2.1.3)
      Adding indicatif v0.16.2 (latest: v0.17.8)
      Adding itertools v0.9.0 (latest: v0.13.0)
      Adding lexical-core v0.7.6 (latest: v0.8.5)
      Adding memchr v2.3.4 (latest: v2.7.4)
      Adding miniz_oxide v0.4.4 (latest: v0.8.0)
      Adding nom v6.2.2 (latest: v7.1.3)
      Adding object v0.24.0 (latest: v0.36.3)
      Adding owo-colors v1.3.0 (latest: v4.0.0)
      Adding palette v0.5.0 (latest: v0.7.6)
      Adding palette_derive v0.5.0 (latest: v0.7.6)
      Adding phf v0.8.0 (latest: v0.11.2)
      Adding phf_codegen v0.8.0 (latest: v0.11.2)
      Adding phf_generator v0.8.0 (latest: v0.11.2)
      Adding phf_shared v0.8.0 (latest: v0.11.2)
      Adding radium v0.5.3 (latest: v1.1.0)
      Adding rand v0.7.3 (latest: v0.8.5)
      Adding rand_chacha v0.2.2 (latest: v0.3.1)
      Adding rand_core v0.5.1 (latest: v0.6.4)
      Adding rand_hc v0.2.0 (latest: v0.3.2)
      Adding rand_pcg v0.2.1 (latest: v0.3.1)
      Adding regex v1.4.6 (latest: v1.10.6)
      Adding regex-syntax v0.6.29 (latest: v0.8.4)
      Adding sanitize-filename v0.3.0 (latest: v0.5.0)
      Adding siphasher v0.3.11 (latest: v1.0.1)
      Adding strsim v0.8.0 (latest: v0.11.1)
      Adding syn v1.0.109 (latest: v2.0.76)
      Adding terminal_size v0.1.17 (latest: v0.3.0)
      Adding textwrap v0.11.0 (latest: v0.16.1)
      Adding toml v0.5.11 (latest: v0.8.19)
      Adding tracing-error v0.1.2 (latest: v0.2.0)
      Adding tracing-subscriber v0.2.25 (latest: v0.3.18)
      Adding uuid v0.8.2 (latest: v1.10.0)
      Adding wasi v0.9.0+wasi-snapshot-preview1 (latest: v0.13.2+wasi-0.2.1)
      Adding widestring v0.4.3 (latest: v1.1.0)
      Adding windows-sys v0.52.0 (latest: v0.59.0)
      Adding wyz v0.2.0 (latest: v0.6.1)
   Compiling proc-macro2 v1.0.86
   Compiling unicode-ident v1.0.12
   Compiling version_check v0.9.5
   Compiling libc v0.2.158
   Compiling autocfg v1.3.0
   Compiling syn v1.0.109
   Compiling memchr v2.3.4
   Compiling cfg-if v1.0.0
   Compiling lazy_static v1.5.0
   Compiling radium v0.5.3
   Compiling getrandom v0.1.16
   Compiling lexical-core v0.7.6
   Compiling serde v1.0.209
   Compiling byteorder v1.5.0
   Compiling once_cell v1.19.0
   Compiling num-traits v0.2.19
   Compiling nom v6.2.2
   Compiling unicode-width v0.1.13
   Compiling unicase v2.7.0
   Compiling bitflags v1.3.2
   Compiling proc-macro-error-attr v1.0.4
   Compiling siphasher v0.3.11
   Compiling quote v1.0.37
   Compiling phf_shared v0.8.0
   Compiling syn v2.0.76
   Compiling tracing-core v0.1.32
   Compiling proc-macro-error v1.0.4
   Compiling rand_core v0.5.1
   Compiling ryu v1.0.18
   Compiling arrayvec v0.5.2
   Compiling rand_pcg v0.2.1
   Compiling funty v1.1.0
   Compiling wyz v0.2.0
   Compiling shlex v1.3.0
   Compiling static_assertions v1.1.0
   Compiling tap v1.0.1
   Compiling cc v1.1.15
   Compiling bitvec v0.19.6
   Compiling aho-corasick v0.7.15
   Compiling thread_local v1.1.8
   Compiling miniz_oxide v0.4.4
   Compiling sharded-slab v0.1.7
   Compiling pin-project-lite v0.2.14
   Compiling regex-syntax v0.6.29
   Compiling portable-atomic v1.7.0
   Compiling unicode-segmentation v1.11.0
   Compiling heck v0.3.3
   Compiling regex v1.4.6
   Compiling tracing-subscriber v0.2.25
   Compiling backtrace v0.3.59
   Compiling console v0.15.8
   Compiling atty v0.2.14
   Compiling textwrap v0.11.0
   Compiling zerocopy-derive v0.7.35
   Compiling serde_derive v1.0.209
   Compiling tracing-attributes v0.1.27
   Compiling thiserror v1.0.63
   Compiling ansi_term v0.12.1
   Compiling zerocopy v0.7.35
   Compiling number_prefix v0.4.0
   Compiling percent-encoding v2.3.1
   Compiling gimli v0.24.0
   Compiling eyre v0.6.12
   Compiling humansize v1.1.1
   Compiling strsim v0.8.0
   Compiling ppv-lite86 v0.2.20
   Compiling rand_chacha v0.2.2
   Compiling rand v0.7.3
   Compiling tracing v0.1.40
   Compiling paste v1.0.15
   Compiling askama_escape v0.10.3
   Compiling adler v1.0.2
   Compiling vec_map v0.8.2
   Compiling phf_generator v0.8.0
   Compiling clap v2.34.0
   Compiling phf_codegen v0.8.0
   Compiling palette v0.5.0
   Compiling addr2line v0.15.2
   Compiling tracing-error v0.1.2
   Compiling thiserror-impl v1.0.63
   Compiling structopt-derive v0.4.18
   Compiling mime_guess v2.0.5
   Compiling object v0.24.0
   Compiling owo-colors v1.3.0
   Compiling toml v0.5.11
   Compiling rustc-demangle v0.1.24
   Compiling either v1.13.0
   Compiling indenter v0.3.3
   Compiling askama_shared v0.11.2
   Compiling itertools v0.9.0
   Compiling color-spantrace v0.1.6
   Compiling indicatif v0.17.8
   Compiling structopt v0.3.26
   Compiling askama_derive v0.10.5
   Compiling phf v0.8.0
   Compiling enum-primitive-derive v0.2.2
   Compiling palette_derive v0.5.0
   Compiling approx v0.3.2
   Compiling terminal_size v0.1.17
   Compiling encoding_rs v0.8.34
   Compiling widestring v0.4.3
   Compiling bytes v0.5.6
   Compiling log v0.4.22
   Compiling mime v0.3.17
   Compiling uuid v0.8.2
   Compiling onenote_parser v0.3.1
   Compiling happylog v0.2.0
   Compiling console v0.14.1
   Compiling askama v0.10.5
   Compiling color-eyre v0.5.11
   Compiling indicatif v0.16.2
   Compiling sanitize-filename v0.3.0
   Compiling one2html v1.1.1
error[E0308]: mismatched types
  --> /home/julian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/one2html-1.1.1/src/utils.rs:12:41
   |
12 |     let _state = happylog::set_progress(&bar);
   |                  ---------------------- ^^^^ expected `indicatif::progress_bar::ProgressBar`, found `ProgressBar`
   |                  |
   |                  arguments to this function are incorrect
   |
   = note: `ProgressBar` and `indicatif::progress_bar::ProgressBar` have similar names, but are actually distinct types
note: `ProgressBar` is defined in crate `indicatif`
  --> /home/julian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indicatif-0.16.2/src/progress_bar.rs:23:1
   |
23 | pub struct ProgressBar {
   | ^^^^^^^^^^^^^^^^^^^^^^
note: `indicatif::progress_bar::ProgressBar` is defined in crate `indicatif`
  --> /home/julian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/indicatif-0.17.8/src/progress_bar.rs:25:1
   |
25 | pub struct ProgressBar {
   | ^^^^^^^^^^^^^^^^^^^^^^
   = note: perhaps two different versions of crate `indicatif` are being used?
note: function defined here
  --> /home/julian/.cargo/registry/src/index.crates.io-6f17d22bba15001f/happylog-0.2.0/src/console_emitter.rs:93:8
   |
93 | pub fn set_progress(pb: &ProgressBar) -> LogPBState {
   |        ^^^^^^^^^^^^

For more information about this error, try `rustc --explain E0308`.
error: could not compile `one2html` (bin "one2html") due to 1 previous error
error: failed to compile `one2html v1.1.1`, intermediate artifacts can be found at `/tmp/cargo-installkC4Fep`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.