{"record":{"id":"6e2182724f61de20","repo":"deepseek-ai/deepseek-harness","slug":"workspace-root-workspaceroot-is-not-a-directo","errorCode":null,"errorMessage":"workspace root \"${workspaceRoot}\" is not a directory","messagePattern":"workspace root \"(.+?)\" is not a directory","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/lsp/lsp-stdio/src/host.ts","lineNumber":52,"sourceCode":"  workspaceRoot: string,\n  signal?: AbortSignal,\n): Promise<HostWorkspace> {\n  throwIfAborted(signal)\n  let target: FsTarget\n  try {\n    target = await fs.resolve(workspaceRoot, signal === undefined ? {} : { signal })\n  } catch (error: unknown) {\n    throwIfAborted(signal)\n    throw new Error(`workspace root \"${workspaceRoot}\" cannot be resolved: ${messageOf(error)}`, { cause: error })\n  }\n  throwIfAborted(signal)\n  const info = await fs.stat(target, signal).catch((error: unknown) => {\n    throwIfAborted(signal)\n    throw error\n  })\n  throwIfAborted(signal)\n  if (info?.type !== 'directory') {\n    throw new Error(`workspace root \"${workspaceRoot}\" is not a directory`)\n  }\n  return {\n    target,\n    canonicalPath: fs.processPath(target),\n    fileUrl: fs.fileUrl(target),\n  }\n}\n\n/**\n * Resolve, contain, and read one byte-bounded query source through `ctx.fs`.\n * This layer owns the LSP-specific complete-document cap while the filesystem\n * provider owns streaming, regular-file checks, and UTF-8 validation.\n * @param fs - filesystem provider sharing the server's execution world.\n * @param filePath - absolute source path or path relative to `workspace`.\n * @param workspace - already-canonical workspace.\n * @param maxDocumentBytes - largest complete source accepted by this host.\n * @param signal - optional cancellation.\n * @returns canonical file URI and current text.","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/deepseek-ai/deepseek-harness/blob/b150a551b8d465e31e418e1b2eaf5e79bbb7d28e/packages/lsp/lsp-stdio/src/host.ts#L34-L70","documentation":"Error \"workspace root \"${workspaceRoot}\" is not a directory\" thrown in deepseek-ai/deepseek-harness.","triggerScenarios":"Thrown at packages/lsp/lsp-stdio/src/host.ts:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Point workspaceRoot at a directory, not a file."],"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"}