{"record":{"id":"6afbbf9c98c7d965","repo":"sxyazi/yazi","slug":"failed-to-work-on-task-source-of-symlink-does","errorCode":null,"errorMessage":"Failed to work on {task:?}: source of symlink doesn't exist","messagePattern":"Failed to work on (.+?): source of symlink doesn't exist","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"yazi-scheduler/src/file/file.rs","lineNumber":344,"sourceCode":"\n\tpub(crate) async fn trash_do(&self, task: FileInTrash) -> Result<(), FileOutTrash> {\n\t\tctx!(task, engine::trash(&task.target).await)?;\n\t\tOk(self.ops.out(task.id, FileOutTrash::Succ))\n\t}\n\n\tpub(crate) async fn download(&self, task: FileInDownload) -> Result<(), FileOutDownload> {\n\t\tlet id = task.id;\n\n\t\tsuper::traverse::<FileOutDownload, _, _, _, _, _>(\n\t\t\ttask,\n\t\t\tasync |dir| {\n\t\t\t\tlet dir = dir.to_owned();\n\t\t\t\ttokio::task::spawn_blocking(move || _ = Cwd::ensure(dir.as_url())).await.ok();\n\t\t\t\tOk(())\n\t\t\t},\n\t\t\tasync |task, cha| {\n\t\t\t\tOk(if cha.is_orphan() {\n\t\t\t\t\tErr(anyhow!(\"Failed to work on {task:?}: source of symlink doesn't exist\"))?\n\t\t\t\t} else {\n\t\t\t\t\tself.ops.out(id, FileOutDownload::New(cha.len));\n\t\t\t\t\tself.requeue(task, LOW);\n\t\t\t\t})\n\t\t\t},\n\t\t\t|err| {\n\t\t\t\tself.ops.out(id, FileOutDownload::Deform(err));\n\t\t\t},\n\t\t)\n\t\t.await?;\n\n\t\tOk(self.ops.out(id, FileOutDownload::Succ))\n\t}\n\n\tpub(crate) async fn download_do(\n\t\t&self,\n\t\tmut task: FileInDownload,\n\t) -> Result<(), FileOutDownloadDo> {","sourceCodeStart":326,"sourceCodeEnd":362,"githubUrl":"https://github.com/sxyazi/yazi/blob/94abcfa92f4ad3f0a1aef6c1ea083cfb8aa6c8c2/yazi-scheduler/src/file/file.rs#L326-L362","documentation":"Error \"Failed to work on {task:?}: source of symlink doesn't exist\" thrown in sxyazi/yazi.","triggerScenarios":"Thrown at yazi-scheduler/src/file/file.rs:344 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"94abcfa92f4ad3f0a1aef6c1ea083cfb8aa6c8c2","analyzedAt":"2026-08-16T09:56:24.836Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}