{"record":{"id":"8860701f5babb3d4","repo":"oven-sh/bun","slug":"todo-windows","errorCode":null,"errorMessage":"TODO windows","messagePattern":"TODO windows","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/bundler/OutputFile.rs","lineNumber":307,"sourceCode":"        let fd_out = bun_sys::openat(\n            dir,\n            resolve_path::z(rel_path, &mut out_buf),\n            bun_sys::O::WRONLY | bun_sys::O::CREAT | bun_sys::O::TRUNC,\n            0o644,\n        )?;\n        let mut in_buf = PathBuffer::uninit();\n        let fd_in = bun_sys::openat(\n            Fd::cwd(),\n            resolve_path::z(self.src_path.text, &mut in_buf),\n            bun_sys::O::RDONLY,\n            0,\n        )?;\n\n        #[cfg(windows)]\n        {\n            let _ = (fd_out, fd_in);\n            // use paths instead of bun.getFdPathW()\n            panic!(\"TODO windows\");\n        }\n        #[cfg(not(windows))]\n        {\n            bun_sys::copy_file(fd_in, fd_out)?;\n            Ok(())\n        }\n    }\n}\n\n// `to_js` / `to_blob` are extension-trait methods that\n// live in `bun_bundler_jsc`; the base type carries no jsc reference.\n","sourceCodeStart":289,"sourceCodeEnd":319,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/src/bundler/OutputFile.rs#L289-L319","documentation":"OutputFile copying uses openat + copy on POSIX, but the Windows implementation was never written; reaching the `#[cfg(windows)]` arm panics with this placeholder. It means the output-file copy feature was invoked on Windows and hit unimplemented code, not an OS error.","triggerScenarios":"Thrown at src/bundler/OutputFile.rs:307 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Avoid the bundler code path that copies output files (e.g. don't use features that require file copying) on Windows","Implement the Windows branch using CopyFileW / paths as the TODO comment suggests","Report the missing bundler feature on Windows upstream if you hit it"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}