spacedriveapp/spacedrive · error · anyhow::Error

No library specified and no current library set

Error message

No library specified and no current library set

What it means

Error "No library specified and no current library set" thrown in spacedriveapp/spacedrive.

Source

Thrown at apps/cli/src/domains/library/args.rs:57

	}
}

#[derive(Args, Debug)]
pub struct LibraryInfoArgs {
	/// Library ID to get information about (optional, defaults to current library)
	pub library_id: Option<Uuid>,
}

impl LibraryInfoArgs {
	/// Create an input for the specified library ID or current library
	pub fn to_input(
		&self,
		current_library_id: Option<Uuid>,
	) -> anyhow::Result<LibraryInfoQueryInput> {
		let _library_id = self
			.library_id
			.or(current_library_id)
			.ok_or_else(|| anyhow::anyhow!("No library specified and no current library set"))?;

		Ok(LibraryInfoQueryInput {})
	}
}

#[derive(Args, Debug)]
pub struct LibrarySwitchArgs {
	/// Library ID to switch to
	#[arg(long)]
	pub library_id: Option<Uuid>,
	/// Library name to switch to
	#[arg(long)]
	pub name: Option<String>,
}

#[derive(Subcommand, Debug)]
pub enum SyncSetupCmd {
	/// Discover libraries on a paired device

View on GitHub (pinned to 6dfeccf211)

When it happens

Trigger: Thrown at apps/cli/src/domains/library/args.rs:57 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of spacedriveapp/spacedrive@6dfeccf211 (2026-08-16). Data as JSON: /api/errors/c79c9301c32d507c. Report an issue: GitHub.