fix: name the program a launcher step could not start (cargo missing → rustup.rs) #588
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/588"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LooperSalty/AnyXboxX. Originally posted by KainanP on 2026-11-28T16:52:04Z.
Fixes #565.
When a launcher step's program is missing, Windows only reports "program not found", and the launcher printed it after the step's label. The report in #565 reads
!! Building VIctory: program not found, which doesn't say thatcargois missing, or that Rust is what has to be installed.Change (
crates/anyxboxx-launcher/src/job.rsonly):start_errorbuilds the message when a step can't start. For a missing program it names the program and asks whether it's installed and on PATH. A missingcargoalso points to https://rustup.rs and to the Setup page, which already checks forrustc. Other errors keep their text.Before:
!! Building VIctory: program not foundAfter:
!! Building VIctory: cargo was not found (program not found): is it installed and on PATH? Install Rust from https://rustup.rs, then restart the launcher (Setup shows what is missing).Tests
job::tests::a_missing_program_is_reported_as_failednow also checks that the missing program is named. It fails with main'serror.to_string()(checked by restoring that line) and passes with the fix.job::tests::a_missing_cargo_points_to_the_rust_installchecks the cargo hint, that other programs don't get it, and that a non-NotFound error keeps its text.cargo test -p anyxboxx-launcher --release job::: 8 passed.ANYXBOXX_REQUIRE_RUNTIME=1 python -m pytest -n auto): 1990 passed (RTX 4060 Laptop, run on main66b92fbewith this PR and the two companion PRs from the same triage applied together).AI use: written and tested by Claude Code (Claude Opus 5.5) for KainanP. The test was run red before the fix and green after.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.