Skip to content

PyLance Language Server by microsoft does not work. Autoimport does not work too. #3216

Closed

Description

@nooobcoder

#3182
The autoimport feature in Pylance does not work on code-server. I know Pylance is in preview state, but it does not work at all on code-server. Works fine on VSCode though. I have sideloaded the extension from vsix as this is not available in the openvsix repository.
Pylance

Also, i have enabled the following entry in settings.json to enable the language server across my workspaces.
"python.languageServer": "Pylance"

Please bring a patch for this in the next major update. #1938

I think this has already been answered here somehow

Not only is redistribution not allowed, but even if installed by hand, Pylance will refuse to run on any unofficial build.

Isn't it wonderful that M$ now "loves open source"? /s

But, still why it should not work on code-server when it works on VSCode. It should work as code-server is a fork of VSCode right?

Attaching relevant screenshots below, please see that the logs of the language server are empty. Seems like the extension is not loading itself at all.

image

Thank You.
Ankur Paul

Activity

  1. oxy commented on Apr 26, 2021

    @oxy

    We cannot. Microsoft will not allow us to, and their license prohibits it.
    We do offer a fork of VSCode, but the license to the extension (and the extension itself) will only allow you to use it on the official Microsoft-provided binary builds, labelled "Visual Studio Code". I can't recommend bypassing this limitation either, because you'd be violating their license.

    The issue you linked to has more information.

  2. linuxd3v commented on Aug 1, 2023

    @linuxd3v

    Jedi language server works fine for me in selfhosted vscode.

    {
    "python.defaultInterpreterPath": "${workspaceFolder}/.venv/bin/python3",
    "python.languageServer": "Jedi"
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions