osis example fails to compile: DBTyped::new_with_index was removed but examples/basic/2_use_models.rs still calls it #104
Labels
No labels
prio_critical
prio_low
type_bug
type_contact
type_issue
type_lead
type_question
type_story
type_task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lhumina_code/hero_blueprint#104
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Symptom
cargo test --workspace(andcargo build --workspace --examples) fails to compile with:Root cause
API drift between example and library:
crates/osis/examples/basic/2_use_models.rswas added in21a28a5(@maintainer, 2026-03-08,feat: generate schema types in openrpc_client macro and add petstore example testing) with aDBTyped::new_with_index(&data_dir, &index_dir, 0)call (3 args: data dir, index dir, contributor id).crates/osis/src/db/db.rswas rewritten in5051525(Timur Gordon, 2026-03-09,fix: restore db module in hero_rpc_osis) with the simplerpub fn new<P: AsRef<Path>>(data_dir: P, contributor_id: u16) -> Result<Self>signature (2 args).new_with_indexno longer exists.The example has been silently failing to compile for ~2 months because nobody runs
cargo test --workspaceon hero_rpc.Reproduce
Suggested fix
Update
2_use_models.rs:85to call the currentDBTyped::newsignature, OR re-introducenew_with_indexif external indexing is still a supported feature. Need a maintainer who knows whether the multi-arg variant was intentionally dropped to make the call.Related
Found while running
cargo test --workspaceto verify the fix for #95. There are at least two other workspace-level failures (a clippycollapsible_ifincrates/oschema/src/markers.rs:49, and a runtimePATH_ROOTpanic incrates/derive/tests/sse_proxy.rsthat needssource ~/hero/cfg/init.shper the bootstrap skill); those are out of scope for this issue but worth a sweep —cargo test --workspaceandcargo clippy --workspace -- -D warningsare both silently broken onorigin/development.