{"record":{"id":"5d5d3006620bd0a1","repo":"zed-industries/zed","slug":"pylsp-mypy-installation-failed","errorCode":null,"errorMessage":"pylsp-mypy installation failed","messagePattern":"pylsp-mypy installation failed","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/languages/src/python.rs","lineNumber":2004,"sourceCode":"        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\n                    .success(),\n                \"pylsp-mypy installation failed\"\n            );\n            let pylsp = venv.join(BINARY_DIR).join(\"pylsp\");\n            ensure!(\n                delegate.which(pylsp.as_os_str()).await.is_some(),\n                \"pylsp installation was incomplete\"\n            );\n            Ok(LanguageServerBinary {\n                path: pylsp,\n                env: None,","sourceCodeStart":1986,"sourceCodeEnd":2022,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/languages/src/python.rs#L1986-L2022","documentation":"The follow-up pip install of pylsp-mypy into the managed venv failed with a non-success status, after python-lsp-server itself installed. Same failure class as other pip installs: network, resolution, or environment issues.","triggerScenarios":"Thrown at crates/languages/src/python.rs:2004 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the install; transient PyPI/network failures are common","Install pylsp-mypy manually in the venv to inspect the underlying pip error"],"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-14T00:17:10.932Z"}