You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Avoid panics for non-UTF-8 Wave source file names #400
bugA problem that causes incorrect behavior or crashes.cross-platformIssues related to making Wave work seamlessly across multiple operating systems.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
The Unix filesystem permits file names that are not valid UTF-8. The Wave object/build path in src/runner.rs calls file_stem().unwrap().to_str().unwrap(), so a valid source path can crash the compiler instead of returning a CLI diagnostic or producing the requested output.
Scope
Remove the UTF-8 and missing-stem unwraps from Wave compile/build paths.
Keep paths as Path/OsStr where possible.
Return a structured CLI error when a usable output name truly cannot be derived.
Add a Unix-only regression using OsStringExt and a non-UTF-8 temporary file name.
Verify explicit --out-dir or output paths still work.
Completion criteria
The regression exits normally without an internal panic.
No lossy conversion can cause two different input names to overwrite one output.
Normal UTF-8 paths behave exactly as before.
cargo test --locked --test codegen_regressions --jobs 2 passes.
bugA problem that causes incorrect behavior or crashes.cross-platformIssues related to making Wave work seamlessly across multiple operating systems.good first issueIssues that are good for newcomers or first-time contributors.needs testingIssues that require additional testing or verification.
Activity