Title: Autocompletion doesn't work for some numpy's functions · Issue #1621 · microsoft/python-language-server · GitHub
Open Graph Title: Autocompletion doesn't work for some numpy's functions · Issue #1621 · microsoft/python-language-server
X Title: Autocompletion doesn't work for some numpy's functions · Issue #1621 · microsoft/python-language-server
Description: I have searched issues and found microsoft/vscode-python#679. But it seems out of date since it was updated on 11 Jul 2018. Environment data VS Code version: 1.38.1 Extension version (available under the Extensions sidebar): 2019.9.34911...
Open Graph Description: I have searched issues and found microsoft/vscode-python#679. But it seems out of date since it was updated on 11 Jul 2018. Environment data VS Code version: 1.38.1 Extension version (available und...
X Description: I have searched issues and found microsoft/vscode-python#679. But it seems out of date since it was updated on 11 Jul 2018. Environment data VS Code version: 1.38.1 Extension version (available und...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1621
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Autocompletion doesn't work for some numpy's functions","articleBody":"> I have searched issues and found microsoft/vscode-python#679. But it seems out of date since it was updated on 11 Jul 2018.\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.38.1\r\n- Extension version (available under the Extensions sidebar): 2019.9.34911\r\n- OS and version: Windows_NT x64 10.0.18362\r\n- Python version (& distribution if applicable, e.g. Anaconda): 3.7.2 (64-bit)\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv\r\n- Relevant/affected Python packages and their versions: \r\n - pyright 1.0.68\r\n - Visual Studio IntelliCode 1.1.9\r\n- Jedi or Language Server? (i.e. what is `\"python.jediEnabled\"` set to; more info microsoft/vscode-python#3977): `\"python.jediEnabled\": false`\r\n\r\n## Expected behaviour\r\n\r\nI expect to see what parameters I need to fill and what will those functions return to me.\r\n\r\n## Actual behaviour\r\n\r\nAfter I imported numpy in the way `import numpy as np`, I tried to use some math functions. When I tried to type in `np.sin`, nothing about sin appeared. I could only see other methods like `_sanity_check`. This happened to cos and exp. But for matmul, sum, dot, autocompletion and hints sometimes work well. (It seems that after vs intellicode run for a moment, they work well for matmul. At the buttom of `how to use` is `matmul: unknown`)\r\n\r\nBesides, when I moved the cursor onto `np.sin()`, it showed `sin: unknown`\r\n\r\np.s. On another computer which I don't install visual studio intellicode, autocompletion works. But it only tells me sin and matmul are ufunc, which is no use.\r\n\r\n## Steps to reproduce:\r\n1. `import numpy as np`\r\n2. try to type in `np.sin`\r\n\r\n## Logs\r\nOutput for `Python` in the `Output` panel (`View`→`Output`, change the drop-down the upper-right of the `Output` panel to `Python`)\r\n\r\n```\r\nUser belongs to experiment group 'AlwaysDisplayTestExplorer - experiment'\r\nUser belongs to experiment group 'ShowPlayIcon - start'\r\n> conda --version\r\n> pyenv root\r\n> python3.7 -c \"import sys;print(sys.executable)\"\r\n> python3.6 -c \"import sys;print(sys.executable)\"\r\n> python3 -c \"import sys;print(sys.executable)\"\r\n> python2 -c \"import sys;print(sys.executable)\"\r\n> python -c \"import sys;print(sys.executable)\"\r\n> py -3.7 -c \"import sys;print(sys.executable)\"\r\n> py -3.6 -c \"import sys;print(sys.executable)\"\r\n> py -3 -c \"import sys;print(sys.executable)\"\r\n> py -2 -c \"import sys;print(sys.executable)\"\r\n> d:\\Program\\python_hello_world\\venv\\Scripts\\python.exe -c \"import sys;print(sys.executable)\"\r\n> conda info --json\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe c:\\Users\\kpcam\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe c:\\Users\\kpcam\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe c:\\Users\\kpcam\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> ~\\AppData\\Local\\Microsoft\\WindowsApps\\python3.exe c:\\Users\\kpcam\\.vscode\\extensions\\ms-python.python-2019.9.34911\\pythonFiles\\interpreterInfo.py\r\n> d:\\Program\\python_hello_world\\venv\\Scripts\\python.exe -m pep8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s d:\\Program\\python_hello_world\\main.py\r\ncwd: d:\\Program\\python_hello_world\r\n> d:\\Program\\python_hello_world\\venv\\Scripts\\python.exe -m pep8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s d:\\Program\\python_hello_world\\main.py\r\ncwd: d:\\Program\\python_hello_world\r\nStarting Microsoft Python language server.\r\n##########Linting Output - pep8##########\r\n> conda info --json\r\n> conda --version\r\n> d:\\Program\\python_hello_world\\venv\\Scripts\\python.exe -m yapf --diff d:\\Program\\python_hello_world\\main.py.99ad77dd49b9b85fe32975c34ba70b47.py\r\ncwd: d:\\Program\\python_hello_world\r\n> d:\\Program\\python_hello_world\\venv\\Scripts\\python.exe -m yapf --diff d:\\Program\\python_hello_world\\main.py.99ad77dd49b9b85fe32975c34ba70b47.py\r\ncwd: d:\\Program\\python_hello_world\r\n> d:\\Program\\python_hello_world\\venv\\Scripts\\python.exe -m pep8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s d:\\Program\\python_hello_world\\main.py\r\ncwd: d:\\Program\\python_hello_world\r\n> d:\\Program\\python_hello_world\\venv\\Scripts\\python.exe -m pep8 --format=%(row)d,%(col)d,%(code).1s,%(code)s:%(text)s d:\\Program\\python_hello_world\\main.py\r\ncwd: d:\\Program\\python_hello_world\r\n##########Linting Output - pep8##########\r\n\r\n```\r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`; turn on source maps to make any tracebacks be useful by running `Enable source map support for extension debugging`)\r\n\r\n```\r\nXXX\r\n```\r\n\r\n> Don't know what I need to paste here. There a lot of logs in `Console` under the `Developer Tools`\r\n\r\n---\r\n\r\nI have tried to uninstall python extension and reinstrall, nothing happen.\r\n\r\nI find a solution, using Jedi. But I want to try coding with visual studio intellicode, which needs me to use MS language server","author":{"url":"https://github.com/duskmoon314","@type":"Person","name":"duskmoon314"},"datePublished":"2019-10-03T17:38:10Z","url":"https://github.com/microsoft/python-language-server/issues/1621"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:efee6f9a-9bf7-5498-d47d-78597f1a2b65 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F22:2A16C9:509936:69CE34:6AFE6958 |
| html-safe-nonce | a79702fecc7226f5cab5a513d39109f7920de1e57c60d6403bfcf6652424734f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjIyOjJBMTZDOTo1MDk5MzY6NjlDRTM0OjZBRkU2OTU4IiwidmlzaXRvcl9pZCI6Ijg1Mzk2ODc3NzEzOTkxNTQwMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0734ec1cd52c2bd709bb0968cbbc962f07eb36d04bd0f9f6261dbc59a1d29766 |
| hovercard-subject-tag | issue:502281380 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1621/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2626e3bc4c536326741f090972e93b44ab3647c8be927dd0b26d2c0393a45a72/microsoft/python-language-server/issues/1621 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2626e3bc4c536326741f090972e93b44ab3647c8be927dd0b26d2c0393a45a72/microsoft/python-language-server/issues/1621 |
| og:image:alt | I have searched issues and found microsoft/vscode-python#679. But it seems out of date since it was updated on 11 Jul 2018. Environment data VS Code version: 1.38.1 Extension version (available und... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | duskmoon314 |
| hostname | github.com |
| expected-hostname | github.com |
| None | b3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 145901977 |
| octolytics-dimension-repository_nwo | microsoft/python-language-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 145901977 |
| octolytics-dimension-repository_network_root_nwo | microsoft/python-language-server |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4a10310af51a1bfffbedc4fd81cb582acf0cb0ff |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width