{"record":{"id":"64570e016355691c","repo":"typst/typst","slug":"self-updating-is-not-enabled-for-this-executable","errorCode":null,"errorMessage":"self-updating is not enabled for this executable, please update with the package manager or mechanism used for initial installation","messagePattern":"self-updating is not enabled for this executable, please update with the package manager or mechanism used for initial installation","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/typst-cli/src/main.rs","lineNumber":141,"sourceCode":"                serde_json::to_string_pretty(data).map_err(|e| eco_format!(\"{e}\"))\n            } else {\n                serde_json::to_string(data).map_err(|e| eco_format!(\"{e}\"))\n            }\n        }\n        SerializationFormat::Yaml => {\n            serde_yaml::to_string(data).map_err(|e| eco_format!(\"{e}\"))\n        }\n    }\n}\n\n#[cfg(not(feature = \"self-update\"))]\nmod update {\n    use typst::diag::{StrResult, bail};\n\n    use crate::args::UpdateCommand;\n\n    pub fn update(_: &UpdateCommand) -> StrResult<()> {\n        bail!(\n            \"self-updating is not enabled for this executable, \\\n             please update with the package manager or mechanism \\\n             used for initial installation\",\n        )\n    }\n}\n","sourceCodeStart":123,"sourceCodeEnd":148,"githubUrl":"https://github.com/typst/typst/blob/35417aa769ab9d699a60384f91082b09bc6ba421/crates/typst-cli/src/main.rs#L123-L148","documentation":"Sentinel error from the stub `update` function compiled when the `self-update` cargo feature is off: this Typst binary was built without self-update capability, so any `typst update` invocation unconditionally fails. It reflects the build configuration, not runtime conditions.","triggerScenarios":"Thrown at crates/typst-cli/src/main.rs:141 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Update Typst through the package manager used to install it (e.g. cargo, winget, brew, snap, or a distro package)","Download the latest release binary from GitHub manually","Install a build that ships the self-update feature"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35417aa769ab9d699a60384f91082b09bc6ba421","analyzedAt":"2026-08-17T21:03:48.984Z","contentChangedAt":"2026-08-17T21:03:48.984Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}