Fission-AI/OpenSpec · error

Warning: Found start marker but no end marker in ${profilePa

Error message

Warning: Found start marker but no end marker in ${profilePath}

What it means

Error "Warning: Found start marker but no end marker in ${profilePath}" thrown in Fission-AI/OpenSpec.

Source

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

          if (err?.code === 'ENOENT') {
            continue; // Profile doesn't exist, nothing to remove
          }
          console.warn(`Warning: Could not read ${profilePath}: ${err?.message ?? String(err)}`);
          continue;
        }

        // Remove OPENSPEC:START -> OPENSPEC:END block
        const startMarker = '# OPENSPEC:START';
        const endMarker = '# OPENSPEC:END';
        const startIndex = profileContent.indexOf(startMarker);

        if (startIndex === -1) {
          continue; // No OpenSpec block found
        }

        const endIndex = profileContent.indexOf(endMarker, startIndex);
        if (endIndex === -1) {
          console.warn(`Warning: Found start marker but no end marker in ${profilePath}`);
          continue;
        }

        // Remove the block (including markers and surrounding newlines)
        const beforeBlock = profileContent.substring(0, startIndex);
        const afterBlock = profileContent.substring(endIndex + endMarker.length);

        // Clean up extra newlines
        const newContent = (beforeBlock.trimEnd() + '\n' + afterBlock.trimStart()).trim() + '\n';

        if (!(await FileSystemUtils.canWriteFile(profilePath))) {
          throw new Error(`Path is not writable: ${profilePath}`);
        }
        await this.writeProfileFile(profilePath, newContent, fileEncoding, fileBom);
        anyRemoved = true;
      } catch (error) {
        console.warn(`Warning: Could not clean ${profilePath}: ${error}`);
      }

View on GitHub (pinned to 6926ccb18a)

When it happens

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