Fission-AI/OpenSpec · error
Warning: Could not clean ${profilePath}: ${error}
Error message
Warning: Could not clean ${profilePath}: ${error} What it means
Error "Warning: Could not clean ${profilePath}: ${error}" thrown in Fission-AI/OpenSpec.
Source
Thrown at src/core/completions/installers/powershell-installer.ts:312
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}`);
}
}
return anyRemoved;
}
/**
* Install the completion script
*
* @param completionScript - The completion script content to install
* @returns Installation result with status and instructions
*/
async install(completionScript: string): Promise<InstallationResult> {
try {
const targetPath = this.getInstallationPath();
// Check if already installed with same content
let isUpdate = false;View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/core/completions/installers/powershell-installer.ts:312 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/50e97c24bbd8e4ca.
Report an issue: GitHub.