Fission-AI/OpenSpec · error

Path is not writable: ${targetDir}

Error message

Path is not writable: ${targetDir}

What it means

Error "Path is not writable: ${targetDir}" thrown in Fission-AI/OpenSpec.

Source

Thrown at src/core/completions/installers/powershell-installer.ts:446

   * @returns Uninstallation result
   */
  async uninstall(options?: { yes?: boolean }): Promise<{ success: boolean; message: string }> {
    try {
      const targetPath = this.getInstallationPath();

      // Check if installed
      try {
        await fs.access(targetPath);
      } catch {
        return {
          success: false,
          message: 'Completion script is not installed',
        };
      }

      const targetDir = path.dirname(targetPath);
      if (!(await FileSystemUtils.canWriteFile(targetDir))) {
        throw new Error(`Path is not writable: ${targetDir}`);
      }

      // Remove the completion script
      await fs.unlink(targetPath);

      // Remove profile configuration
      await this.removeProfileConfig();

      return {
        success: true,
        message: 'Completion script uninstalled successfully',
      };
    } catch (error) {
      return {
        success: false,
        message: `Failed to uninstall completion script: ${error instanceof Error ? error.message : String(error)}`,
      };
    }

View on GitHub (pinned to 6926ccb18a)

When it happens

Trigger: Thrown at src/core/completions/installers/powershell-installer.ts:446 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/2cd014c9761f5df4. Report an issue: GitHub.