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

git version: provided scene files don't load #319

Open
spookyvision opened this issue Jan 24, 2025 · 8 comments
Open

git version: provided scene files don't load #319

spookyvision opened this issue Jan 24, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@spookyvision
Copy link

Describe the bug
After trying to load a scene, this error appears in the log:

2025-01-24T17:13:14.901659Z ERROR bevy_asset::server: Failed to load asset 'scenes/monster.scn.ron' with asset loader 'bevy_scene::scene_loader::SceneLoader': Could not parse RON: 1:8: Expected struct `Scene` but found `version`

To Reproduce

  • cargo run
  • open any scene file in scenes/

Expected behavior
scene loads

Screenshots

Desktop (please complete the following information):

  • OS: Pop!_os 2024 alpha
  • Project Version: git commit 7492683
  • Rust Verion ⬅ that's a typo in your template 🙃
  • Rust Version: rustc 1.84.0 (9fc6b4312 2025-01-07)

Additional context

@spookyvision spookyvision added the bug Something isn't working label Jan 24, 2025
@naomijub
Copy link
Collaborator

This might be because of git legs, have you tried to download with git lfs?

@spookyvision
Copy link
Author

just a regular git clone

@naomijub
Copy link
Collaborator

You need to use lfs with your clone to retrieve the files

@spookyvision
Copy link
Author

I see! probably a good idea to document that then…
however:

  • git lfs clone tells me it's deprecated and I should use git clone
  • after clone I did a git lfs fetch --all which might have done something, I don't know?
❯ git lfs fetch --all
fetch: 49 objects found, done.
fetch: Fetching all references...

either way - the original error as reported persists. I don't think it's ever been a case of missing assets, given it's a parse error, not a "not found" error…

FWIW, here is a listing of all my locally checked out files (excluding .git)

@naomijub
Copy link
Collaborator

@rewin123 Can you help here? I won't be able to investigate this

@rewin123
Copy link
Owner

Yes. I will check this in 0.15-dev branch soon.

@spookyvision
Copy link
Author

oh, I didn't notice this branch. I was using main.

@spookyvision
Copy link
Author

0.15-dev also has RON parsing issues, albeit different ones. e.g.:

2025-02-04T15:58:30.346700Z ERROR bevy_asset::server: Failed to load asset 'scenes/gate.scn.ron' with asset loader 'bevy_scene::scene_loader::SceneLoader': Could not parse RON: 4:6: The given id is not a valid entity.

or

2025-02-04T15:58:41.485421Z ERROR bevy_asset::server: Failed to load asset 'scenes/monster.scn.ron' with asset loader 'bevy_scene::scene_loader::SceneLoader': Could not parse RON: 8:13: Expected float

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants