dynamic_types.rs example panics when run due to failed assert
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
Research direction
Start with examples/reflection/dynamic_types.rs at the assert linked in the issue, then find the TypedReflectDeserializer doc test. Run the example and relevant doc test to reproduce the panic; done means both match the implemented logic and pass without asserting the now-working pattern is None.
Written by the indexing model from the issue text.
Description
Originally noticed by @ChristopherBiscardi in https://github.com/bevyengine/bevy/pull/24748#discussion_r3570195791_
The assert in question: https://github.com/bevyengine/bevy/blob/6d4f6979cf018ab84c7f630b7192577c62afdda5/examples/reflection/dynamic_types.rs#L103
This is actually a regression from #21137 by @SkiFire13 (<3), not the fault of #24748 and is broken on main: the pattern documented as broken in that example now works, and so asserting that it's none is incorrect!
Solution
We should update this example, and the doc test for TypedReflectDeserializer, to match the actual implemented logic.
- Dominant language
- Rust
- Stars
- 48.3k
- Forks
- 4.9k
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 172
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bevyengine/bevy
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
C-Docs D-Straightforward
Difficulty 1/5 Under an hour Newbie friendliness 78/100
bevyengine/bevy#25850 ·
-
A-Dev-Tools C-Bug D-Modest
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
bevyengine/bevy#25849 ·
-
A-Assets A-Text C-Feature D-Modest S-Needs-Design
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
bevyengine/bevy#25842 · 2 comments ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
bevyengine/bevy#25788 ·
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100