deepseek-ai/deepseek-harness · error · Error
ReplaceFileW ${code} (Win32 ${win32Code}): ${path}
Error message
ReplaceFileW ${code} (Win32 ${win32Code}): ${path} What it means
Error "ReplaceFileW ${code} (Win32 ${win32Code}): ${path}" thrown in deepseek-ai/deepseek-harness.
Source
Thrown at packages/fs/fs-local/src/win32.ts:132
}
}
/**
* Replace a Windows file while preserving the replaced file's ACL and other replace metadata.
* @param replaced - existing destination file.
* @param replacement - closed staging file on the same volume.
*/
export async function replaceFileWin32(replaced: string, replacement: string): Promise<void> {
const api = await win32()
if (api.replaceFileW(
toNamespacedPath(replaced),
toNamespacedPath(replacement),
null,
0,
null,
null,
) === 0) {
throw win32Error('ReplaceFileW', api.getLastError(), replaced)
}
}
View on GitHub (pinned to b150a551b8)
Solutions
- Close handles to the target file and retry; check the Win32 error code for sharing or access violations.
When it happens
Trigger: Thrown at packages/fs/fs-local/src/win32.ts:132 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of deepseek-ai/deepseek-harness@b150a551b8 (2026-08-24).
Data as JSON: /api/errors/5ce07c061b7d52b6.
Report an issue: GitHub.