When I run using "cargo run" assets are loaded correctly. But when I try to launch debugger with visual studio code it fails loading assets.
my configuration looks like this:
should "cwd" (program working directory) be changed to something else?
Oh and also had to change BoardPlugin build debug section to use registry instead to make it work.:
#[cfg(feature="debug")]{letmutregistry=app.world.get_resource_or_insert_with(InspectableRegistry::default);// registering custom component to be able to edit it in inspectorregistry.register::<Coordinates>();registry.register::<BombNeighbor>();registry.register::<Bomb>();registry.register::<Uncover>();}
I don't use VS Code so I don't know about the issues with the built in debugger.
About the registry, you are using the old way of registering the components
Are you using the latest version of bevy_inspector_egui ? It should be 0.8.x.
Accessing the inspectable registry is no longer required
hmm. set the version in cargo to version = "~0.8". checked to see that version 0.8.2 is being downloaded. still had the same issue. Got panic:
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', /home/tomas/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy-inspector-egui-0.8.2/src/lib.rs:375:14
also. it seems that order of adding world inspector plugin matters (somehow expecting it to be strictly declarative). If I register the plugin at the start like this:
I get no panic, but sadly I also do not get any world inspector plugin.
If I add the world inspector plugin just before the app run it ends up panicking.
When I run using "cargo run" assets are loaded correctly. But when I try to launch debugger with visual studio code it fails loading assets.
my configuration looks like this:
should "cwd" (program working directory) be changed to something else?
Oh and also had to change BoardPlugin build debug section to use registry instead to make it work.:
I don't use VS Code so I don't know about the issues with the built in debugger.
About the registry, you are using the old way of registering the components
Are you using the latest version of
bevy_inspector_egui? It should be0.8.x.Accessing the inspectable registry is no longer required
hmm. set the version in cargo to version = "~0.8". checked to see that version 0.8.2 is being downloaded. still had the same issue. Got panic:
bevy inspector egui panicked when unwrapping:
also. it seems that order of adding world inspector plugin matters (somehow expecting it to be strictly declarative). If I register the plugin at the start like this:
I get no panic, but sadly I also do not get any world inspector plugin.
If I add the world inspector plugin just before the app run it ends up panicking.
but anyways...
registry.register::<T>()work for me so I do not really care at this point :P. Thanks for your time!Had to add environment variable in launch json :
a clue found in : docs.rs/bevy_asset/0.6.0/bevy_asse...