{"record":{"id":"29b091caec9f58c0","repo":"Fission-AI/OpenSpec","slug":"unsupported-shell-shell","errorCode":null,"errorMessage":"Unsupported shell: ${shell}","messagePattern":"Unsupported shell: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/completions/factory.ts","lineNumber":73,"sourceCode":"  /**\n   * Create a completion generator for the specified shell\n   *\n   * @param shell - The target shell\n   * @returns CompletionGenerator instance\n   * @throws Error if shell is not supported\n   */\n  static createGenerator(shell: SupportedShell): CompletionGenerator {\n    switch (shell) {\n      case 'zsh':\n        return new ZshGenerator();\n      case 'bash':\n        return new BashGenerator();\n      case 'fish':\n        return new FishGenerator();\n      case 'powershell':\n        return new PowerShellGenerator();\n      default:\n        throw new Error(`Unsupported shell: ${shell}`);\n    }\n  }\n\n  /**\n   * Create a completion installer for the specified shell\n   *\n   * @param shell - The target shell\n   * @returns CompletionInstaller instance\n   * @throws Error if shell is not supported\n   */\n  static createInstaller(shell: SupportedShell): CompletionInstaller {\n    switch (shell) {\n      case 'zsh':\n        return new ZshInstaller();\n      case 'bash':\n        return new BashInstaller();\n      case 'fish':\n        return new FishInstaller();","sourceCodeStart":55,"sourceCodeEnd":91,"githubUrl":"https://github.com/Fission-AI/OpenSpec/blob/6926ccb18afa4ff621112813e9968334576ee11a/src/core/completions/factory.ts#L55-L91","documentation":"Exhaustive switch default in the completion generator factory: the shell value fell through all known cases (zsh, bash, fish, powershell). It signals a caller passing an unvalidated or stale SupportedShell value, or a new shell not yet added to the switch.","triggerScenarios":"Thrown at src/core/completions/factory.ts:73 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Pass one of the supported shells: zsh, bash, fish, or powershell","Validate or normalize user input before calling createGenerator","If adding a new shell, implement its generator and add a case to the switch"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6926ccb18afa4ff621112813e9968334576ee11a","analyzedAt":"2026-08-25T12:29:45.729Z","contentChangedAt":"2026-08-25T12:29:45.729Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}