Skip to content

Hot reloading on Windows is broken. #18342

Closed
@andriyDev

Description

@andriyDev

Bevy version

[Optional] Relevant system information

  • Windows 10

What you did

Ran cargo run --example hot_asset_reloading --features file_watcher. Modify the models/torus/torus.gltf to trigger hot reloading.

What went wrong

Panics:

thread 'notify-rs debouncer loop' panicked at crates\bevy_asset\src\io\file\file_watcher.rs:56:9:
FileWatcher::get_asset_path() failed to strip prefix from absolute path: absolute_path=\\?\E:\Content\bevy\assets\models\torus\torus.glb, root=E:\Content\bevy\assets

Additional information

This appears to be a regression after #18023. Digging in a little, the path before the canonicalize is correct, but after the canonicalize, it gets mangled to include a prefix of "\?".

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-BugAn unexpected or incorrect behaviorS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions