numpy's function prompt does not work correctly with Microsoft language server
zhiyiYo opened this issue · 3 comments
zhiyiYo commented
Environment data
- VS Code version: 1.50.1(user setup)
- Extension version (available under the Extensions sidebar): v2020.10.332292344
- OS and version: Windows_NT x64 10.0.19042
- Python version (& distribution if applicable, e.g. Anaconda): 3.8.6 64-bit
- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A
- Relevant/affected Python packages and their versions: numpy==1.19.2
- Value of the
python.languageServer
setting: "python.languageServer": "Microsoft"
Expected behaviour
I hope np.arange
can get the function prompt like np.argmax
Actual behaviour
Intellisense dosen't work correctly for np.arange
, I can't see any function prompt
Logs
Output for Python
in the Output
panel (View
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
XXX
karthiknadig commented
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.
zhiyiYo commented
@karthiknadig Thank you for your reply. I have switched the language server to Pylance, but encountered the same problem.
Expected behaviour
Actual behaviour
jakebailey commented
For Pylance, see microsoft/pylance-release#150.