bevy/crates
Mike d6aba58610 add position to scene errors (#8065)
# Objective

- Fixes https://github.com/bevyengine/bevy/issues/6760
- adds line and position on line info to scene errors

```text
Before:
2023-03-12T22:38:59.103220Z  WARN bevy_asset::asset_server: encountered an error while loading an asset: Expected closing `)`
After:
2023-03-12T22:38:59.103220Z  WARN bevy_asset::asset_server: encountered an error while loading an asset: Expected closing `)` at scenes/test/scene.scn.ron:10:4
```

## Solution

- use span_error to get position info. This is what the ron crate does
internally to get the position info.
562963f887/src/options.rs (L158)

## Changelog

- added line numbers to scene errors

---------

Co-authored-by: Paul Hansen <mail@paul.rs>
2023-03-28 01:44:54 +02:00
..
bevy_a11y Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_animation Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_app Fix Plugin::build detection (#8103) 2023-03-28 01:42:06 +02:00
bevy_asset Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_audio Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_core Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_core_pipeline Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_derive Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_diagnostic Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_dylib Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_dynamic_plugin Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_ecs add Clone to common conditions (#8060) 2023-03-28 01:29:06 +02:00
bevy_ecs_compile_fail_tests EntityMut: rename remove_intersection to remove and remove to take (#7810) 2023-02-26 00:09:19 +00:00
bevy_encase_derive Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_gilrs Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_gltf Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_hierarchy Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_input add Clone to common conditions (#8060) 2023-03-28 01:29:06 +02:00
bevy_internal Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_log Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_macro_utils Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_math Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_mikktspace Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_pbr fix: register Cascade in the TypeRegistry (#8088) 2023-03-28 01:35:08 +02:00
bevy_ptr Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_reflect Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_reflect_compile_fail_tests Enable deriving Reflect on structs with generic types (#7364) 2023-01-28 00:12:06 +00:00
bevy_render Fix Color::as_rgba_linear for Color::Lcha (#8040) 2023-03-28 01:26:40 +02:00
bevy_scene add position to scene errors (#8065) 2023-03-28 01:44:54 +02:00
bevy_sprite Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_tasks Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_text Fix the Text2d text anchor's incorrect horizontal alignment (#8019) 2023-03-28 01:25:28 +02:00
bevy_time add Clone to common conditions (#8060) 2023-03-28 01:29:06 +02:00
bevy_transform Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_ui Skip the UV calculations for untextured UI nodes (#7809) 2023-03-28 01:42:50 +02:00
bevy_utils Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_window Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00
bevy_winit Release 0.10.0 (#7919) 2023-03-06 03:53:02 +00:00