bevyengine / bevyengine/bevy

Full Windows file paths cause a panic when loading assets

Open
#10,192 2 comments 0 reactions 0 assignees View on GitHub
A-Assets C-Bug O-Windows
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

dcc35120f955dd921149c1a9ed3b68bf3cec848e

## Relevant system information

Windows 11

## What you did

Run the scene viewer using a full windows file path (eg. `D:/path/to/scene.gltf/`) instead of a relative path.

## What went wrong

It panics with ```thread 'Compute Task Pool (15)' panicked at crates\bevy_asset\src\path.rs:115:70:
called `Result::unwrap()` on an `Err` value: InvalidSourceSyntax```

## Additional information

35073cf7aa9eaf748e167c103921a6764fcedfb1 is when the issue started. There was also some discussion on discord if `AssetPath` should support Windows file paths (https://discord.com/channels/691052431525675048/1164297864441249823)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.