René's URL Explorer Experiment


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

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@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![image](https://user-images.githubusercontent.com/5382892/57905397-a70dd680-788b-11e9-902d-34a05c79b8b4.png)\r\nand this is the contents of `ms-python.python` folder : \r\n![image](https://user-images.githubusercontent.com/5382892/57905445-d7ee0b80-788b-11e9-9c24-1111dff7c9aa.png)\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![vscode_pytorchintellisense2](https://user-images.githubusercontent.com/5382892/57912315-45576780-789f-11e9-8734-96552eafcdd7.gif)\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-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ed1b1a3a-e57b-060b-abb0-72d39ffce648
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE386:2826BD:506A0C:694877:6AFE668F
html-safe-nonce233dae4bdb4044b0633e27b23a52c6042cd81d5e7fbb3777eabec61e1a0aefb2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzg2OjI4MjZCRDo1MDZBMEM6Njk0ODc3OjZBRkU2NjhGIiwidmlzaXRvcl9pZCI6IjY4ODgxNjkwNzEwODczNDczNDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac56d0be414ed9a84f4cb09bdcb13469ce80ffa96aa76fef86e8cd8d548d0d66b9
hovercard-subject-tagissue:445562397
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/python-language-server/1098/issue_layout
twitter:imagehttps://opengraph.githubassets.com/0ff3feecaf187dcb0fea10bce01472fe5def850cc4318e02778bb09e8aced3d9/microsoft/python-language-server/issues/1098
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0ff3feecaf187dcb0fea10bce01472fe5def850cc4318e02778bb09e8aced3d9/microsoft/python-language-server/issues/1098
og:image:altSeyyed 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameDonJayamanne
hostnamegithub.com
expected-hostnamegithub.com
Noneb3c0f155eafc27e60db6e254d1ffff0e072e9ab3b4018a5ee518797c19d89f86
turbo-cache-controlno-preview
go-importgithub.com/microsoft/python-language-server git https://github.com/microsoft/python-language-server.git
octolytics-dimension-user_id6154722
octolytics-dimension-user_loginmicrosoft
octolytics-dimension-repository_id145901977
octolytics-dimension-repository_nwomicrosoft/python-language-server
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id145901977
octolytics-dimension-repository_network_root_nwomicrosoft/python-language-server
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release4a10310af51a1bfffbedc4fd81cb582acf0cb0ff
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/1098#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1098
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F1098
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=microsoft%2Fpython-language-server
Reloadhttps://github.com/microsoft/python-language-server/issues/1098
Reloadhttps://github.com/microsoft/python-language-server/issues/1098
Reloadhttps://github.com/microsoft/python-language-server/issues/1098
microsofthttps://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Codehttps://github.com/microsoft/python-language-server
Issues309 (309)https://github.com/microsoft/python-language-server/issues
Pull requests6 (6)https://github.com/microsoft/python-language-server/pulls
Projectshttps://github.com/microsoft/python-language-server/projects
Wikihttps://github.com/microsoft/python-language-server/wiki
Security and qualityhttps://github.com/microsoft/python-language-server/security
Insightshttps://github.com/microsoft/python-language-server/insights
https://github.com/microsoft/python-language-server
#1565https://github.com/microsoft/python-language-server/pull/1565
Intellisense doesnt work for all Pytorch methodshttps://github.com/microsoft/python-language-server/issues/1098#top
#1565https://github.com/microsoft/python-language-server/pull/1565
https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
duplicateThis issue or pull request already existshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22duplicate%22
package: pytorchIssues specific to PyTorchhttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22package%3A%20pytorch%22
https://github.com/DonJayamanne
Don Jayamanne (DonJayamanne)https://github.com/DonJayamanne
on May 17, 2019https://github.com/microsoft/python-language-server/issues/1098#issue-445562397
Seyyed Hossein Hasanpour (@Coderx7)https://github.com/Coderx7
Wed May 15 2019https://github.com/microsoft/vscode-python/issues/5643
here https://github.com/pytorch/pytorch/issues/16996
Don Jayamanne (@DonJayamanne)https://github.com/DonJayamanne
Thu May 16 2019https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493269706
microsoft/vscode-python#3977https://github.com/microsoft/vscode-python/issues/3977
Seyyed Hossein Hasanpour (@Coderx7)https://github.com/Coderx7
Thu May 16 2019https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493327549
Don Jayamanne (@DonJayamanne)https://github.com/DonJayamanne
https://user-images.githubusercontent.com/5382892/57905397-a70dd680-788b-11e9-902d-34a05c79b8b4.png
https://user-images.githubusercontent.com/5382892/57905445-d7ee0b80-788b-11e9-9c24-1111dff7c9aa.png
Don Jayamanne (@DonJayamanne)https://github.com/DonJayamanne
Thu May 16 2019https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493335164
Seyyed Hossein Hasanpour (@Coderx7)https://github.com/Coderx7
Fri May 17 2019https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493361716
https://user-images.githubusercontent.com/5382892/57912315-45576780-789f-11e9-8734-96552eafcdd7.gif
Don Jayamanne (@DonJayamanne)https://github.com/DonJayamanne
Fri May 17 2019https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493518731
Seyyed Hossein Hasanpour (@Coderx7)https://github.com/Coderx7
Fri May 17 2019https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493520013
Don Jayamanne (@DonJayamanne)https://github.com/DonJayamanne
Don Jayamanne (@DonJayamanne)https://github.com/DonJayamanne
Fri May 17 2019https://github.com/microsoft/vscode-python/issues/5643#issuecomment-493551270
https://github.com/davidhalter/jedihttps://github.com/davidhalter/jedi
https://github.com/malmaud
Jonathan Malmaud (malmaud)https://github.com/malmaud
on Jun 1, 2019https://github.com/microsoft/python-language-server/issues/1098#issuecomment-497912613
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Jun 1, 2019https://github.com/microsoft/python-language-server/issues/1098#issuecomment-497913677
https://github.com/Coderx7
Seyyed Hossein Hasanpour (Coderx7)https://github.com/Coderx7
on Aug 6, 2019https://github.com/microsoft/python-language-server/issues/1098#issuecomment-518516405
Jonathan Malmaud (@malmaud)https://github.com/malmaud
Tyreke White (Anapo14)https://github.com/Anapo14
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1098#event-2648452170
Tyreke White (Anapo14)https://github.com/Anapo14
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1098#event-2648452764
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
September 2019.2https://github.com/microsoft/python-language-server/milestone/26
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1098#event-2648631332
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1098#issuecomment-533338418
#1301https://github.com/microsoft/python-language-server/issues/1301
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
duplicateThis issue or pull request already existshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22duplicate%22
on Sep 19, 2019https://github.com/microsoft/python-language-server/issues/1098#event-2648631890
Graham Wheeler (gramster)https://github.com/gramster
package: pytorchIssues specific to PyTorchhttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22package%3A%20pytorch%22
on Sep 21, 2019https://github.com/microsoft/python-language-server/issues/1098#event-2651810572
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1565https://github.com/microsoft/python-language-server/pull/1565
on Sep 26, 2019https://github.com/microsoft/python-language-server/issues/1098#event-2663499964
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Sep 26, 2019https://github.com/microsoft/python-language-server/issues/1098#issuecomment-535276080
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/1098
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/1098
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
bugSomething isn't workinghttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22bug%22
duplicateThis issue or pull request already existshttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22duplicate%22
package: pytorchIssues specific to PyTorchhttps://github.com/microsoft/python-language-server/issues?q=state%3Aopen%20label%3A%22package%3A%20pytorch%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.