let-def / texpresso

TeXpresso: live rendering and error reporting for LaTeX
MIT License
408 stars 18 forks source link

texpresso-tonic build error in Rust 1.7.0. : No method named 'as_encoded_bytes' (src/bin/tectonic/v2cli.rs) #71

Open sambaPython24 opened 3 months ago

sambaPython24 commented 3 months ago

Build error on Rust 1.7.0. : No method named 'as_encoded_bytes'

I did not find, which Rust version you used to compile ``make texpresso-tonic```but on 1.7.0. I get the

   Compiling tectonic v0.15.0 (/.../texpresso/tectonic)
error[E0599]: no method named `as_encoded_bytes` found for reference `&OsStr` in the current scope
   --> src/bin/tectonic/v2cli.rs:515:61
    |
515 | ...                   let mut path = path.as_os_str().as_encoded_bytes();
    |                                                       ^^^^^^^^^^^^^^^^ method not found in `&OsStr`

For more information about this error, try `rustc --explain E0599`.
error: could not compile `tectonic` (bin "texpresso-tonic") due to previous error
make[1]: *** [Makefile.tectonic:11: tectonic] Error 101
make[1]: Leaving directory '/.../texpresso'
make: *** [Makefile:55: texpresso-tonic] Error 2

Which rust version do you use and is there an alternative for as_encoded_bytes?

let-def commented 3 months ago

I use rust 1.80. I don't really know how to solve your problem, rust is mainly a dependency and I would like to get rid of it, but I don't have time for that at the moment. The time package also broke recently, that can be fixed by running cargo update in ./tectonic folder.