[PR #7310] [MERGED] Repair four rest-003 ledger citations that named no fn #7482

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/7310
Author: @MSedgeMC
Created: 11/2/2026
Status: ✅ Merged
Merged: 11/2/2026
Merged by: @ludovic111

Base: main ← Head: chore/fix-citations-rest-003


📝 Commits (1)

  • 5224233 Name the fn each rest-003 row ports

📊 Changes

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

View changed files

📝 tools/port_map/rest-003.tsv (+4 -4)

📄 Description

Four rows in tools/port_map/rest-003.tsv named a where cell that port_ledger.py map-check could not resolve (no fn): two pointed at game.rs for fns that live in game/ime.rs, one was prose (WindowEvent::Ime arm), one was a file:line -> name form. Each now names the single function that implements the method.

row before now cites
67 KeyboardHandler.textEditing crates/horizon-client/src/game.rs::ime_preedit crates/horizon-client/src/game/ime.rs::Game::ime_preedit — the WindowEvent::Ime(Preedit) handler, whose doc names KeyboardHandler.textEditing
68 KeyboardHandler.submitPreeditEvent crates/horizon-client/src/game.rs: WindowEvent::Ime arm crates/horizon-client-render/src/preedit.rs::set_preedit — delivery of the composition to the focused field; the commit half is Game::ime_commit
120 Minecraft.onTextInputFocusChange crates/horizon-client/src/game.rs::sync_ime crates/horizon-client/src/game/ime.rs::Game::sync_ime — allows the input method only while a text box has focus
123 MouseHandler.onDrop crates/horizon-client/src/game.rs:16709 -> title::drop_file crates/horizon-client/src/title.rs::Title::drop_file — a dropped pack joins the Create New World screen's data packs

No verdict changed: all four keep port or inline and the note they had, since each fn exists and does what the note says.

Validation, against a build of upstream/main with both 26.3 jars:

$ PORT_LEDGER_OUT=/tmp/led-repair python3 tools/port_ledger.py map-check tools/port_map/rest-003.tsv
tools/port_map/rest-003.tsv:76 Minecraft.run: no fn crates/horizon-client/src/game.rs::run

The four rows above no longer appear in that output. Line 76 (Minecraft.run, port, crates/horizon-client/src/game.rs::run) is a separate row of the same file, outside this repair, and is left as it stands: there is no fn named run in game.rs, and naming one for the main loop needs its own reading.

Proven: all four cited path::fn values resolve, and each fn is the one that receives the preedit, syncs the IME, or takes the dropped path.

Not proven: that submitPreeditEvent's crash-report path and its resubmitLastPreeditEvent caller have any counterpart; the row stays inline because the composition reaches the focused field directly and nothing there reports.

These cells were written before map-check was run over the verdict map, which is why a wrong file for ime_preedit/sync_ime, a bare prose name for the IME arm and a line -> fn arrow could sit in the where column unresolved.


🔄 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/7310 **Author:** [@MSedgeMC](https://github.com/MSedgeMC) **Created:** 11/2/2026 **Status:** ✅ Merged **Merged:** 11/2/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `chore/fix-citations-rest-003` --- ### 📝 Commits (1) - [`5224233`](https://github.com/horizon-rust/horizon/commit/5224233ca69c1c67d9fd19bda7d9a82316e999b3) Name the fn each rest-003 row ports ### 📊 Changes **1 file changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `tools/port_map/rest-003.tsv` (+4 -4) </details> ### 📄 Description Four rows in `tools/port_map/rest-003.tsv` named a `where` cell that `port_ledger.py map-check` could not resolve (`no fn`): two pointed at `game.rs` for fns that live in `game/ime.rs`, one was prose (`WindowEvent::Ime arm`), one was a `file:line -> name` form. Each now names the single function that implements the method. | row | before | now cites | | --- | --- | --- | | 67 `KeyboardHandler.textEditing` | `crates/horizon-client/src/game.rs::ime_preedit` | `crates/horizon-client/src/game/ime.rs::Game::ime_preedit` — the `WindowEvent::Ime(Preedit)` handler, whose doc names `KeyboardHandler.textEditing` | | 68 `KeyboardHandler.submitPreeditEvent` | `crates/horizon-client/src/game.rs: WindowEvent::Ime arm` | `crates/horizon-client-render/src/preedit.rs::set_preedit` — delivery of the composition to the focused field; the commit half is `Game::ime_commit` | | 120 `Minecraft.onTextInputFocusChange` | `crates/horizon-client/src/game.rs::sync_ime` | `crates/horizon-client/src/game/ime.rs::Game::sync_ime` — allows the input method only while a text box has focus | | 123 `MouseHandler.onDrop` | `crates/horizon-client/src/game.rs:16709 -> title::drop_file` | `crates/horizon-client/src/title.rs::Title::drop_file` — a dropped pack joins the Create New World screen's data packs | No verdict changed: all four keep `port` or `inline` and the note they had, since each fn exists and does what the note says. Validation, against a build of `upstream/main` with both 26.3 jars: ``` $ PORT_LEDGER_OUT=/tmp/led-repair python3 tools/port_ledger.py map-check tools/port_map/rest-003.tsv tools/port_map/rest-003.tsv:76 Minecraft.run: no fn crates/horizon-client/src/game.rs::run ``` The four rows above no longer appear in that output. Line 76 (`Minecraft.run`, `port`, `crates/horizon-client/src/game.rs::run`) is a separate row of the same file, outside this repair, and is left as it stands: there is no fn named `run` in `game.rs`, and naming one for the main loop needs its own reading. **Proven:** all four cited `path::fn` values resolve, and each fn is the one that receives the preedit, syncs the IME, or takes the dropped path. **Not proven:** that `submitPreeditEvent`'s crash-report path and its `resubmitLastPreeditEvent` caller have any counterpart; the row stays `inline` because the composition reaches the focused field directly and nothing there reports. These cells were written before `map-check` was run over the verdict map, which is why a wrong file for `ime_preedit`/`sync_ime`, a bare prose name for the IME arm and a `line -> fn` arrow could sit in the `where` column unresolved. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:40:03 +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#7482
No description provided.