Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

windows have not mason/packages/python-lsp-server/venv/bin/python #778

Closed
2 tasks done
nkta3m opened this issue Jun 1, 2023 · 4 comments · Fixed by #779 or TonyWu20/nvimdots#19
Closed
2 tasks done

windows have not mason/packages/python-lsp-server/venv/bin/python #778

nkta3m opened this issue Jun 1, 2023 · 4 comments · Fixed by #779 or TonyWu20/nvimdots#19
Labels
bug Something isn't working lsp LSP related issues pylsp Python LSP Server related issues

Comments

@nkta3m
Copy link

nkta3m commented Jun 1, 2023

Version confirmation

  • Confirm

Following prerequisites

  • Confirm

Neovim version

nvim 0.9

Operating system/version

windows 10

Terminal name/version

Alacritty

$TERM environment variable

No response

Branch info

main (Default/Latest)

Fetch Preferences

HTTPS (use_ssh = false)

Affected language servers

python

How to reproduce the issue

windows下不能自动安装pylsp插件

Actual behavior

windows下不能自动安装pylsp插件

Expected behavior

windows下自动安装pylsp插件
我觉得是这个问题:
lsp.lua:
local venv = vim.fn.stdpath("data") .. "/mason/packages/python-lsp-server/venv"
require("plenary.job")
:new({
command = venv .. "/bin/python",
但是windows下的目录是
AppData\Local\nvim-data\mason\packages\python-lsp-server\venv\Scripts\python

如果直接修改这个,linux下又要改,有没有跨平台的做法

Support info

nothing

Logs

No response

Additional information

2023-06-01 10_18_40-Alacritty

@nkta3m nkta3m added bug Something isn't working lsp LSP related issues labels Jun 1, 2023
@Groveer
Copy link
Contributor

Groveer commented Jun 1, 2023

Without the problem on my Win10,,you kan use :checkhealth for check python env.

@nkta3m
Copy link
Author

nkta3m commented Jun 1, 2023

你的目录有bin吗?我的为啥没有?
2023-06-01 12_39_16-venv

@Groveer
Copy link
Contributor

Groveer commented Jun 1, 2023

你的目录有bin吗?我的为啥没有? 2023-06-01 12_39_16-venv

same as u, if u cannot install python lsp, u can look mason log :MasonLog

@nkta3m
Copy link
Author

nkta3m commented Jun 1, 2023

我重新安装pylsp,虽然还是会显示错误,但实际是安装成功的,但是plugin还是不能安装

ayamir added a commit that referenced this issue Jun 1, 2023
Signed-off-by: ayamir <lgt986452565@gmail.com>
@ayamir ayamir linked a pull request Jun 1, 2023 that will close this issue
ayamir added a commit that referenced this issue Jun 1, 2023
Signed-off-by: ayamir <lgt986452565@gmail.com>
singlemancombat pushed a commit to singlemancombat/nvim-config that referenced this issue Jun 1, 2023
csyJoy pushed a commit to csyJoy/nvimdots that referenced this issue Jun 4, 2023
bleedingfight pushed a commit to bleedingfight/nvimdots that referenced this issue Jun 22, 2023
@Jint-lzxy Jint-lzxy added the pylsp Python LSP Server related issues label Jun 28, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working lsp LSP related issues pylsp Python LSP Server related issues
Projects
None yet
3 participants