oven-sh/bun · error · Error

No source found.

Error message

No source found.

What it means

Error "No source found." thrown in oven-sh/bun.

Source

Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:2542

    case "startGroup":
      return "start";
    case "startGroupCollapsed":
      return "startCollapsed";
    case "endGroup":
      return "end";
  }
  return undefined;
}

function sourceToId(source?: DAP.Source): string | number {
  const { path, sourceReference } = source ?? {};
  if (path) {
    return path;
  }
  if (sourceReference) {
    return sourceReference;
  }
  throw new Error("No source found.");
}

function sourceToPath(source?: DAP.Source | string): string {
  if (typeof source === "string") {
    return source;
  }
  if (source) {
    const { path } = source;
    if (path) {
      return path;
    }
  }
  throw new Error("No source found.");
}

function callFrameToId(callFrame: JSC.Console.CallFrame): string {
  const { url, lineNumber, columnNumber } = callFrame;
  return `${url}:${lineNumber}:${columnNumber}`;

View on GitHub (pinned to 8c5296ac45)

When it happens

Trigger: Thrown at packages/bun-debug-adapter-protocol/src/debugger/adapter.ts:2542 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of oven-sh/bun@8c5296ac45 (2026-08-16). Data as JSON: /api/errors/3a4f5b29f612259c. Report an issue: GitHub.