{"record":{"id":"d0c40fa4ecdca5a5","repo":"zed-industries/zed","slug":"context-server-configuration-not-available-prior","errorCode":null,"errorMessage":"`context_server_configuration` not available prior to v0.5.0","messagePattern":"`context_server_configuration` not available prior to v0\\.5\\.0","errorType":"validation","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"crates/extension_host/src/wasm_host/wit.rs","lineNumber":985,"sourceCode":"                ext.call_context_server_configuration(store, &context_server_id, project)\n                    .await\n            }\n            Extension::V0_6_0(ext) => {\n                ext.call_context_server_configuration(store, &context_server_id, project)\n                    .await\n            }\n            Extension::V0_5_0(ext) => {\n                ext.call_context_server_configuration(store, &context_server_id, project)\n                    .await\n            }\n            Extension::V0_0_1(_)\n            | Extension::V0_0_4(_)\n            | Extension::V0_0_6(_)\n            | Extension::V0_1_0(_)\n            | Extension::V0_2_0(_)\n            | Extension::V0_3_0(_)\n            | Extension::V0_4_0(_) => {\n                anyhow::bail!(\"`context_server_configuration` not available prior to v0.5.0\");\n            }\n        }\n    }\n\n    pub async fn call_suggest_docs_packages(\n        &self,\n        store: &mut Store<WasmState>,\n        provider: &str,\n    ) -> Result<Result<Vec<String>, String>> {\n        match self {\n            Extension::V0_8_0(ext) => ext.call_suggest_docs_packages(store, provider).await,\n            Extension::V0_6_0(ext) => ext.call_suggest_docs_packages(store, provider).await,\n            Extension::V0_5_0(ext) => ext.call_suggest_docs_packages(store, provider).await,\n            Extension::V0_4_0(ext) => ext.call_suggest_docs_packages(store, provider).await,\n            Extension::V0_3_0(ext) => ext.call_suggest_docs_packages(store, provider).await,\n            Extension::V0_2_0(ext) => ext.call_suggest_docs_packages(store, provider).await,\n            Extension::V0_1_0(ext) => ext.call_suggest_docs_packages(store, provider).await,\n            Extension::V0_0_1(_) | Extension::V0_0_4(_) | Extension::V0_0_6(_) => {","sourceCodeStart":967,"sourceCodeEnd":1003,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/extension_host/src/wasm_host/wit.rs#L967-L1003","documentation":"call_context_server_configuration dispatches context-server configuration through the WIT interface only from v0.5.0 onward. Extensions compiled against any of v0.0.1 through v0.4.0 hit the bail arm with this message when the host asks them for context server configuration.","triggerScenarios":"An extension exposing a context server but built with zed_extension_api < 0.5.0 receives a call_context_server_configuration dispatch from a newer Zed.","commonSituations":"Zed gained context-server configuration support and old extension builds remain installed; extension authors copying an old template project with an outdated zed_extension_api pin.","solutions":["Raise zed_extension_api to >= 0.5.0 in the extension's Cargo.toml and rebuild.","Reinstall the rebuilt extension locally or publish a new version.","Clean out old installed copies of the extension so only the rebuilt wasm is dispatched."],"exampleFix":"# before (extension Cargo.toml)\n[dependencies]\nzed_extension_api = \"0.4.0\"\n\n# after\n[dependencies]\nzed_extension_api = \"0.5.0\"","handlingStrategy":"validation","validationCode":"let api_version = extension_host::parse_wasm_extension_version(extension_id, &wasm_bytes)?;\nif api_version < semver::Version::new(0, 5, 0) {\n    // cannot ask this extension for context server configuration\n    return Ok(None);\n}","typeGuard":"fn supports_context_server_configuration(ext: &Extension) -> bool {\n    !matches!(\n        ext,\n        Extension::V0_0_1(_)\n            | Extension::V0_0_4(_)\n            | Extension::V0_0_6(_)\n            | Extension::V0_1_0(_)\n            | Extension::V0_2_0(_)\n            | Extension::V0_3_0(_)\n            | Extension::V0_4_0(_)\n    )\n}","tryCatchPattern":null,"preventionTips":["Keep context-server extensions on zed_extension_api >= 0.5.0.","Parse and store the wasm api-version at load time; consult it before every versioned dispatch.","Automate extension rebuilds when the host's WIT interfaces gain exports."],"tags":["wasm","extension","api-version","context-server","configuration"],"backgroundTag":"api-version-unsupported","analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}