You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While experimenting with the recent additions from #876, the following issue appeared while using a Local<T> in either system of a ChainSystem. It appears that the Locals are never added when the systems are initialized.
use bevy::prelude::*;fnsystem(){}fnsystem_with_local(_:Local<u8>){}fnhandler(In(()):In<()>){}fnhandler_with_local(In(()):In<()>, _:Local<u8>){}fnmain(){App::build()// the follow are ok.add_system(system).add_system(system.chain(handler)).add_system(system_with_local)// the following panic with the message: "panicked at 'Resource does not exist u8'".add_system(system_with_local.chain(handler)).add_system(system.chain(handler_with_local)).add_system(system_with_local.chain(handler_with_local)).run();}
cargo run
What you expected to happen
The app to run silently then promptly exit.
What actually happened
When the systems run, the app panics with the message panicked at 'Resource does not exist u8'.
The text was updated successfully, but these errors were encountered:
Good catch. Looks like the true culprit here is this default impl:
I used rust-analyzer's "add missing items" completion to implement System, which doesn't populate default impls. Not quite sure why I added that default impl in the first place.
While experimenting with the recent additions from #876, the following issue appeared while using a
Local<T>
in either system of aChainSystem
. It appears that theLocal
s are never added when the systems are initialized.Bevy version
d6eb647
What you did
cargo run
What you expected to happen
The app to run silently then promptly exit.
What actually happened
When the systems run, the app panics with the message
panicked at 'Resource does not exist u8'
.The text was updated successfully, but these errors were encountered: