-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to find pylsp #21452
Comments
Occurs on mac too, can be ignored by disabling pylsp via settings
Running version 0.163.3 |
I'm getting the same problem on an M1 Mac on Zed version 0.166.1 (01883a4) where even if add "languages": {
"Python": {
"language_servers": ["!pylsp"]
}
} I get the error:
|
As a fix to the error my prior post, I suggest to remove and re-install the zed editor and then if you still get the error as I did, then do the following: cd ~/Library/Application\ Support/Zed/languages/pylsp
rm -rf pylsp-venv
virtualenv pylsp-venv
source pylsp-venv/bin/activate
pip install "python-lsp-server[all]" The pylsp error disappeared after the above. |
Hello everyone! :D I had the same problem on windows 11 and I made a PR with a simple change to make it work, at least on windows 11. The PR: #22587 If you try it and it fails let me know and I'll check it again. |
Closes #ISSUE - #21452 Describe the bug / provide steps to reproduce it Language server error: pylsp failed to spawn command. path: "C:\Users\AppData\Local\Zed\languages\pylsp\pylsp-venv\bin\pylsp", working directory: "D:\Coding\Python", args: [] -- stderr-- Environment - Windows 11 - python Release Notes: - Windows: Fixed the path building used to run `pip` commands in the venv generated on Windows 11. --------- Co-authored-by: Marshall Bowers <[email protected]>
On Arch Linux I fixed this by installing python-lsp-server from the package manager. |
Based on the python #21452 and PR #22587 I found the same problem with go on windows. Describe the bug / provide steps to reproduce it Language server error: gopls The system cannot find the file specified. (os error 2) -- stderr-- [ERROR project::lsp_store] Failed to start language server "gopls": The system cannot find the file specified. (os error 2) [ERROR project::lsp_store] server stderr: "" Environment Windows 11 Go Release Notes: - Windows: Fixed `gopls` path construction on Windows 11. --------- Co-authored-by: Marshall Bowers <[email protected]>
have this issue as well, on macOS |
This is a version mismatch with the pylsp-venv wheels, if you delete it will auto rebuild next launch and resolve itself. delete: They probably need to add a check of the versions on startup and rebuild on mismatch. |
What is the Mac path? |
I had the same problem on Linux (Ubuntu/Mint). @shakfu 's OSX answer worked for me after changing the application path to
|
The Mac path is here:
I faced this issue and did as was suggested by @Phelsong, deleted |
Can reproduce on my mac as well in zed preview 175.3, and deleting as suggesting above worked. But shouldn't zed take care of this @osiewicz ? |
Check for existing issues
Describe the bug / provide steps to reproduce it
Language server error: pylsp
failed to spawn command. path: "C:\Users\AppData\Local\Zed\languages\pylsp\pylsp-venv\bin\pylsp", working directory: "D:\Coding\Python", args: []
-- stderr--
Environment
python
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your Zed.log file to this issue.
Zed.log
The text was updated successfully, but these errors were encountered: