Fission-AI/OpenSpec · error · Error
Spec '${specId}' not found at ${displayPath}
Error message
Spec '${specId}' not found at ${displayPath} What it means
Error "Spec '${specId}' not found at ${displayPath}" thrown in Fission-AI/OpenSpec.
Source
Thrown at src/commands/spec.ts:125
const specIds = await getSpecIds(this.rootPath ?? process.cwd());
if (canPrompt && specIds.length > 0) {
const { select } = await import('@inquirer/prompts');
specId = await select({
message: 'Select a spec to show',
choices: specIds.map(id => ({ name: id, value: id })),
});
} else {
throw new Error('Missing required argument <spec-id>');
}
}
const specPath = join(this.specsDir, specId, 'spec.md');
assertSpecPath(this.specsDir, specPath);
if (!existsSync(specPath)) {
// Root-aware callers get the absolute path; the cwd-based noun form
// keeps its historical forward-slash relative message on all platforms.
const displayPath = this.rootPath ? specPath : `openspec/specs/${specId}/spec.md`;
throw new Error(`Spec '${specId}' not found at ${displayPath}`);
}
if (options.json) {
if (options.requirements && options.requirement) {
throw new Error('Options --requirements and --requirement cannot be used together');
}
const parsed = parseSpecFromFile(this.specsDir, specPath, specId);
const filtered = filterSpec(parsed, options);
const output = {
id: specId,
title: parsed.name,
overview: parsed.overview,
requirementCount: filtered.requirements.length,
requirements: filtered.requirements,
metadata: parsed.metadata ?? { version: '1.0.0', format: 'openspec' as const },
...(options.rootOutput ? { root: options.rootOutput } : {}),
};
console.log(JSON.stringify(output, null, 2));View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/commands/spec.ts:125 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/2262405434a9b07b.
Report an issue: GitHub.