Skip to content

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

@nkta3m

Description

@nkta3m

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinglspLSP related issuespylspPython LSP Server related issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions