{"record":{"id":"40a206f54f13f6d8","repo":"Fission-AI/OpenSpec","slug":"store-path-not-supported","errorCode":"store_path_not_supported","errorMessage":"--store-path is not supported. Register the path with openspec store register <path>, then select it with --store <id>.","messagePattern":"--store-path is not supported\\. Register the path with openspec store register <path>, then select it with --store <id>\\.","errorType":"exception","errorClass":"RootSelectionError","httpStatus":null,"severity":"error","filePath":"src/core/root-selection.ts","lineNumber":396,"sourceCode":"          : error.diagnostic.fix;\n      throw new RootSelectionError(\n        `Global defaultStore '${id}': ${error.message}`,\n        error.diagnostic.code,\n        {\n          ...(error.diagnostic.target ? { target: error.diagnostic.target } : {}),\n          ...(staleFix ? { fix: staleFix } : {}),\n        }\n      );\n    }\n    throw error;\n  }\n}\n\nexport async function resolveOpenSpecRoot(\n  options: ResolveOpenSpecRootOptions = {}\n): Promise<ResolvedOpenSpecRoot> {\n  if (options.storePath !== undefined) {\n    throw new RootSelectionError(\n      '--store-path is not supported. Register the path with openspec store register <path>, then select it with --store <id>.',\n      'store_path_not_supported',\n      {\n        target: 'store.id',\n        fix: 'openspec store register <path>, then rerun with --store <id>.',\n      }\n    );\n  }\n\n  if (options.store !== undefined) {\n    return resolveStoreRoot(options.store, options.globalDataDir);\n  }\n\n  const startPath = options.startPath ?? process.cwd();\n  const nearestRoot = findQualifyingRootSync(startPath);\n  if (nearestRoot) {\n    return resolveNearestOrDeclaredRoot(nearestRoot, options.globalDataDir);\n  }","sourceCodeStart":378,"sourceCodeEnd":414,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/root-selection.ts#L378-L414","documentation":"Error \"--store-path is not supported. Register the path with openspec store register <path>, then select it with --store <id>.\" thrown in Fission-AI/OpenSpec.","triggerScenarios":"Thrown at src/core/root-selection.ts:396 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"}