{"record":{"id":"d2e6ebc9e5d1833d","repo":"slint-ui/slint","slug":"slint-inlining-has-incorrect-value-must-be-either","errorCode":null,"errorMessage":"SLINT_INLINING has incorrect value. Must be either unset, 'true' or 'false'","messagePattern":"SLINT_INLINING has incorrect value\\. Must be either unset, 'true' or 'false'","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"internal/compiler/lib.rs","lineNumber":248,"sourceCode":"            let var = var.parse::<bool>().unwrap_or_else(|_|{\n                panic!(\"SLINT_EMBED_RESOURCES has incorrect value. Must be either unset, 'true' or 'false'\")\n            });\n            match var {\n                true => EmbedResourcesKind::EmbedAllResources,\n                false => EmbedResourcesKind::OnlyBuiltinResources,\n            }\n        } else {\n            match output_format {\n                #[cfg(feature = \"rust\")]\n                OutputFormat::Rust => EmbedResourcesKind::EmbedAllResources,\n                OutputFormat::Interpreter => EmbedResourcesKind::Nothing,\n                _ => EmbedResourcesKind::OnlyBuiltinResources,\n            }\n        };\n\n        let inline_all_elements = match std::env::var(\"SLINT_INLINING\") {\n            Ok(var) => var.parse::<bool>().unwrap_or_else(|_| {\n                panic!(\n                    \"SLINT_INLINING has incorrect value. Must be either unset, 'true' or 'false'\"\n                )\n            }),\n            // Currently, the interpreter needs the inlining to be on.\n            Err(_) => output_format == OutputFormat::Interpreter,\n        };\n\n        // The Slint SC generator flattens the exported component's element\n        // tree, so user-defined components must be inlined away. This\n        // overrides a SLINT_INLINING=false env override.\n        #[cfg(feature = \"slint-sc\")]\n        let inline_all_elements =\n            inline_all_elements || matches!(output_format, OutputFormat::SlintSc);\n\n        let const_scale_factor = std::env::var(\"SLINT_SCALE_FACTOR\")\n            .ok()\n            .and_then(|x| x.parse::<f32>().ok())\n            .filter(|f| *f > 0.);","sourceCodeStart":230,"sourceCodeEnd":266,"githubUrl":"https://github.com/slint-ui/slint/blob/3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016/internal/compiler/lib.rs#L230-L266","documentation":"Error \"SLINT_INLINING has incorrect value. Must be either unset, 'true' or 'false'\" thrown in slint-ui/slint.","triggerScenarios":"Thrown at internal/compiler/lib.rs:248 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set SLINT_INLINING to 'true' or 'false', or unset it.","Remove any other value such as '1' or 'yes'."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"3fd8f2ec03c2aa8a95d5f4b9daa299c7b8bf4016","analyzedAt":"2026-08-19T23:23:16.610Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}