Skip to content

Bevy version mismatch #4

@acvogel

Description

@acvogel

The blog post lists the Cargo.toml Bevy dependency as "0.4", but the repository version is "0.5". Folks trying to compile with "0.4" will get the following error, which I'm including for future searchers:

   Compiling bevy_input v0.4.0
error[E0599]: no function or associated item named `new_immediate` found for trait object `dyn Watcher` in the current scope
  --> /home/mbusux/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_asset-0.4.0/src/filesystem_watcher.rs:14:52
   |
14 |         let watcher: RecommendedWatcher = Watcher::new_immediate(move |res| {
   |                                                    ^^^^^^^^^^^^^ function or associated item not found in `dyn Watcher`

error[E0308]: mismatched types
  --> /home/mbusux/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_asset-0.4.0/src/filesystem_watcher.rs:24:28
   |
23 |     pub fn watch<P: AsRef<Path>>(&mut self, path: P) -> Result<()> {
   |                  - this type parameter
24 |         self.watcher.watch(path, RecursiveMode::Recursive)
   |                            ^^^^ expected `&Path`, found type parameter `P`
   |
   = note:   expected reference `&Path`
           found type parameter `P`

Some errors have detailed explanations: E0308, E0599.
For more information about an error, try `rustc --explain E0308`.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions