ItsEthra / typst-live

Hot reloading for your typst files
MIT License
82 stars 8 forks source link

Compilation error on macOS 13 (intel cpu) #1

Closed beeb closed 1 year ago

beeb commented 1 year ago

I see the following error when running cargo install typst-live:

error[E0432]: unresolved import `notify::INotifyWatcher`
 --> /Users/valentin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typst-live-0.2.0/src/watcher.rs:3:32
  |
3 | use notify::{Event, EventKind, INotifyWatcher, RecursiveMode, Watcher};
  |                                ^^^^^^^^^^^^^^ no `INotifyWatcher` in the root

error[E0282]: type annotations needed
  --> /Users/valentin/.cargo/registry/src/index.crates.io-6f17d22bba15001f/typst-live-0.2.0/src/watcher.rs:50:5
   |
50 |     Ok(watcher)
   |     ^^ cannot infer type of the type parameter `E` declared on the enum `Result`
   |
help: consider specifying the generic arguments
   |
50 |     Ok::<FsEventWatcher, E>(watcher)
   |       +++++++++++++++++++++

Some errors have detailed explanations: E0282, E0432.
For more information about an error, try `rustc --explain E0282`.
error: could not compile `typst-live` due to 2 previous errors
error: failed to compile `typst-live v0.2.0`, intermediate artifacts can be found at `/var/folders/8_/wzzr3w4x4p7b6pybynnrqldm0000gn/T/cargo-installg6eCgQ`
ItsEthra commented 1 year ago

Thanks, should work now with 0.2.1, couldn't test on MacOS myself.

beeb commented 1 year ago

Cool thanks I managed to install. got another issue I'll open one