{"record":{"id":"6d90a2050b9631f3","repo":"phacility/phabricator","slug":"expected-mode-type-hash-size-t-name-fo","errorCode":null,"errorMessage":"Expected \"<mode> <type> <hash> <size>\\t<name>\", for ls-tree of \"%s:%s\", got: %s","messagePattern":"Expected \"<mode> <type> <hash> <size>\\\\t<name>\", for ls-tree of \"(.+?):(.+?)\", got: (.+?)","errorType":"exception","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php","lineNumber":161,"sourceCode":"        $path);\n    }\n\n    $submodules = array();\n\n    $count = 0;\n    $results = array();\n    $lines = empty($stdout)\n           ? array()\n           : explode(\"\\0\", rtrim($stdout));\n\n    foreach ($lines as $line) {\n      // NOTE: Limit to 5 components so we parse filenames with spaces in them\n      // correctly.\n      // NOTE: The output uses a mixture of tabs and one-or-more spaces to\n      // delimit fields.\n      $parts = preg_split('/\\s+/', $line, 5);\n      if (count($parts) < 5) {\n        throw new Exception(\n          pht(\n            'Expected \"<mode> <type> <hash> <size>\\t<name>\", for ls-tree of '.\n            '\"%s:%s\", got: %s',\n            $commit,\n            $path,\n            $line));\n      }\n\n      list($mode, $type, $hash, $size, $full_path) = $parts;\n\n      $path_result = new DiffusionRepositoryPath();\n\n      if ($type == 'tree') {\n        $file_type = DifferentialChangeType::FILE_DIRECTORY;\n      } else if ($type == 'commit') {\n        $file_type = DifferentialChangeType::FILE_SUBMODULE;\n        $submodules[] = $path_result;\n      } else {","sourceCodeStart":143,"sourceCodeEnd":179,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php#L143-L179","documentation":"Error \"Expected \"<mode> <type> <hash> <size>\\t<name>\", for ls-tree of \"%s:%s\", got: %s\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/diffusion/conduit/DiffusionBrowseQueryConduitAPIMethod.php:161 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":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}