citybound/citybound

FsEventWatcher not found in 'notify'

bisraelsen opened this issue · 1 comments

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`.                                                                      

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.