{"record":{"id":"19579fd44cc7f0db","repo":"apple/pkl","slug":"inlinenotsupportedhere","errorCode":"inlineNotSupportedHere","errorMessage":"inlineNotSupportedHere","messagePattern":"inlineNotSupportedHere","errorType":"error_code","errorClass":"VmException","httpStatus":null,"severity":"error","filePath":"pkl-core/src/main/java/org/pkl/core/stdlib/xml/RendererNodes.java","lineNumber":193,"sourceCode":"    @Override\n    public void visitIntSeq(VmIntSeq value) {\n      cannotRenderTypeAddConverter(value);\n    }\n\n    @Override\n    protected void startDynamic(VmDynamic value) {\n      if (isXmlElement(value)) {\n        throw new VmExceptionBuilder()\n            .evalError(\"elementNotSupportedHere\")\n            .withProgramValue(\"Value\", value)\n            .build();\n      }\n    }\n\n    @Override\n    public void startTyped(VmTyped value) {\n      if (isXmlInline(value)) {\n        throw new VmExceptionBuilder()\n            .evalError(\"inlineNotSupportedHere\")\n            .withProgramValue(\"Value\", value)\n            .build();\n      }\n    }\n\n    // No-op for XML\n    @Override\n    protected void startListing(VmListing value) {}\n\n    // No-op for XML\n    @Override\n    protected void startMapping(VmMapping value) {}\n\n    // No-op for XML\n    @Override\n    protected void startList(VmList value) {}\n","sourceCodeStart":175,"sourceCodeEnd":211,"githubUrl":"https://github.com/apple/pkl/blob/f3efcbfc9b60d30053b0536d664948d7aa1b8673/pkl-core/src/main/java/org/pkl/core/stdlib/xml/RendererNodes.java#L175-L211","documentation":"While rendering XML, a `Typed` object recognized as an inline XML value (satisfies `isXmlInline`) appeared where the renderer cannot emit it. The renderer throws instead of producing malformed output.","triggerScenarios":"An Xml-inline class instance (from pkl-xml's `XmlInline` machinery) is visited in an unsupported position, e.g. as an attribute value or top-level in a mode that doesn't accept inline nodes.","commonSituations":"Mixing pkl-xml inline/element abstractions with the generic XML renderer output path; nesting inline nodes where only elements or text are allowed.","solutions":["Place the inline value where the renderer accepts it (inside element content)","Convert the inline node to a regular XmlElement-shaped Dynamic object","Render the value to a string first if only text is allowed at that position","Verify you are using the intended XML rendering entry point from pkl-xml"],"exampleFix":"// before\nattr = xmlInline(\"...\")   // inline value in attribute slot\n// after\ncontent { xmlInline(\"...\") }","handlingStrategy":"validation","validationCode":"function isInline(v: Any): Boolean = v is Typed && v.hasClassProperty(\"xmlInline\") // adapt to pkl-xml API","typeGuard":"function renderableHere(v: Any): Boolean = !(v is Typed) || !isXmlInlineValue(v)","tryCatchPattern":null,"preventionTips":["Use pkl-xml's documented element/inline APIs rather than mixing them ad hoc","Keep inline nodes inside element content","Check renderer entry points before custom XML output"],"tags":["xml","rendering","inline","pkl"],"backgroundTag":"unsupported-operation","analyzedSha":"f3efcbfc9b60d30053b0536d664948d7aa1b8673","analyzedAt":"2026-09-08T13:10:45.570Z","contentChangedAt":"2026-09-08T13:10:45.570Z","schemaVersion":2},"datasetVersion":"2026-09-14T16:17:12.679Z"}