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

Error with only serialize feature enabled #9787

Closed
100-TomatoJuice opened this issue Sep 12, 2023 · 0 comments · Fixed by #9803
Closed

Error with only serialize feature enabled #9787

100-TomatoJuice opened this issue Sep 12, 2023 · 0 comments · Fixed by #9803
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy

Comments

@100-TomatoJuice
Copy link
Contributor

Bevy version

Main

What you did

Create a bevy project with default features off and only serialize enabled.

[dependencies]
bevy = { git = "https://github.com/bevyengine/bevy.git", default-features = false, features = [
  "serialize",
] }

Run a Bevy app with DefaultPlugins

fn main() {
    App::new()
        .add_plugins(DefaultPlugins)
        .run()
}

What went wrong

The window would not be created and this error was printed to the terminal:

thread 'main' panicked at 'Requested resource bevy_asset::server::AssetServer does not exist in the `World`. 

Additional information

This was found at Leafwing-Studios/leafwing-input-manager#382

@100-TomatoJuice 100-TomatoJuice added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Sep 12, 2023
@alice-i-cecile alice-i-cecile added A-Assets Load files from disk to use for things like images, models, and sounds D-Trivial Nice and easy! A great choice to get started with Bevy and removed S-Needs-Triage This issue needs to be labelled labels Sep 12, 2023
github-merge-queue bot pushed a commit that referenced this issue Sep 14, 2023
…re if it's not enabled from elsewhere (#9803)

# Objective

Fixes #9787

## Solution

~~"serialize" feature enables "bevy_asset" now~~
"serialize" feature no longer enables the optional "bevy_scene" feature
if it's not enabled from elsewhere (thanks to @mockersf)
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this issue Jan 9, 2024
…re if it's not enabled from elsewhere (bevyengine#9803)

# Objective

Fixes bevyengine#9787

## Solution

~~"serialize" feature enables "bevy_asset" now~~
"serialize" feature no longer enables the optional "bevy_scene" feature
if it's not enabled from elsewhere (thanks to @mockersf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Bug An unexpected or incorrect behavior D-Trivial Nice and easy! A great choice to get started with Bevy
Projects
None yet
2 participants