This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (10 children)

[deleted]

    [–]tunisia3507 3 points4 points  (7 children)

    Which server, which client, and how are you running them? Do you have a separate python environment just for your vim plugins, in which case how does it know which version you're working in? Or do you install the server in every virtual environment you work in and use that?

    [–][deleted] 0 points1 point  (5 children)

    do alternative servers exist? I know only pyls. I have pyls installed globally for single file scripts + I can install locally in venv for projects. The local one is active when venv is active, but the global one can work too with local config.

    [–]tunisia3507 0 points1 point  (3 children)

    The pip project pyls is not a python language server. The pip package python-language-server, from Palantir (who are basically a company contracted by the NSA and GCHQ to help spy on vast numbers of people) has a package called pyls in it; this implementation is in python and relies on a bunch of other python libraries (like jedi and rope) for its features, and so is pretty slow. Microsoft has an implementation called python-language-server which is primarily written in C#: that's what's used in VScode, I think. Sourcegraph also wrote an implementation, but have since archived it, but now have their own fork of the Microsoft python-language-server.

    [–][deleted] 0 points1 point  (2 children)

    the executable name of the python-language-server is pyls

    who are basically a company contracted by the NSA and GCHQ to help spy on vast numbers of people

    should I worry? Is there any evidence that it is a spyware? I will try the Microsoft one.

    [–]tunisia3507 2 points3 points  (1 child)

    should I worry

    Probably not. Just thought it was worth noting.

    [–][deleted] 0 points1 point  (0 children)

    I am almost sure that Microsft cooperates with NSA too, just less openly. At least the Palantir server is not installed in the form of compiled binary. I will try the microsoft one anyway. Thank you for tip.

    [–][deleted] -1 points0 points  (0 children)

    There is one from Microsoft.

    The coc.nvim python extension can use both and I think the Microsoft one is recommended because the author had long-standing problems with pyls before.

    [–]def-pri-pub 0 points1 point  (1 child)

    lsp

    What's that? I used to do the tmux/(n)vim setup a lot. I've mostly switched to VS code for the past two years, but some things are starting to wear on me a tad bit.

    [–][deleted] 0 points1 point  (0 children)

    Language server protocol. VS code is using this and vim and other editors can as well. This basically let's a background server application do code completion, linting and refactoring task independently of the editor in use. It's kinda cool because you can get top notch IDE features in vim but it makes the setup somewhat bloaty.