Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

did not run #4

Open
n00bsi opened this issue Jul 29, 2024 · 0 comments
Open

did not run #4

n00bsi opened this issue Jul 29, 2024 · 0 comments

Comments

@n00bsi
Copy link

n00bsi commented Jul 29, 2024

rustc 1.79

cargo check

warning: use of deprecated method `bevy::ecs::system::EntityCommands::<'w, 's, 'a>::insert_bundle`: Use `insert` instead, which now accepts bundles, components, and tuples of bundles and components.
  --> src/systems.rs:44:33
   |
44 |         commands.entity(player).insert_bundle(
   |                                 ^^^^^^^^^^^^^
   |
   = note: `#[warn(deprecated)]` on by default

warning: unused variable: `event_time`
   --> src/movement.rs:103:27
    |
103 |             Event::Jump { event_time } => {
    |                           ^^^^^^^^^^ help: try ignoring the field: `event_time: _`
    |
    = note: `#[warn(unused_variables)]` on by default

warning: unused variable: `event_time`
   --> src/movement.rs:115:27
    |
115 |             Event::Jump { event_time } => {
    |                           ^^^^^^^^^^ help: try ignoring the field: `event_time: _`

warning: unused variable: `event_time`
   --> src/movement.rs:127:27
    |
127 |             Event::Jump { event_time } => {
    |                           ^^^^^^^^^^ help: try ignoring the field: `event_time: _`

warning: unused variable: `event_time`
   --> src/movement.rs:139:27
    |
139 |             Event::Jump { event_time } => {
    |                           ^^^^^^^^^^ help: try ignoring the field: `event_time: _`

warning: unused variable: `commands`
   --> src/movement.rs:154:5
    |
154 |     commands: Commands,
    |     ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_commands`

warning: unused variable: `velocity`
   --> src/movement.rs:252:9
    |
252 |         velocity,
    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_velocity`

warning: unused variable: `action_state`
   --> src/movement.rs:254:9
    |
254 |         action_state,
    |         ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_action_state`

warning: unused variable: `commands`
   --> src/movement.rs:239:5
    |
239 |     commands: Commands,
    |     ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_commands`

warning: unused variable: `time`
   --> src/movement.rs:247:5
    |
247 |     time: Res<Time>,
    |     ^^^^ help: if this is intentional, prefix it with an underscore: `_time`

warning: unused variable: `velocity`
   --> src/movement.rs:287:9
    |
287 |         velocity,
    |         ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_velocity`

warning: unused variable: `commands`
   --> src/movement.rs:274:5
    |
274 |     commands: Commands,
    |     ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_commands`

warning: unused variable: `time`
   --> src/movement.rs:282:5
    |
282 |     time: Res<Time>,
    |     ^^^^ help: if this is intentional, prefix it with an underscore: `_time`

warning: unused variable: `velocity`
   --> src/movement.rs:335:40
    |
335 |     for (action_state, mut controller, velocity) in
    |                                        ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_velocity`

warning: unused variable: `aaction`
   --> src/movement.rs:376:13
    |
376 |         for aaction in action
    |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_aaction`

warning: constant `TargetTopSpeed` is never used
   --> src/movement.rs:311:7
    |
311 | const TargetTopSpeed: f32 = 300.0;
    |       ^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: constant `TargetTopSpeed` should have an upper case name
   --> src/movement.rs:311:7
    |
311 | const TargetTopSpeed: f32 = 300.0;
    |       ^^^^^^^^^^^^^^ help: convert the identifier to upper case: `TARGET_TOP_SPEED`
    |
    = note: `#[warn(non_upper_case_globals)]` on by default

warning: `platformer` (lib) generated 17 warnings
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 29.56s

cargo run

warning: `platformer` (lib) generated 17 warnings
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.20s
     Running `target/debug/platformer`
2024-07-29T12:20:59.383924Z  INFO log: Guessed window scale factor: 1.25    
2024-07-29T12:20:59.413669Z  INFO bevy_render::renderer: AdapterInfo { name: "Intel(R) Xe Graphics (TGL GT2)", vendor: 32902, device: 39497, device_type: IntegratedGpu, driver: "Intel open-source Mesa driver", driver_info: "Mesa 24.1.3-manjaro1.1", backend: Vulkan }
2024-07-29T12:20:59.538753Z  INFO bevy_rapier2d::render::lines: Loaded 2d debug lines plugin.
2024-07-29T12:20:59.546765Z  WARN bevy_ecs::schedule::graph_utils: bevy_asset_loader::loading_state::stageless::systems::run_loading_state<platformer::GameState> wants to be after unknown label: ProgressSystemLabel::Preparation
2024-07-29T12:20:59.551418Z  INFO platformer: Current progress: Progress { done: 0, total: 0 }
thread 'main' panicked at library/core/src/panicking.rs:220:5:
unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
Aborted (core dumped)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant