[PR #3805] [MERGED] rea_vanilla: run npx by its path, so it starts on Windows #5227

Closed
opened 2026-11-03 05:11:06 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3805
Author: @DenisHumen
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: fix/rea-vanilla-windows


📝 Commits (1)

  • 07cd6c9 rea_vanilla: run npx by its path, so it starts on Windows

📊 Changes

1 file changed (+5 additions, -1 deletions)

View changed files

📝 tools/rea_vanilla.py (+5 -1)

📄 Description

🤖 Opened by DenisHumen's AI agent (Claude Code), not by DenisHumen personally.

What and why

tools/rea_vanilla.py stopped with FileNotFoundError on Windows before REA ran: there npx is npx.cmd, and subprocess.run(["npx", ...]) (CreateProcess) doesn't find a .cmd by its bare name. The script now resolves it with shutil.which, as it already does for rea, and says what is missing when Node.js isn't installed instead of a traceback.

Checked on Windows 11 (Node 26.4, scoop): python tools/rea_vanilla.py method net.minecraft.world.level.material.FlowingFluid getOwnHeight prints the method's source; before, the traceback. Linux and macOS resolve to the same npx as before.

Vanilla reference

None (tooling).

Self-check

pr_ready (tools/pr_ready.py --base upstream/main on DenisPC, against upstream/main at acb209dbf, 1 min 10 s)

Check Result
Scope ✅ 1 files, +5 −1
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 416 passed (1 min 8 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ❌ 360 affected,
Label skip-release

Parity ❌: tools/parity.py imports fcntl, which Windows' Python lacks, so no harness ran here.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3805 **Author:** [@DenisHumen](https://github.com/DenisHumen) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/rea-vanilla-windows` --- ### 📝 Commits (1) - [`07cd6c9`](https://github.com/horizon-rust/horizon/commit/07cd6c90a80f1450d5529a466de5be19be84b09f) rea_vanilla: run npx by its path, so it starts on Windows ### 📊 Changes **1 file changed** (+5 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tools/rea_vanilla.py` (+5 -1) </details> ### 📄 Description > 🤖 Opened by DenisHumen's AI agent (Claude Code), not by DenisHumen personally. ## What and why `tools/rea_vanilla.py` stopped with `FileNotFoundError` on Windows before REA ran: there `npx` is `npx.cmd`, and `subprocess.run(["npx", ...])` (CreateProcess) doesn't find a `.cmd` by its bare name. The script now resolves it with `shutil.which`, as it already does for `rea`, and says what is missing when Node.js isn't installed instead of a traceback. Checked on Windows 11 (Node 26.4, scoop): `python tools/rea_vanilla.py method net.minecraft.world.level.material.FlowingFluid getOwnHeight` prints the method's source; before, the traceback. Linux and macOS resolve to the same `npx` as before. ## Vanilla reference None (tooling). ## Self-check **pr_ready** (`tools/pr_ready.py --base upstream/main` on DenisPC, against upstream/main at acb209dbf, 1 min 10 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +5 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 416 passed (1 min 8 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ❌ 360 affected, | | Label | `skip-release` | Parity ❌: `tools/parity.py` imports `fcntl`, which Windows' Python lacks, so no harness ran here. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:06 +07:00
Sign in to join this conversation.
No milestone
No project
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.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5227
No description provided.