{"record":{"id":"a5f1d3c161631b8e","repo":"yorukot/superfile","slug":"cannot-spawn-process-w-a5f1d3","errorCode":null,"errorMessage":"cannot spawn process : %w","messagePattern":"cannot spawn process : %w","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/internal/file_operations_extract.go","lineNumber":19,"sourceCode":"package internal\n\nimport (\n\t\"fmt\"\n\t\"log/slog\"\n\t\"path/filepath\"\n\t\"time\"\n\n\t\"golift.io/xtractr\"\n\n\t\"github.com/yorukot/superfile/src/pkg/utils\"\n\n\t\"github.com/yorukot/superfile/src/internal/ui/processbar\"\n)\n\nfunc extractCompressFile(src, dest string, processBar *processbar.Model) error {\n\tp, err := processBar.SendAddProcessMsg(filepath.Base(src), processbar.OpExtract, 1, true)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"cannot spawn process : %w\", err)\n\t}\n\n\tx := &xtractr.XFile{\n\t\tFilePath:  src,\n\t\tOutputDir: dest,\n\t\tFileMode:  utils.ExtractedFileMode,\n\t\tDirMode:   utils.ExtractedDirMode,\n\t}\n\n\t_, _, _, err = xtractr.ExtractFile(x)\n\n\tif err != nil {\n\t\tp.State = processbar.Failed\n\t\tslog.Error(\"Error extracting\", \"path\", src, \"error\", err)\n\t} else {\n\t\tp.State = processbar.Successful\n\t\tp.Done = 1\n\t}","sourceCodeStart":1,"sourceCodeEnd":37,"githubUrl":"https://github.com/yorukot/superfile/blob/b72f550bc6e75913f48eb49fdd258e1a2df2fe88/src/internal/file_operations_extract.go#L1-L37","documentation":"Error \"cannot spawn process : %w\" thrown in yorukot/superfile.","triggerScenarios":"Thrown at src/internal/file_operations_extract.go:19 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":"b72f550bc6e75913f48eb49fdd258e1a2df2fe88","analyzedAt":"2026-09-01T04:38:08.254Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}