Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile with notify 5.0.0-pre.11 #51

Closed
hobofan opened this issue Jul 25, 2021 · 1 comment
Closed

Can't compile with notify 5.0.0-pre.11 #51

hobofan opened this issue Jul 25, 2021 · 1 comment

Comments

@hobofan
Copy link

hobofan commented Jul 25, 2021

Trying to install as per the readme (cargo install bacon) fails with:

error[E0599]: no function or associated item named `new_immediate` found for trait object `dyn Watcher` in the current scope
  --> /Users/max/.cargo/registry/src/github.com-1ecc6299db9ec823/bacon-1.1.7/src/app.rs:16:52
   |
16 |     let mut watcher: RecommendedWatcher = Watcher::new_immediate(move |res| match res {
   |                                                    ^^^^^^^^^^^^^ function or associated item not found in `dyn Watcher`

This is due to the newly released version 5.0.0-pre.11 of the notify crate which removed the new_immediate constructor.


Workaround for anyone who wants to install bacon right now:

  • clone the repository
  • install with cargo install --path . --locked (as that respects the Cargo.lock of the repository)
@Canop
Copy link
Owner

Canop commented Jul 30, 2021

Sorry, coming back from holidays. Will look at this tomorrow.

Canop added a commit that referenced this issue Jul 31, 2021
Also upgrade the notify crate
Fix ##51
@Canop Canop closed this as completed Aug 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants