{"record":{"id":"7d0fae28d6ceca60","repo":"denoland/deno","slug":"could-not-find-backend-backend-binary-under","errorCode":null,"errorMessage":"could not find '{backend}' backend binary under {} (set via {})","messagePattern":"could not find '(.+?)' backend binary under (.+?) \\(set via (.+?)\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cli/tools/desktop.rs","lineNumber":2064,"sourceCode":"      );\n    }\n\n    Ok(dir)\n  }\n\n  /// Locate the LAUFEY backend binary for `backend` on `target`.\n  ///\n  /// Resolution order: `LAUFEY_DEV_DIR` checkout → cached download →\n  /// fresh download.\n  async fn find_binary(\n    &self,\n    backend: &str,\n    target: &str,\n  ) -> Result<PathBuf, AnyError> {\n    if let Some(dev_dir) = laufey_dev_dir() {\n      let binary =\n        locate_dev_backend_binary(&dev_dir, backend).ok_or_else(|| {\n          deno_core::anyhow::anyhow!(\n            \"could not find '{backend}' backend binary under {} (set via {})\",\n            dev_dir.display(),\n            LAUFEY_DEV_DIR_ENV\n          )\n        })?;\n      // Re-sign the dev laufey build so its identifier matches the bundle\n      // id — same fix as the download path, applied every launch\n      // because a fresh `cargo build` of laufey restores the linker's\n      // default `Identifier=laufey`. The harmonize call is idempotent:\n      // already-correct binaries are skipped.\n      #[cfg(target_os = \"macos\")]\n      if let Some(laufey_app) = laufey_app_for_binary(&binary)\n        && let Err(e) = harmonize_laufey_app_identifiers(&laufey_app)\n      {\n        log::warn!(\n          \"[desktop] could not re-sign dev laufey backend: {e} \\\n           (notifications may not work in HMR mode)\"\n        );","sourceCodeStart":2046,"sourceCodeEnd":2082,"githubUrl":"https://github.com/denoland/deno/blob/89f33cbef296a2b287f323d42de54c871fa69c77/cli/tools/desktop.rs#L2046-L2082","documentation":"Error \"could not find '{backend}' backend binary under {} (set via {})\" thrown in denoland/deno.","triggerScenarios":"Thrown at cli/tools/desktop.rs:2064 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":"89f33cbef296a2b287f323d42de54c871fa69c77","analyzedAt":"2026-08-16T07:54:21.310Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}