{"record":{"id":"73faa206c2c50971","repo":"Hmbown/CodeWhale","slug":"unsupported-architecture-arch-on-platform-pl","errorCode":null,"errorMessage":"Unsupported architecture: ${arch} on platform ${platform}. Supported architectures: ${supported}.\\n\\n${hint}","messagePattern":"Unsupported architecture: (.+?) on platform (.+?)\\. Supported architectures: (.+?)\\.\\\\n\\\\n(.+?)","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"npm/codewhale/scripts/artifacts.js","lineNumber":84,"sourceCode":"};\n\nfunction detectBinaryNames() {\n  const rawPlatform = os.platform();\n  const platform = PLATFORM_ALIASES[rawPlatform] || rawPlatform;\n  const arch = os.arch();\n  const defaults = ASSET_MATRIX[platform];\n  if (!defaults) {\n    const supported = Object.keys(ASSET_MATRIX).map(p => `'${p}'`).join(', ');\n    throw new Error(\n      `Unsupported platform: ${rawPlatform}. Supported platforms: ${supported}.\\n\\n` +\n      unsupportedBuildHint(),\n    );\n  }\n  const pair = defaults[arch];\n  if (!pair) {\n    const supported = Object.keys(defaults).map(a => `'${a}'`).join(', ');\n    const hint = platform === \"linux\" && arch === \"riscv64\" ? unsupportedRiscvHint() : unsupportedBuildHint();\n    throw new Error(\n      `Unsupported architecture: ${arch} on platform ${platform}. ` +\n      `Supported architectures: ${supported}.\\n\\n` +\n      hint,\n    );\n  }\n  return {\n    platform,\n    arch,\n    codewhale: pair[0],\n    codew: pair[1],\n  };\n}\n\nfunction unsupportedBuildHint() {\n  return [\n    \"No prebuilt binary is available for this platform/architecture combo.\",\n    \"You can still run codewhale by building from source with Cargo (single binary):\",\n    \"\",","sourceCodeStart":66,"sourceCodeEnd":102,"githubUrl":"https://github.com/Hmbown/CodeWhale/blob/8880682c63083a91624de936797efa3ce9e498fd/npm/codewhale/scripts/artifacts.js#L66-L102","documentation":"Error \"Unsupported architecture: ${arch} on platform ${platform}. Supported architectures: ${supported}.\\n\\n${hint}\" thrown in Hmbown/CodeWhale.","triggerScenarios":"Thrown at npm/codewhale/scripts/artifacts.js:84 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":"8880682c63083a91624de936797efa3ce9e498fd","analyzedAt":"2026-08-16T11:31:27.956Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}