microsoft / python-language-server

Microsoft Language Server for Python
Apache License 2.0
912 stars 131 forks source link

IntelliSense is not working after latest update #2134

Open andreixk opened 3 years ago

andreixk commented 3 years ago

Environment data

[NOTE: If you suspect that your issue is related to the Microsoft Python Language Server (python.languageServer: 'Microsoft'), please download our new language server Pylance from the VS Code marketplace to see if that fixes your issue]

Expected behaviour

IntelliSense to show suggestions

Actual behaviour

image

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Create new document
  2. Set language to Python
  3. enter the following code:
    import os
    os.
  4. Press ctrl+space
luabud commented 3 years ago

Thanks for your feedback! We have recently released a new and more performant language server called Pylance which likely solves these issues you are reporting. You can download Pylance from the marketplace and install it alongside the core Python extension. Because our team's development efforts have shifted to support the new language server, we'd encourage you to try it out.

In the meantime, I'll transfer this issue over to the Microsoft Python Language Server repo for tracking. If you try out Pylance and this issue persists, you can open an issue on the pylance-release repo.

saschametz commented 3 years ago

@luabud Thanks for the tip with Pylance. I had an issue with the latest update that marked all imports as "unresolved import". After installing the extension it works.