{"record":{"id":"4b80a67132fbcbaf","repo":"zed-industries/zed","slug":"python-lsp-server-all-installation-failed","errorCode":null,"errorMessage":"python-lsp-server[all] installation failed","messagePattern":"python-lsp-server\\[all\\] installation failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/languages/src/python.rs","lineNumber":1993,"sourceCode":"        _: &Arc<dyn LspAdapterDelegate>,\n        _: bool,\n        _: &mut AsyncApp,\n    ) -> Result<()> {\n        Ok(())\n    }\n\n    fn fetch_server_binary(\n        &self,\n        _: (),\n        _: PathBuf,\n        delegate: &Arc<dyn LspAdapterDelegate>,\n    ) -> impl Send + Future<Output = Result<LanguageServerBinary>> + use<> {\n        let delegate = delegate.clone();\n\n        async move {\n            let venv = Self::ensure_venv(delegate.as_ref()).await?;\n            let pip_path = venv.join(BINARY_DIR).join(\"pip3\");\n            ensure!(\n                util::command::new_command(pip_path.as_path())\n                    .arg(\"install\")\n                    .arg(\"python-lsp-server[all]\")\n                    .arg(\"--upgrade\")\n                    .output()\n                    .await?\n                    .status\n                    .success(),\n                \"python-lsp-server[all] installation failed\"\n            );\n            ensure!(\n                util::command::new_command(pip_path)\n                    .arg(\"install\")\n                    .arg(\"pylsp-mypy\")\n                    .arg(\"--upgrade\")\n                    .output()\n                    .await?\n                    .status","sourceCodeStart":1975,"sourceCodeEnd":2011,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/languages/src/python.rs#L1975-L2011","documentation":"Raised in the python-lsp-server adapter when the `pip install python-lsp-server[all]` step inside the managed venv fails (the pip3 command exited non-zero). The language server binary was never installed, so fetch_server_binary aborts and the LSP cannot start.","triggerScenarios":"Thrown at crates/languages/src/python.rs:1993 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the language server install after checking network connectivity","Run 'pip3 install python-lsp-server[all] --upgrade' manually in the Zed venv to see the pip error","Ensure Python/venv prerequisites and pip are available and up to date"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"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"}