Fission-AI/OpenSpec · error
Path is not writable: ${profilePath}
Error message
Path is not writable: ${profilePath} What it means
Error "Path is not writable: ${profilePath}" thrown in Fission-AI/OpenSpec.
Source
Thrown at src/core/completions/installers/powershell-installer.ts:201
const profilePaths = this.getAllProfilePaths();
let anyConfigured = false;
for (const profilePath of profilePaths) {
try {
const profileDir = path.dirname(profilePath);
let profileExists = false;
try {
await fs.access(profilePath);
profileExists = true;
} catch (err: any) {
if (err?.code !== 'ENOENT') {
throw err;
}
}
if (!profileExists) {
if (!(await FileSystemUtils.canWriteFile(profilePath))) {
throw new Error(`Path is not writable: ${profilePath}`);
}
await fs.mkdir(profileDir, { recursive: true });
}
let profileContent = '';
let fileEncoding: BufferEncoding = 'utf-8';
let fileBom: Buffer = Buffer.alloc(0);
try {
const file = await this.readProfileFile(profilePath);
profileContent = file.content;
fileEncoding = file.encoding;
fileBom = file.bom;
} catch (err: any) {
// If the file doesn't exist that's fine — we'll create it as UTF-8.
// Any other read error (permissions, unsupported encoding, etc.) → skip this profile.
if (err?.code === 'ENOENT') {
// keep defaults
} else {View on GitHub (pinned to 6926ccb18a)
When it happens
Trigger: Thrown at src/core/completions/installers/powershell-installer.ts:201 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/e2d91de2ecb45427.
Report an issue: GitHub.