{"record":{"id":"58f3004e97eb4120","repo":"slint-ui/slint","slug":"itemmemberfunctioncall-prop-name","errorCode":null,"errorMessage":"ItemMemberFunctionCall `{prop_name}`","messagePattern":"ItemMemberFunctionCall `(.+?)`","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/interpreter/eval.rs","lineNumber":2842,"sourceCode":"        );\n    }\n    if let Some(menu) = vtable::VRef::downcast_pin::<ContextMenu>(item_rc.borrow()) {\n        dispatch!(menu, prop_name.as_str();\n            \"close\" => close => (),\n            \"is-open\" => is_open,\n        );\n    }\n    if let Some(window) = vtable::VRef::downcast_pin::<WindowItem>(item_rc.borrow()) {\n        match prop_name.as_str() {\n            \"hide\" => {\n                window.hide(&adapter, &item_rc);\n                return Value::Void;\n            }\n            \"close\" => return Value::Bool(window.close(&adapter, &item_rc)),\n            _ => {}\n        }\n    }\n    unimplemented!(\"ItemMemberFunctionCall `{prop_name}`\")\n}\n","sourceCodeStart":2824,"sourceCodeEnd":2844,"githubUrl":"https://github.com/slint-ui/slint/blob/3a7e700487dc74d404cad0726378053ab763d4e0/internal/interpreter/eval.rs#L2824-L2844","documentation":"The Slint interpreter's `eval_item_member_function` hit an `ItemMemberFunctionCall` whose member function name it does not implement. Only a fixed set of builtin item member functions (e.g. `focus`, `show_popup`, `close` for windows) is handled; anything else falls through to this `unimplemented!()` panic. This marks an interpreter gap, not a user syntax error.","triggerScenarios":"Calling an item member function from interpreted Slint code (e.g. via the Slint interpreter or live-preview) that the evaluator has no arm for — typically a newly added builtin member function in the compiler that the interpreter's eval.rs has not been extended to support.","commonSituations":"Using the interpreter with a .slint file that uses a newer Slint language feature (e.g. a newly introduced item member function) while running an older interpreter; a version mismatch between the compiler and interpreter crates or usage of a nightly/unreleased feature.","solutions":["Upgrade the slint interpreter crate to a version matching the compiler that produced the .slint code","Check whether the called member function is actually supported by the interpreter and rewrite the code to avoid it","File/fix by adding a match arm for the missing function name in internal/interpreter/eval.rs"],"exampleFix":"// before (slint)\ncomponent C inherits Window { public function do-thing() {} }\n// calling c.do-thing() from interpreted code hits unimplemented\n// after\n// upgrade the interpreter crate so the member function has an eval arm, or inline the function body into the calling expression","handlingStrategy":"try-catch","validationCode":"// Check interpreter/compiler crate versions match\nassert_eq!(slint::VERSION, i_slint_interpreter::VERSION);","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Keep compiler and interpreter crate versions in lockstep","Avoid calling rarely-used item member functions from interpreted code","Test interpreted .slint files against your pinned slint version before release"],"tags":["interpreter","rust","unimplemented"],"backgroundTag":"unsupported-operation","analyzedSha":"3a7e700487dc74d404cad0726378053ab763d4e0","analyzedAt":"2026-09-16T01:37:20.251Z","contentChangedAt":"2026-09-16T01:37:20.251Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}