Fission-AI/OpenSpec · error · StoreError
store_path_required
store_path_required
Error message
Pass a store path.
What it means
Thrown by resolveRegisterRoot when store registration received no path argument (undefined or whitespace). The resolver refuses to guess a default location, so the caller must name the store folder to register.
Solutions
- Pass the existing store folder path to 'openspec store register <path>'
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at src/core/store/operations.ts:362 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of Fission-AI/OpenSpec@6926ccb18a (2026-08-25).
Data as JSON: /api/errors/f4d34965368180a9.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/store/operations.ts:362
function resolveSetupRoot(id: string, inputPath: string | undefined): string {
// A store is a repo the user places; setup never silently picks app data.
if (inputPath === undefined || inputPath.trim().length === 0) {
throw new StoreError(
'Pass --path with the folder where this store should live.',
'store_setup_path_required',
{
target: 'store.root',
fix: `openspec store setup ${id} --path ~/openspec/${id}`,
}
);
}
return path.resolve(expandUserPath(inputPath));
}
function resolveRegisterRoot(inputPath: string | undefined): string {
if (inputPath === undefined || inputPath.trim().length === 0) {
throw new StoreError('Pass a store path.', 'store_path_required', {
target: 'store.root',
fix: 'openspec store register /path/to/store',
});
}
return path.resolve(expandUserPath(inputPath));
}
function inferStoreIdFromPath(storeRoot: string): string {
return validateStoreId(path.basename(storeRoot));
}
function normalizeRegistryPathForComparison(targetPath: string): string {
try {
return FileSystemUtils.canonicalizeExistingPath(targetPath);
} catch {
return path.resolve(targetPath);
}View on GitHub (pinned to 6926ccb18a)