{"record":{"id":"2262405434a9b07b","repo":"Fission-AI/OpenSpec","slug":"spec-specid-not-found-at-displaypath","errorCode":null,"errorMessage":"Spec '${specId}' not found at ${displayPath}","messagePattern":"Spec '(.+?)' not found at (.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"src/commands/spec.ts","lineNumber":125,"sourceCode":"      const specIds = await getSpecIds(this.rootPath ?? process.cwd());\n      if (canPrompt && specIds.length > 0) {\n        const { select } = await import('@inquirer/prompts');\n        specId = await select({\n          message: 'Select a spec to show',\n          choices: specIds.map(id => ({ name: id, value: id })),\n        });\n      } else {\n        throw new Error('Missing required argument <spec-id>');\n      }\n    }\n\n    const specPath = join(this.specsDir, specId, 'spec.md');\n    assertSpecPath(this.specsDir, specPath);\n    if (!existsSync(specPath)) {\n      // Root-aware callers get the absolute path; the cwd-based noun form\n      // keeps its historical forward-slash relative message on all platforms.\n      const displayPath = this.rootPath ? specPath : `openspec/specs/${specId}/spec.md`;\n      throw new Error(`Spec '${specId}' not found at ${displayPath}`);\n    }\n\n    if (options.json) {\n      if (options.requirements && options.requirement) {\n        throw new Error('Options --requirements and --requirement cannot be used together');\n      }\n      const parsed = parseSpecFromFile(this.specsDir, specPath, specId);\n      const filtered = filterSpec(parsed, options);\n      const output = {\n        id: specId,\n        title: parsed.name,\n        overview: parsed.overview,\n        requirementCount: filtered.requirements.length,\n        requirements: filtered.requirements,\n        metadata: parsed.metadata ?? { version: '1.0.0', format: 'openspec' as const },\n        ...(options.rootOutput ? { root: options.rootOutput } : {}),\n      };\n      console.log(JSON.stringify(output, null, 2));","sourceCodeStart":107,"sourceCodeEnd":143,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/commands/spec.ts#L107-L143","documentation":"Error \"Spec '${specId}' not found at ${displayPath}\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/commands/spec.ts:125 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":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-08-25T16:17:27.014Z"}