{"record":{"id":"a6a8fd14c1249ca1","repo":"cjpais/Handy","slug":"error-while-building-tauri-application","errorCode":null,"errorMessage":"error while building tauri application","messagePattern":"error while building tauri application","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src-tauri/src/lib.rs","lineNumber":1007,"sourceCode":"                            .app_handle()\n                            .set_activation_policy(tauri::ActivationPolicy::Accessory);\n                        if let Err(e) = res {\n                            log::error!(\"Failed to set activation policy: {}\", e);\n                        }\n                    }\n                    // No tray: keep the dock icon visible so the user can reopen\n                }\n            }\n            tauri::WindowEvent::ThemeChanged(theme) => {\n                log::info!(\"Theme changed to: {:?}\", theme);\n                // Re-apply the current tray state with the new theme's icon set\n                utils::refresh_tray_icon(window.app_handle());\n            }\n            _ => {}\n        })\n        .invoke_handler(invoke_handler)\n        .build(tauri::generate_context!())\n        .expect(\"error while building tauri application\")\n        .run(|app, event| match &event {\n            #[cfg(target_os = \"macos\")]\n            tauri::RunEvent::Reopen { .. } => {\n                show_main_window(app);\n            }\n            // Teardown transcribe.cpp before exit\n            tauri::RunEvent::Exit => {\n                if let Some(tm) = app.try_state::<Arc<TranscriptionManager>>() {\n                    let _ = tm.unload_model();\n                }\n            }\n            _ => {}\n        });\n}\n","sourceCodeStart":989,"sourceCodeEnd":1022,"githubUrl":"https://github.com/cjpais/Handy/blob/98a4d80cce8ad41efec2a419b59d9e81229a35d7/src-tauri/src/lib.rs#L989-L1022","documentation":"Error \"error while building tauri application\" thrown in cjpais/Handy.","triggerScenarios":"Thrown at src-tauri/src/lib.rs:1007 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"98a4d80cce8ad41efec2a419b59d9e81229a35d7","analyzedAt":"2026-08-16T20:58:09.966Z","schemaVersion":2},"datasetVersion":"2026-08-16T23:17:17.608Z"}