{"record":{"id":"22372966bce8ebf9","repo":"wasmerio/wasmer","slug":"no-such-file-or-directory","errorCode":null,"errorMessage":"No such file or directory '{}'","messagePattern":"No such file or directory '(.+?)'","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/cli/src/commands/app/deploy.rs","lineNumber":274,"sourceCode":"            dir.clone()\n        } else if let Some(path) = &self.path {\n            path.clone()\n        } else {\n            std::env::current_dir()\n                .context(\"could not determine current directory for deployment\")?\n        };\n\n        if base.is_file() {\n            let base_dir = base\n                .parent()\n                .map(PathBuf::from)\n                .context(\"could not determine parent directory for app config\")?;\n            Ok((base, base_dir))\n        } else if base.is_dir() {\n            let config = base.join(AppConfigV1::CANONICAL_FILE_NAME);\n            Ok((config, base))\n        } else {\n            anyhow::bail!(\"No such file or directory '{}'\", base.display());\n        }\n    }\n\n    async fn handle_remote_build(&self, client: &WasmerClient) -> anyhow::Result<()> {\n        let (app_config_path, base_dir_path) = self.resolve_app_paths()?;\n        let wait = if self.no_wait {\n            WaitMode::Deployed\n        } else {\n            WaitMode::Reachable\n        };\n\n        let prep = if app_config_path.is_file() {\n            self.prepare_remote_build_from_file(client, &app_config_path, &base_dir_path)\n                .await?\n        } else {\n            self.prepare_remote_build_without_config(client, &base_dir_path)\n                .await?\n        };","sourceCodeStart":256,"sourceCodeEnd":292,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/commands/app/deploy.rs#L256-L292","documentation":"Error \"No such file or directory '{}'\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/cli/src/commands/app/deploy.rs:274 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":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}