{"record":{"id":"c3ed2476e2c15074","repo":"deepseek-ai/deepseek-harness","slug":"fs-not-found-c3ed24","errorCode":"FS_NOT_FOUND","errorMessage":"cannot read \"${target.displayPath}\": not found","messagePattern":"cannot read \"(.+?)\": not found","errorType":"exception","errorClass":"FsError","httpStatus":null,"severity":"error","filePath":"packages/fs/tool-fs/src/read-target.ts","lineNumber":28,"sourceCode":"import { sessionResolveOptions } from './session-cwd.ts'\n\n/**\n * Resolve a model-supplied path, observe absence, and require a regular file.\n * @param ctx - the plugin context providing filesystem resolution and observation events.\n * @param exec - the current tool execution, including session cwd and cancellation.\n * @param requestedPath - the raw path supplied to the tool.\n * @returns the resolved target and its single stat result.\n */\nexport async function resolveRegularReadTarget(\n  ctx: Context,\n  exec: ToolExecution,\n  requestedPath: string,\n): Promise<{ target: FsTarget; info: FsInfo }> {\n  const target = await ctx.fs.resolve(requestedPath, sessionResolveOptions(exec, requestedPath))\n  const info = await ctx.fs.stat(target, exec.signal)\n  if (info === undefined) {\n    ctx.emit('fs/observed', target, { kind: 'absent' }, exec)\n    throw new FsError(`cannot read \"${target.displayPath}\": not found`, 'FS_NOT_FOUND')\n  }\n  if (info.type !== 'file') {\n    throw new FsError(`cannot read \"${target.displayPath}\": not a regular file`, 'FS_NOT_REGULAR_FILE')\n  }\n  return { target, info }\n}\n","sourceCodeStart":10,"sourceCodeEnd":35,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/fs/tool-fs/src/read-target.ts#L10-L35","documentation":"Error \"cannot read \"${target.displayPath}\": not found\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/fs/tool-fs/src/read-target.ts:28 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":"b150a551b8d465e31e418e1b2eaf5e79bbb7d28e","analyzedAt":"2026-08-24T18:12:29.105Z","schemaVersion":2},"datasetVersion":"2026-08-24T22:17:12.610Z"}