Fission-AI/OpenSpec · error · RootSelectionError

store_path_not_supported

store_path_not_supported

Error message

--store-path is not supported. Register the path with openspec store register <path>, then select it with --store <id>.

What it means

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.

Source

Thrown at src/core/root-selection.ts:396

          : error.diagnostic.fix;
      throw new RootSelectionError(
        `Global defaultStore '${id}': ${error.message}`,
        error.diagnostic.code,
        {
          ...(error.diagnostic.target ? { target: error.diagnostic.target } : {}),
          ...(staleFix ? { fix: staleFix } : {}),
        }
      );
    }
    throw error;
  }
}

export async function resolveOpenSpecRoot(
  options: ResolveOpenSpecRootOptions = {}
): Promise<ResolvedOpenSpecRoot> {
  if (options.storePath !== undefined) {
    throw new RootSelectionError(
      '--store-path is not supported. Register the path with openspec store register <path>, then select it with --store <id>.',
      'store_path_not_supported',
      {
        target: 'store.id',
        fix: 'openspec store register <path>, then rerun with --store <id>.',
      }
    );
  }

  if (options.store !== undefined) {
    return resolveStoreRoot(options.store, options.globalDataDir);
  }

  const startPath = options.startPath ?? process.cwd();
  const nearestRoot = findQualifyingRootSync(startPath);
  if (nearestRoot) {
    return resolveNearestOrDeclaredRoot(nearestRoot, options.globalDataDir);
  }

View on GitHub (pinned to 6926ccb18a)

When it happens

Trigger: Thrown at src/core/root-selection.ts:396 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/40a206f54f13f6d8. Report an issue: GitHub.