{"record":{"id":"781c3a8a8a80ac83","repo":"jdx/mise","slug":"flatpak-list-failed","errorCode":null,"errorMessage":"flatpak list failed: {}","messagePattern":"flatpak list failed: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/system/packages/flatpak.rs","lineNumber":138,"sourceCode":"        false\n    }\n\n    async fn installed(&self, pkgs: &[PackageRequest]) -> Result<Vec<PackageStatus>> {\n        if pkgs.is_empty() {\n            return Ok(vec![]);\n        }\n        let args = [\"list\", self.scope_arg(), \"--columns=application,version\"];\n        debug!(\"$ flatpak {}\", args.join(\" \"));\n        let output = tokio::process::Command::new(\"flatpak\")\n            .args(args)\n            .stdin(Stdio::null())\n            .stdout(Stdio::piped())\n            .stderr(Stdio::piped())\n            .output()\n            .await?;\n        if !output.status.success() {\n            let stderr = String::from_utf8_lossy(&output.stderr);\n            bail!(\"flatpak list failed: {}\", stderr.trim());\n        }\n        Ok(parse_flatpak_list(\n            &String::from_utf8_lossy(&output.stdout),\n            pkgs,\n        ))\n    }\n\n    async fn install(&self, pkgs: &[PackageRequest], opts: &InstallOpts) -> Result<()> {\n        if let Some(pkg) = pkgs.iter().find(|pkg| pkg.version.is_some()) {\n            bail!(\"flatpak cannot install a pinned version ('{pkg}')\");\n        }\n        let mut args = vec![\n            \"install\".to_string(),\n            self.scope_arg().to_string(),\n            \"--noninteractive\".to_string(),\n        ];\n        args.extend(pkgs.iter().map(|pkg| pkg.name.clone()));\n        if opts.dry_run {","sourceCodeStart":120,"sourceCodeEnd":156,"githubUrl":"https://github.com/jdx/mise/blob/afd2eddd3a50c16190efc1c7e94404b48f72af57/src/system/packages/flatpak.rs#L120-L156","documentation":"Process failure in the flatpak package manager's installed(): `flatpak list --columns=application,version` exited non-zero and its stderr is surfaced in the error. Fires when flatpak is broken, the user lacks permission, or the flatpak installation is corrupted.","triggerScenarios":"Thrown at src/system/packages/flatpak.rs:138 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run `flatpak list --app` manually to see the underlying error","Verify flatpak is installed and the user has remote/permission access","Repair flatpak (e.g. `flatpak repair`) or fix the remote, then retry"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"afd2eddd3a50c16190efc1c7e94404b48f72af57","analyzedAt":"2026-09-09T01:38:25.179Z","contentChangedAt":"2026-09-09T01:38:25.179Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}