{"record":{"id":"5bf09bf1eaafd52d","repo":"tauri-apps/tauri","slug":"not-implemented-lib","errorCode":null,"errorMessage":"not implemented","messagePattern":"not implemented","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/tauri-runtime-wry/src/lib.rs","lineNumber":617,"sourceCode":"    }\n  }\n}\n\npub fn map_theme(theme: &TaoTheme) -> Theme {\n  match theme {\n    TaoTheme::Light => Theme::Light,\n    TaoTheme::Dark => Theme::Dark,\n    _ => Theme::Light,\n  }\n}\n\n#[cfg(target_os = \"macos\")]\nfn tao_activation_policy(activation_policy: ActivationPolicy) -> TaoActivationPolicy {\n  match activation_policy {\n    ActivationPolicy::Regular => TaoActivationPolicy::Regular,\n    ActivationPolicy::Accessory => TaoActivationPolicy::Accessory,\n    ActivationPolicy::Prohibited => TaoActivationPolicy::Prohibited,\n    _ => unimplemented!(),\n  }\n}\n\npub struct MonitorHandleWrapper(pub MonitorHandle);\n\nimpl From<MonitorHandleWrapper> for Monitor {\n  fn from(monitor: MonitorHandleWrapper) -> Monitor {\n    Self {\n      name: monitor.0.name(),\n      position: monitor.0.position(),\n      size: monitor.0.size(),\n      work_area: monitor.0.work_area(),\n      scale_factor: monitor.0.scale_factor(),\n    }\n  }\n}\n\n#[cfg(desktop)]","sourceCodeStart":599,"sourceCodeEnd":635,"githubUrl":"https://github.com/tauri-apps/tauri/blob/460ec35447493200d64290dd7f015d5a91d0fd58/crates/tauri-runtime-wry/src/lib.rs#L599-L635","documentation":"tao_activation_policy maps tauri's ActivationPolicy enum onto tao's on macOS. The match only covers Regular, Accessory and Prohibited; any other variant (e.g. macOS-only additions not yet mapped) reaches unimplemented!. SetActivationPolicy and handle_user_message funnel through this function on macOS.","triggerScenarios":"Calling app.set_activation_policy(ActivationPolicy::...) with a variant not covered by the mapping, or sending the corresponding SetActivationPolicy message through the event loop on macOS.","commonSituations":"Using a newer ActivationPolicy variant added upstream (e.g. ComboBox/SelectControls from AppKit) that the runtime mapping has not been updated for; version drift between tauri and tao/tao-activation-policy definitions.","solutions":["Only use ActivationPolicy::Regular, Accessory or Prohibited","Upgrade tauri-runtime-wry/tao to versions where the missing variant is mapped","Avoid setting the policy at runtime if you only need a default policy"],"exampleFix":"// before\napp.set_activation_policy(ActivationPolicy::SelectControls);\n// after\napp.set_activation_policy(ActivationPolicy::Accessory);","handlingStrategy":"validation","validationCode":"match policy {\n  ActivationPolicy::Regular | ActivationPolicy::Accessory | ActivationPolicy::Prohibited => app.set_activation_policy(policy),\n  _ => eprintln!(\"unsupported activation policy on macOS backend\"),\n}","typeGuard":"fn is_supported_policy(p: &ActivationPolicy) -> bool {\n  matches!(p, ActivationPolicy::Regular | ActivationPolicy::Accessory | ActivationPolicy::Prohibited)\n}","tryCatchPattern":null,"preventionTips":["Restrict activation policies to the three documented variants","Keep tao versions aligned with tauri-runtime-wry","Test macOS-specific code paths on macOS in CI"],"tags":["macos","activation-policy","unimplemented","rust"],"backgroundTag":"unsupported-enum-value","analyzedSha":"460ec35447493200d64290dd7f015d5a91d0fd58","analyzedAt":"2026-09-18T23:55:51.277Z","contentChangedAt":"2026-09-18T23:55:51.277Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}