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

FsEventWatcher not found in 'notify' #382

Open
bisraelsen opened this issue Mar 5, 2021 · 1 comment
Open

FsEventWatcher not found in 'notify' #382

bisraelsen opened this issue Mar 5, 2021 · 1 comment

Comments

@bisraelsen
Copy link

Following instructions from contributing.md. Using npm run ensure-tooling says that everything is okay, but I'm getting the following error:

info: This is the version for the rustup toolchain manager, not the rustc compiler.
info: The currently active `rustc` version is `rustc 1.43.0-nightly (3dbade652 2020-03-09)`
   Compiling cb_util v0.3.0 (/home/brett/research/ASIS/citybound/cb_util)
error[E0412]: cannot find type `FsEventWatcher` in crate `notify`
  --> cb_util/src/config_manager/mod.rs:74:22
   |                                                                                                     
74 |     watcher: notify::FsEventWatcher,
   |                      ^^^^^^^^^^^^^^ not found in `notify`
                                                    
warning: unnecessary parentheses around type
  --> cb_util/src/config_manager/kay_auto.rs:10:61                                                       
   |                                                                                                     
10 |     _raw_id: RawID, _marker: ::std::marker::PhantomData<Box<(C)>>
   |                                                             ^^^ help: remove these parentheses
   |
   = note: `#[warn(unused_parens)]` on by default
                                                    
warning: unnecessary parentheses around type
  --> cb_util/src/config_manager/kay_auto.rs:32:89                                                       
   |                                                                                                     
32 | pub struct ConfigUserRepresentative<C: Config>{ _marker: ::std::marker::PhantomData<Box<(C)>> }
   |                                                                                         ^^^ help: re
move these parentheses                              
                                                                                                         
warning: unnecessary parentheses around type
   --> cb_util/src/config_manager/kay_auto.rs:114:61                   
    |                                                                                                    
114 |     _raw_id: RawID, _marker: ::std::marker::PhantomData<Box<(C)>>
    |                                                             ^^^ help: remove these parentheses
                                                                                                         
warning: unnecessary parentheses around type
   --> cb_util/src/config_manager/kay_auto.rs:192:61                    
    |                                                                                                    
192 |     _raw_id: RawID, _marker: ::std::marker::PhantomData<Box<(CD)>>
    |                                                             ^^^^ help: remove these parentheses    
                                                    
warning: use of deprecated item 'uuid::Uuid::from_random_bytes': please use the `uuid::Builder` instead t
o set the variant and version
  --> cb_util/src/random.rs:43:5                                                                         
   |                                                
43 |     Uuid::from_random_bytes(thread_rng().gen()) 
   |     ^^^^^^^^^^^^^^^^^^^^^^^              
   |
   = note: `#[warn(deprecated)]` on by default

error: aborting due to previous error                                                                    
                                                    
For more information about this error, try `rustc --explain E0412`.
error: could not compile `cb_util`.                                                                      

@gcrois
Copy link

gcrois commented May 21, 2021

I ran into the same issue and was able to build by replacing notify::FsEventWatcher with notify::RecommendedWatcher on line 74 in cb_util/src/config_manager/mod.rs.

I think FsEventWatcher is an artifact from an older version of notify from some minimal documentation searching.

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