{"record":{"id":"3a4f5b29f612259c","repo":"oven-sh/bun","slug":"no-source-found","errorCode":null,"errorMessage":"No source found.","messagePattern":"No source found\\.","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/bun-debug-adapter-protocol/src/debugger/adapter.ts","lineNumber":2542,"sourceCode":"    case \"startGroup\":\n      return \"start\";\n    case \"startGroupCollapsed\":\n      return \"startCollapsed\";\n    case \"endGroup\":\n      return \"end\";\n  }\n  return undefined;\n}\n\nfunction sourceToId(source?: DAP.Source): string | number {\n  const { path, sourceReference } = source ?? {};\n  if (path) {\n    return path;\n  }\n  if (sourceReference) {\n    return sourceReference;\n  }\n  throw new Error(\"No source found.\");\n}\n\nfunction sourceToPath(source?: DAP.Source | string): string {\n  if (typeof source === \"string\") {\n    return source;\n  }\n  if (source) {\n    const { path } = source;\n    if (path) {\n      return path;\n    }\n  }\n  throw new Error(\"No source found.\");\n}\n\nfunction callFrameToId(callFrame: JSC.Console.CallFrame): string {\n  const { url, lineNumber, columnNumber } = callFrame;\n  return `${url}:${lineNumber}:${columnNumber}`;","sourceCodeStart":2524,"sourceCodeEnd":2560,"githubUrl":"https://github.com/oven-sh/bun/blob/8c5296ac459e8252d3cd702f3fbcbb0c249d95d5/packages/bun-debug-adapter-protocol/src/debugger/adapter.ts#L2524-L2560","documentation":"Thrown by sourceToId() when a DAP.Source carries neither a path nor a sourceReference. The breakpoint/logpoint source is completely unidentified, so no unique id can be derived to register the breakpoint against.","triggerScenarios":"Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:2542 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Provide source.path (or a sourceReference) in the DAP request","Re-fetch sources from the adapter so they carry valid references"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c5296ac459e8252d3cd702f3fbcbb0c249d95d5","analyzedAt":"2026-08-16T08:01:58.794Z","contentChangedAt":"2026-08-16T08:01:58.794Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}