{"record":{"id":"ca32a8c0f5ea80e6","repo":"zed-industries/zed","slug":"pylsp-installation-was-incomplete","errorCode":null,"errorMessage":"pylsp installation was incomplete","messagePattern":"pylsp installation was incomplete","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/languages/src/python.rs","lineNumber":2016,"sourceCode":"                    .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,\n                arguments: vec![],\n            })\n        }\n    }\n\n    async fn cached_server_binary(\n        &self,\n        _: PathBuf,\n        delegate: &dyn LspAdapterDelegate,\n    ) -> Option<LanguageServerBinary> {\n        let venv = self.base_venv(delegate).await.ok()?;\n        let pylsp = venv.join(BINARY_DIR).join(\"pylsp\");","sourceCodeStart":1998,"sourceCodeEnd":2034,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/languages/src/python.rs#L1998-L2034","documentation":"Raised in pylsp fetch_server_binary(): the required pylsp-mypy plugin install is verified after the main install and failed, so the venv's pylsp installation is incomplete and the binary should not be used.","triggerScenarios":"Thrown at crates/languages/src/python.rs:2016 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Delete the venv and let Zed re-provision it from scratch","Check the venv bin directory for the expected entrypoint name/platform quirks","Verify pip reported success for the same environment Zed inspects"],"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"}