fix: name the program a launcher step could not start (cargo missing → rustup.rs) #588

Open
KainanP wants to merge 1 commit from upstream-pr/588 into main
KainanP commented 2026-11-28 16:52:04 +00:00 (Migrated from github.com)

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 that cargo is missing, or that Rust is what has to be installed.

Change (crates/anyxboxx-launcher/src/job.rs only):

  • start_error builds 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 missing cargo also points to https://rustup.rs and to the Setup page, which already checks for rustc. Other errors keep their text.
  • The detached game step uses the same message.

Before: !! Building VIctory: program not found
After: !! 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_failed now also checks that the missing program is named. It fails with main's error.to_string() (checked by restoring that line) and passes with the fix.
  • job::tests::a_missing_cargo_points_to_the_rust_install checks 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.
  • Full pytest (ANYXBOXX_REQUIRE_RUNTIME=1 python -m pytest -n auto): 1990 passed (RTX 4060 Laptop, run on main 66b92fbe with 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

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5542478575 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/588). Originally posted by [KainanP](https://github.com/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 that `cargo` is missing, or that Rust is what has to be installed. **Change** (`crates/anyxboxx-launcher/src/job.rs` only): - `start_error` builds 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 missing `cargo` also points to https://rustup.rs and to the Setup page, which already checks for `rustc`. Other errors keep their text. - The detached game step uses the same message. Before: `!! Building VIctory: program not found` After: `!! 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_failed` now also checks that the missing program is named. It **fails** with main's `error.to_string()` (checked by restoring that line) and passes with the fix. - `job::tests::a_missing_cargo_points_to_the_rust_install` checks 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. - Full pytest (`ANYXBOXX_REQUIRE_RUNTIME=1 python -m pytest -n auto`): 1990 passed (RTX 4060 Laptop, run on main `66b92fbe` with 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](https://claude.com/claude-code)
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/588:upstream-pr/588'
git switch 'upstream-pr/588'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/588'
git switch 'upstream-pr/588'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/588'
git switch 'upstream-pr/588'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/588'
git switch 'main'
git merge --squash 'upstream-pr/588'
git switch 'main'
git merge --ff-only 'upstream-pr/588'
git switch 'main'
git merge 'upstream-pr/588'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
LooperSalty/AnyXboxX!588
No description provided.