Title: Intellisense doesnt work for all Pytorch methods · Issue #1098 · microsoft/python-language-server · GitHub
Open Graph Title: Intellisense doesnt work for all Pytorch methods · Issue #1098 · microsoft/python-language-server
X Title: Intellisense doesnt work for all Pytorch methods · Issue #1098 · microsoft/python-language-server
Description: Seyyed Hossein Hasanpour (@Coderx7) commented on Wed May 15 2019 Environment data VS Code version: 1.33.1/1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and version: Windows_NT x64 10.0.17763 Python ve...
Open Graph Description: Seyyed Hossein Hasanpour (@Coderx7) commented on Wed May 15 2019 Environment data VS Code version: 1.33.1/1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and vers...
X Description: Seyyed Hossein Hasanpour (@Coderx7) commented on Wed May 15 2019 Environment data VS Code version: 1.33.1/1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and vers...
Opengraph URL: https://github.com/microsoft/python-language-server/issues/1098
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Intellisense doesnt work for all Pytorch methods","articleBody":"@Coderx7 commented on [Wed May 15 2019](https://github.com/microsoft/vscode-python/issues/5643)\n\n## Environment data\r\n\r\n- VS Code version: **1.33.1/1.34.0**\r\n- Extension version (available under the Extensions sidebar): **2019.4.12954**\r\n- OS and version: **Windows_NT x64 10.0.17763**\r\n- Python version (& distribution if applicable, e.g. Anaconda): **3.6.7 Anaconda3**\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): **N/A**\r\n- Relevant/affected Python packages and their versions: **Pytorch 1.0.0** and **1.1.0**\r\n\r\n## Expected behaviour\r\n\r\nIntellisense should work on Pytorch methods as well but it does not!\r\n\r\n## Actual behaviour\r\n\r\nIt wont work on methods such as `mm`, `matmul`, `mul`, `from_numpy`, `sum`, `randn`, `tensor`, `exp`, `empty` `arange`, `zeros`, `cat` ,etc as described [here ](https://github.com/pytorch/pytorch/issues/16996) in details.\r\n\r\n## Steps to reproduce:\r\n1. Simply try to use one of the aforementioned torch methods such as `sum`, `empty`,`randn`,`tensor`,etc\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\nStarting Jedi Python language engine.\r\n##########Linting Output - pylint##########\r\n************* Module lesson4_1\r\n9,19,error,no-member:Module 'torch' has no 'exp' member\r\n15,11,error,no-member:Module 'torch' has no 'randn' member\r\n16,10,error,no-member:Module 'torch' has no 'randn_like' member\r\n17,7,error,no-member:Module 'torch' has no 'randn' member\r\n20,4,error,no-member:Module 'torch' has no 'sum' member\r\n23,0,error,no-member:Module 'torch' has no 'empty' member\r\n\r\n----------------------------------------------------------------------\r\n\r\nYour code has been rated at -11.43/10 (previous run: -11.43/10, +0.00)\r\n``` \r\n\n\n---\n\n@DonJayamanne commented on [Thu May 16 2019](https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493269706)\n\nPlease could you try switching to the `Language Server`.\r\nPlease check here for instructions https://github.com/microsoft/vscode-python/issues/3977\r\n\r\nLet me know whether this resolves the problem for you.\r\n\n\n---\n\n@Coderx7 commented on [Thu May 16 2019](https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493327549)\n\n@DonJayamanne : I had a look at the link you provided. the problem is I cant find a way to install Language Server, as the instructions given there doesn't work for me. \r\nI dont have a `Language Server` folder, to remove in first place! \r\nThis is how my extension directory looks like : \r\n\r\nand this is the contents of `ms-python.python` folder : \r\n\r\n\r\nI just updated the VSCode to the latest version couple of hours ago and this has not changed (i.e. no language server is installed)\r\nI'd appreciate any feedback on how to get that installed so I can give you the result you need. \r\n\r\n\n\n---\n\n@DonJayamanne commented on [Thu May 16 2019](https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493335164)\n\nAll you need to do is:\r\n> Go into your settings.json, set \"python.jediEnabled\": false.\n\n---\n\n@Coderx7 commented on [Fri May 17 2019](https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493361716)\n\nThanks, I did so and language server seem to have its own share of issues, while the mentioned methods now show up in intellisense, the presentation is different and more importantly, intellisense doesnt work flawlessly here either, here is a demonstration show casing the issues: \r\n\r\n\r\n(side note: jediEnabled presentation/look is much more desirable than what is being provided by language server! apart from its bugs! I myself prefer jediEnabled over language sever)\r\n\n\n---\n\n@DonJayamanne commented on [Fri May 17 2019](https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493518731)\n\n> here is a demonstration show casing the issues:\r\n\r\nPlease note, you have `jedi` enabled. Please change the value to `false`.\r\nOnce done, please provide an animated gif as done previously. Thanks a lot.\r\n\r\n\n\n---\n\n@Coderx7 commented on [Fri May 17 2019](https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493520013)\n\n@DonJayamanne In the gif I posted above, I tested both scenarios, both with jediEnabled set to true and false! \r\nJust watch the whole gif to the end and you'll see the difference between the two. \r\nI start with JediEnabled and show how it works, and then disable it and show how language server works\n\n---\n\n@DonJayamanne commented on [Fri May 17 2019](https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493551270)\n\nWhen using Jedi, the auto completion list is provided by an external package and we do not have much control over that. Please feel free to report an issue on their repo https://github.com/davidhalter/jedi.\r\n\r\nOn the other hand the language server is something that's built by us.\r\nHence I'll be moving this issue to the language server repo so they can address the issues/concerns you have.\n\n","author":{"url":"https://github.com/DonJayamanne","@type":"Person","name":"DonJayamanne"},"datePublished":"2019-05-17T18:21:34Z","url":"https://github.com/microsoft/python-language-server/issues/1098"}
| 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:ed1b1a3a-e57b-060b-abb0-72d39ffce648 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E386:2826BD:506A0C:694877:6AFE668F |
| html-safe-nonce | 233dae4bdb4044b0633e27b23a52c6042cd81d5e7fbb3777eabec61e1a0aefb2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzg2OjI4MjZCRDo1MDZBMEM6Njk0ODc3OjZBRkU2NjhGIiwidmlzaXRvcl9pZCI6IjY4ODgxNjkwNzEwODczNDczNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 56d0be414ed9a84f4cb09bdcb13469ce80ffa96aa76fef86e8cd8d548d0d66b9 |
| hovercard-subject-tag | issue:445562397 |
| 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/1098/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0ff3feecaf187dcb0fea10bce01472fe5def850cc4318e02778bb09e8aced3d9/microsoft/python-language-server/issues/1098 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0ff3feecaf187dcb0fea10bce01472fe5def850cc4318e02778bb09e8aced3d9/microsoft/python-language-server/issues/1098 |
| og:image:alt | Seyyed Hossein Hasanpour (@Coderx7) commented on Wed May 15 2019 Environment data VS Code version: 1.33.1/1.34.0 Extension version (available under the Extensions sidebar): 2019.4.12954 OS and vers... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DonJayamanne |
| 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