{"record":{"id":"25fd8da1e40305ce","repo":"siyuan-note/siyuan","slug":"unsupported-frontend-s","errorCode":null,"errorMessage":"unsupported frontend [%s]","messagePattern":"unsupported frontend \\[(.+?)\\]","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"kernel/model/boot_appearance.go","lineNumber":715,"sourceCode":"\tfor _, frontend := range candidates {\n\t\tif frontend == \"all\" && len(manifestFrontends) == 0 {\n\t\t\tfor _, normalized := range []string{\"desktop\", \"mobile\"} {\n\t\t\t\tif !seen[normalized] {\n\t\t\t\t\tseen[normalized] = true\n\t\t\t\t\tfrontends = append(frontends, normalized)\n\t\t\t\t}\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\tnormalized := \"\"\n\t\tswitch frontend {\n\t\tcase \"desktop\":\n\t\t\tnormalized = \"desktop\"\n\t\tcase \"mobile\":\n\t\t\tnormalized = \"mobile\"\n\t\tdefault:\n\t\t\tif len(manifestFrontends) > 0 {\n\t\t\t\treturn nil, fmt.Errorf(\"unsupported frontend [%s]\", frontend)\n\t\t\t}\n\t\t\tcontinue\n\t\t}\n\t\tif !seen[normalized] {\n\t\t\tseen[normalized] = true\n\t\t\tfrontends = append(frontends, normalized)\n\t\t}\n\t}\n\tif len(frontends) == 0 && len(manifestFrontends) == 0 && len(pluginFrontends) == 0 {\n\t\tfrontends = append(frontends, \"desktop\", \"mobile\")\n\t}\n\tif len(frontends) == 0 {\n\t\treturn nil, errors.New(\"no supported frontend\")\n\t}\n\treturn frontends, nil\n}\n\nfunc validateOptionalBootAppearanceColor(color string) error {","sourceCodeStart":697,"sourceCodeEnd":733,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/9f775e8a12daef8255556097396f9b2739078892/kernel/model/boot_appearance.go#L697-L733","documentation":"normalizeBootAppearanceFrontends maps each declared frontend to a normalized value; only \"desktop\" and \"mobile\" are supported. When the manifest itself declares a frontend list (len(manifestFrontends) > 0) and one of its values is unrecognized, loading fails with this error naming the value. If the list comes only from the plugin default, unknown values are silently skipped instead.","triggerScenarios":"A boot appearance manifest with `frontends` containing a value other than \"desktop\" or \"mobile\" — e.g. \"desktop-window\", \"browser\", \"terminal\", or case variants like \"Desktop\".","commonSituations":"Authors copying frontend names from other plugin ecosystems; inventing names for a hypothetical third platform; typos or wrong casing in the manifest.","solutions":["Change the unsupported value in the manifest's frontends array to \"desktop\" or \"mobile\"","Fix case sensitivity — the match is exact lowercase","Remove the unsupported entry if the appearance targets only supported frontends"],"exampleFix":"// manifest.json before\n\"frontends\": [\"desktop\", \"desktop-window\"]\n// after\n\"frontends\": [\"desktop\"]","handlingStrategy":"validation","validationCode":"const SUPPORTED = new Set([\"desktop\", \"mobile\"]);\nfunction frontendsSupported(list) {\n  return (list ?? []).every(f => SUPPORTED.has(f));\n}","typeGuard":"function isSupportedFrontend(f) {\n  return f === \"desktop\" || f === \"mobile\";\n}","tryCatchPattern":"try {\n  await loadManifest(pkgPath);\n} catch (e) {\n  const m = String(e).match(/unsupported frontend \\[(.+)\\]/);\n  if (m) { /* rewrite manifest frontends for m[1] */ }\n}","preventionTips":["Use only \"desktop\" and \"mobile\" in manifest frontends","Lowercase values exactly — matching is case-sensitive","Do not invent platform names copied from other ecosystems"],"tags":["boot-appearance","frontend","validation"],"backgroundTag":"unsupported-enum-value","analyzedSha":"9f775e8a12daef8255556097396f9b2739078892","analyzedAt":"2026-09-19T03:17:15.984Z","contentChangedAt":"2026-09-19T03:17:15.984Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}