Fission-AI/OpenSpec · error
Warning: Could not configure
Error message
Warning: Could not configure ${profilePath}: ${error} What it means
Warning printed by configureProfile's outer per-profile catch: writing the OpenSpec completion block to a PowerShell profile failed (e.g. 'Path is not writable' or a write error). Other profiles may still have been configured; this one is skipped.
Solutions
- Grant write access to the profile path in the message
- Close editors locking the profile, then re-run installation
- Add the completion block to the profile manually
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at src/core/completions/installers/powershell-installer.ts:248 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/0c62425a89f9335f.
Report an issue: GitHub.
Appendix: source
Thrown at src/core/completions/installers/powershell-installer.ts:248
// Add OpenSpec completion configuration with markers
const openspecBlock = [
'',
'# OPENSPEC:START - OpenSpec completion (managed block, do not edit manually)',
scriptLine,
'# OPENSPEC:END',
'',
].join('\n');
const newContent = profileContent + openspecBlock;
if (!(await FileSystemUtils.canWriteFile(profilePath))) {
throw new Error(`Path is not writable: ${profilePath}`);
}
await this.writeProfileFile(profilePath, newContent, fileEncoding, fileBom);
anyConfigured = true;
} catch (error) {
// Continue to next profile if this one fails
console.warn(`Warning: Could not configure ${profilePath}: ${error}`);
}
}
return anyConfigured;
}
/**
* Remove PowerShell profile configuration
* Used during uninstallation
*
* @returns true if removed successfully, false otherwise
*/
async removeProfileConfig(): Promise<boolean> {
const profilePaths = this.getAllProfilePaths();
let anyRemoved = false;
for (const profilePath of profilePaths) {
try {View on GitHub (pinned to 6926ccb18a)