{"record":{"id":"1bb66bfb19f89d06","repo":"spacedriveapp/spacedrive","slug":"remote-library-is-required-for-join-remote-actio","errorCode":null,"errorMessage":"--remote-library is required for join-remote action","messagePattern":"--remote-library is required for join-remote action","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"apps/cli/src/domains/library/args.rs","lineNumber":177,"sourceCode":"\t\tlet leader_device_id = match leader {\n\t\t\t\"local\" => local_device_id,\n\t\t\t\"remote\" => remote_device,\n\t\t\t_ => anyhow::bail!(\"Leader must be 'local' or 'remote'\"),\n\t\t};\n\n\t\t// Parse action\n\t\tlet action_str = self.action.as_deref().unwrap_or(\"share-local\");\n\t\tlet action =\n\t\t\tmatch action_str {\n\t\t\t\t\"share-local\" => {\n\t\t\t\t\tlet name = self.name.clone().ok_or_else(|| {\n\t\t\t\t\t\tanyhow::anyhow!(\"--name is required for share-local action\")\n\t\t\t\t\t})?;\n\t\t\t\t\tLibrarySyncAction::ShareLocalLibrary { library_name: name }\n\t\t\t\t}\n\t\t\t\t\"join-remote\" => {\n\t\t\t\t\tlet remote_library_id = self.remote_library.ok_or_else(|| {\n\t\t\t\t\t\tanyhow::anyhow!(\"--remote-library is required for join-remote action\")\n\t\t\t\t\t})?;\n\t\t\t\t\tlet name = self.name.clone().ok_or_else(|| {\n\t\t\t\t\t\tanyhow::anyhow!(\"--name is required for join-remote action\")\n\t\t\t\t\t})?;\n\t\t\t\t\tLibrarySyncAction::JoinRemoteLibrary {\n\t\t\t\t\t\tremote_library_id,\n\t\t\t\t\t\tremote_library_name: name,\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\"merge\" => {\n\t\t\t\t\tlet local_library_id = local_library;\n\t\t\t\t\tlet remote_library_id = self.remote_library.ok_or_else(|| {\n\t\t\t\t\t\tanyhow::anyhow!(\"--remote-library is required for merge action\")\n\t\t\t\t\t})?;\n\t\t\t\t\tlet name = self\n\t\t\t\t\t\t.name\n\t\t\t\t\t\t.clone()\n\t\t\t\t\t\t.ok_or_else(|| anyhow::anyhow!(\"--name is required for merge action\"))?;","sourceCodeStart":159,"sourceCodeEnd":195,"githubUrl":"https://github.com/spacedriveapp/spacedrive/blob/6dfeccf2113039e35f2ce735f945e70dc3e4ea45/apps/cli/src/domains/library/args.rs#L159-L195","documentation":"Error \"--remote-library is required for join-remote action\" thrown in spacedriveapp/spacedrive.","triggerScenarios":"Thrown at apps/cli/src/domains/library/args.rs:177 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":"6dfeccf2113039e35f2ce735f945e70dc3e4ea45","analyzedAt":"2026-08-16T11:26:17.074Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}