oppiliappan/dijo

Installation fails on macOS

Closed this issue · 7 comments

I tried to install Dijo on macOS Catalina:

cargo install digo

but the installation failed with this error:

error[E0432]: unresolved import `notify::INotifyWatcher`
 --> /Users/ajeetdsouza/.cargo/registry/src/github.com-1ecc6299db9ec823/dijo-0.1.2/src/app/mod.rs:4:30
  |
4 | use notify::{DebouncedEvent, INotifyWatcher};
  |                              ^^^^^^^^^^^^^^ no `INotifyWatcher` in the root

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: failed to compile `dijo v0.1.2`, intermediate artifacts can be found at `/var/folders/m_/wc55txqn4t10gyk02w6vb8gw0000gn/T/cargo-installYnvmyM`

Caused by:
  could not compile `dijo`.

This looks really neat, but I'm running into the same problem as above. Looks like you can use RecommendedWatcher instead?

/// The recommended `Watcher` implementation for the current platform
#[cfg(target_os = "linux")]
pub type RecommendedWatcher = INotifyWatcher;
/// The recommended `Watcher` implementation for the current platform
#[cfg(target_os = "macos")]
pub type RecommendedWatcher = FsEventWatcher;
/// The recommended `Watcher` implementation for the current platform
#[cfg(target_os = "windows")]
pub type RecommendedWatcher = ReadDirectoryChangesWatcher;

I've got the same issue when running cargo install dijo.

   Compiling erased-serde v0.3.12
   Compiling typetag v0.1.5
   Compiling cursive_core v0.1.1
   Compiling cursive v0.15.0
   Compiling dijo v0.1.2
error[E0432]: unresolved import `notify::INotifyWatcher`
 --> /Users/clarkmccauley/.cargo/registry/src/github.com-1ecc6299db9ec823/dijo-0.1.2/src/app/mod.rs:4:30
  |
4 | use notify::{DebouncedEvent, INotifyWatcher};
  |                              ^^^^^^^^^^^^^^ no `INotifyWatcher` in the root

error: aborting due to previous error

@Youx 's PR to move to RecommendedWatcher should fix this, I will put up a release on crates.io soon.

Looking forward to this fix

v0.1.3 is now on crates.io!

Feel free to reopen this issue If you face any issues with:

  • installation on macOS
  • file watcher/inotify events

I try to install dijo on mac with

cargo install dijo

but got an error

Compiling dijo v0.2.1

error[E0425]: cannot find value `s` in this scope
  --> /Users/enkos/.cargo/registry/src/github.com-1ecc6299db9ec823/dijo-0.2.1/src/main.rs:82:9
   |
82 |         s.add_layer(layout);
   |         ^ not found in this scope

error[E0425]: cannot find value `s` in this scope
  --> /Users/enkos/.cargo/registry/src/github.com-1ecc6299db9ec823/dijo-0.2.1/src/main.rs:83:9
   |
83 |         s.add_global_callback(':', |s| open_command_window(s));
   |         ^ not found in this scope

error[E0425]: cannot find value `s` in this scope
  --> /Users/enkos/.cargo/registry/src/github.com-1ecc6299db9ec823/dijo-0.2.1/src/main.rs:85:9
   |
85 |         s.set_theme(theme::theme_gen());
   |         ^ not found in this scope

error[E0425]: cannot find value `s` in this scope
  --> /Users/enkos/.cargo/registry/src/github.com-1ecc6299db9ec823/dijo-0.2.1/src/main.rs:86:9
   |
86 |         s.run();
   |         ^ not found in this scope

error: aborting due to 4 previous errors

For more information about this error, try `rustc --explain E0425`.
error: failed to compile `dijo v0.2.1`, intermediate artifacts can be found at `/var/folders/24/j04_c9y50vg16dj3s0bq296h0000gn/T/cargo-installpXswwm`

Caused by:
  could not compile `dijo`.

@osadasami: has been reported at #49.