release/mirus didn't compile: search::format_line called without its definition #1

Closed
opened 2026-06-11 15:26:03 +00:00 by jmz · 1 comment
Owner

Summary

release/mirus (and base 0eb8ba8) did not compile from a clean checkout: src/main.rs calls search::format_line in three places (the :bookmarks and search-result pickers), but the format_line helper was never committed — it was left as an unstaged change in the working tree.

Detail

  • Callers: src/main.rs:917, :1010, :1265 — search::format_line(...), landed with the bookmark feature (9880d14).
  • Definition (pub fn format_line in src/search.rs) was missing from every commit.
  • Error: cannot find function 'format_line' in module 'search' (E0425) ×3.

Because the deployed binary is built from the working tree (which did have the change), this stayed invisible locally — only a fresh checkout / CI would have caught it.

Fix

Committed the missing helper in 191f909 ("fix(search): add format_line helper used by the bookmark/search pickers"), extracting the shared sender · snippet formatting out of search_hit_line. Branch now builds: 133 tests pass, clippy clean.

Prevention

Added a Forgejo check workflow (9990d8a) hard-gating on cargo build --locked + cargo test --locked for pushes to main/release/mirus and PRs.

Heads-up to whoever landed the bookmark feature: please confirm working-tree changes are fully staged before committing. Leaving this open as an FYI/ack.

## Summary `release/mirus` (and base `0eb8ba8`) did not compile from a clean checkout: `src/main.rs` calls `search::format_line` in three places (the `:bookmarks` and search-result pickers), but the `format_line` helper was never committed — it was left as an unstaged change in the working tree. ## Detail - Callers: `src/main.rs:917`, `:1010`, `:1265` — `search::format_line(...)`, landed with the bookmark feature (`9880d14`). - Definition (`pub fn format_line` in `src/search.rs`) was missing from every commit. - Error: `cannot find function 'format_line' in module 'search'` (E0425) ×3. Because the deployed binary is built from the working tree (which *did* have the change), this stayed invisible locally — only a fresh checkout / CI would have caught it. ## Fix Committed the missing helper in `191f909` ("fix(search): add format_line helper used by the bookmark/search pickers"), extracting the shared `sender · snippet` formatting out of `search_hit_line`. Branch now builds: 133 tests pass, clippy clean. ## Prevention Added a Forgejo `check` workflow (`9990d8a`) hard-gating on `cargo build --locked` + `cargo test --locked` for pushes to `main`/`release/mirus` and PRs. Heads-up to whoever landed the bookmark feature: please confirm working-tree changes are fully staged before committing. Leaving this open as an FYI/ack.
Member

Fixed on release/mirus: pub fn format_line was committed in 191f909 (src/search.rs:62). The branch head 93d51f1 builds, and CI is green (check push + pull_request). Closing.

🤖 Claude Code

Fixed on `release/mirus`: `pub fn format_line` was committed in 191f909 (`src/search.rs:62`). The branch head 93d51f1 builds, and CI is green (check push + pull_request). Closing. 🤖 Claude Code
jmz closed this issue 2026-11-04 11:04:05 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
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
public/iamb#1
No description provided.