{"record":{"id":"941863a1b35936a6","repo":"bevyengine/bevy","slug":"currently-caching-is-only-supported-for-scene-ass","errorCode":null,"errorMessage":"Currently, caching is only supported for scene assets. Please remove the ':' prefix for now.","messagePattern":"Currently, caching is only supported for scene assets\\. Please remove the ':' prefix for now\\.","errorType":"validation","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"crates/bevy_scene/macros/src/bsn/parse.rs","lineNumber":221,"sourceCode":"                        }\n                    } else {\n                        if input.peek(Dot) {\n                            let dot_expr = parse_extended_dot_expression(input)?;\n                            BsnEntry::TemplateValue(quote! {#path #dot_expr})\n                        } else {\n                            BsnEntry::TemplateValue(path.into_token_stream())\n                        }\n                    }\n                }\n            }\n        })\n    }\n}\nimpl Parse for BsnSceneList {\n    fn parse(input: ParseStream) -> Result<Self> {\n        let content;\n        bracketed!(content in input);\n        Ok(BsnSceneList(content.parse::<BsnSceneListItems>()?))\n    }\n}\n\nimpl Parse for BsnSceneListItems {\n    fn parse(input: ParseStream) -> Result<Self> {\n        let mut scenes = Vec::new();\n        let mut commas = Vec::new();\n        loop {\n            if input.is_empty() {\n                break;\n            }\n            let value = input.parse::<BsnSceneListItem>()?;\n            scenes.push(value);\n            if input.is_empty() {\n                break;\n            }\n\n            // Try parsing without a comma or -- separator first. This makes autocomplete","sourceCodeStart":203,"sourceCodeEnd":239,"githubUrl":"https://github.com/bevyengine/bevy/blob/a62cce8c05ceacd3bd102e678c83e2b42e5dfbe2/crates/bevy_scene/macros/src/bsn/parse.rs#L203-L239","documentation":"In BsnScene::parse, the ':' cache prefix is consumed first; if the next token is NOT a string literal (the scene-asset form), the parser immediately rejects it with this message. Caching is currently implemented only for scene assets (\":\\\"path.glb\\\"\"); the source comment notes broader caching is planned and this guard block exists to be removed once real caching lands.","triggerScenarios":"Prefixing any non-asset scene form with ':' — e.g. :{ some_expr }, :@MySceneComponent, or :some_function() — inside bsn!/bsn_list!.","commonSituations":"Assuming BSN caching works for inline expressions or scene components because it works for asset paths; migrating macros where ':' was used as a namespace separator; early adoption of BSN syntax while caching support is partial.","solutions":["Remove the ':' prefix — only string-literal scene assets can be cached today","If you wanted a cached asset, make the entry a string literal: :\"scene.glb#Scene0\""],"exampleFix":"// before\nbsn!(:{ my_scene_expr });\n\n// after\nbsn!({ my_scene_expr });","handlingStrategy":"validation","validationCode":"// Rule to enforce before writing BSN: ':' may only precede a string literal\n// scene asset path. Anything else must be written without the prefix.","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Reserve ':' strictly for :\"asset.scene\" forms until broader caching ships","Write expressions, function calls, and @components without any prefix"],"tags":["bevy","bsn","proc-macro","scene-caching","compile-error"],"backgroundTag":"proc-macro-syntax-error","analyzedSha":"a62cce8c05ceacd3bd102e678c83e2b42e5dfbe2","analyzedAt":"2026-08-20T16:12:39.808Z","contentChangedAt":"2026-08-20T16:12:39.808Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}