René's URL Explorer Experiment


Title: Symbols stop being returned if filename collides with function name · Issue #481 · microsoft/python-language-server · GitHub

Open Graph Title: Symbols stop being returned if filename collides with function name · Issue #481 · microsoft/python-language-server

X Title: Symbols stop being returned if filename collides with function name · Issue #481 · microsoft/python-language-server

Description: anil (@aniljava) commented on Thu Sep 06 2018 Environment data VS Code version: 1.27.1-insider (commit: ....74cfdc) Extension version (available under the Extensions sidebar): XXX OS and version: 4.15.0-33-generic #36-Ubuntu SMP Wed Aug ...

Open Graph Description: anil (@aniljava) commented on Thu Sep 06 2018 Environment data VS Code version: 1.27.1-insider (commit: ....74cfdc) Extension version (available under the Extensions sidebar): XXX OS and version: 4...

X Description: anil (@aniljava) commented on Thu Sep 06 2018 Environment data VS Code version: 1.27.1-insider (commit: ....74cfdc) Extension version (available under the Extensions sidebar): XXX OS and version: 4...

Opengraph URL: https://github.com/microsoft/python-language-server/issues/481

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Symbols stop being returned if filename collides with function name","articleBody":"@aniljava commented on [Thu Sep 06 2018](https://github.com/Microsoft/vscode-python/issues/2516)\n\n## Environment data\r\n\r\n- VS Code version: 1.27.1-insider (commit: ....74cfdc)\r\n- Extension version (available under the Extensions sidebar): XXX\r\n- OS and version: 4.15.0-33-generic #36-Ubuntu SMP Wed Aug 15 16:00:05 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux\r\n- Python version (& distribution if applicable, e.g. Anaconda): Python 3.6.5\r\n- Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A\r\n- Relevant/affected Python packages and their versions: XXX\r\n\r\n## Actual behavior\r\n\r\nIf one of the method name in python file collides with python script file name, the intellisense stops working. Jedi works.\r\n\r\n## Expected  behavior\r\n\r\nXXX\r\n\r\n## Steps to reproduce:\r\n1. On a new install, try edit ANYNAME or ANYNAME.py file and create method ANYNAME\r\n\r\n\r\nOutput from `Console` under the `Developer Tools` panel (toggle Developer Tools on under `Help`)\r\n\r\n```\r\n[Error - 6:25:59 PM] One or more errors occurred. (failed to parse file file:///xxxxxxx/test)\r\n\r\n```\r\n![1536275962](https://user-images.githubusercontent.com/412569/45190132-d6028180-b201-11e8-92d7-d708e5700e0a.jpg)\r\n\n\n---\n\n@d3r3kk commented on [Tue Sep 11 2018](https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-420464282)\n\nI cannot reproduce this issue on Ubuntu 18.04 on the latest extension/VSCode-Insiders/Language Server.\r\n\r\n@aniljava could you please remove your language server and try again? Perhaps we've fixed it in a newer version.\r\n\r\n1. Close all instances of VSCode-Insider.\r\n2. Remove the Python Language Server by removing the `languageServer` folder from under the extensions directory.\r\n   - This is located under your user home folder, here: `~/.vscode-insider/extensions/ms-python-[version]/languageServer`\r\n3. Restart VSCode-Insiders and wait until the Python Language Server re-downloads.\r\n4. Retry your scenario.\r\n\r\n### If it still fails for you\r\n\r\nPlease send us a gif of what you are seeing, with the Terminal output window open so we can perhaps make more sense out of what is happening.\n\n---\n\n@aniljava commented on [Mon Sep 17 2018](https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-422257122)\n\nFollowed the steps. \r\nENVIRNOMENT: \r\n![1537247412](https://user-images.githubusercontent.com/412569/45665605-3d101800-bad7-11e8-9f6a-72dd9ae1c0a8.jpg)\r\n\r\n\r\nIntellisense ; jedi disabled\r\n![jedi-disabled](https://user-images.githubusercontent.com/412569/45665539-f1f60500-bad6-11e8-9be1-b22e40cbb22f.gif)\r\n\r\njedi enabled in user settings (\"python.jediEnabled\": true).\r\n![jedi-enabled](https://user-images.githubusercontent.com/412569/45665538-f02c4180-bad6-11e8-8b34-50cc77abaca8.gif)\r\n\n\n---\n\n@aniljava commented on [Mon Sep 17 2018](https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-422258828)\n\nI realized the title is misleading, i assumed jedi turned off is intellisense in general.\r\n\r\nOnly the Code Outline feature fails only when jedi is turned off and the source file has an element (function name, top level variable name, class definition) with a name matching the file name. \n\n---\n\n@d3r3kk commented on [Thu Sep 20 2018](https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-423247428)\n\nVerified on Windows 10 using VSCode 1.27.2 with python extension 2018.8.0 and the latest Python Language Server installed.\r\n\r\nCreate a new workspace, add a folder 'follow' to the workspace, and a file to the 'follow' folder called anyname.py.\r\n\r\nContent of anyname.py:\r\n```python\r\ndef anyname(name):\r\n    print(f'Anyname = ''{name}''')\r\n\r\n\r\ndef some_other_name(other_name):\r\n    print(other_name)\r\n\r\n\r\nanyname('Inaura')\r\nsome_other_name('Ayode')\r\n```\r\n\r\nFrom `Output -> Python` window:\r\n\r\n```\r\nStarting Microsoft Python language server.\r\nInitializing for C:\\Program Files (x86)\\Python36-32\\python.exe\r\n##########Linting Output - pylint##########\r\n\r\n--------------------------------------------------------------------\r\n\r\nYour code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)\r\n\r\n[Error - 9:21:56 AM] One or more errors occurred. (failed to parse file file:///e:/dev/github/d3r3kk/test/2516_collisions_filename_fnname/anyname.py)\r\n```\r\n\r\nFrom developer console:\r\n```\r\n/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1411  INFO no standard startup: not a new window\r\n3/C:/Program Files (x86)/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:1411   ERR Cannot read property 'map' of null: TypeError: Cannot read property 'map' of null\r\n\tat asCompletionResult (C:\\Users\\derek\\.vscode\\extensions\\ms-python.python-2018.8.0\\node_modules\\vscode-languageclient\\lib\\protocolConverter.js:145:51)\r\n\tat \u003canonymous>\r\n```\r\n\r\nNo symbols listed at all in the `Outline` view, and no symbols listed in the breadcrumb view either.\r\n\n\n---\n\n@brettcannon commented on [Thu Sep 20 2018](https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-423327764)\n\n@DonJayamanne is this our bug or something in the language server?\n\n---\n\n@BrentDickinson commented on [Mon Dec 10 2018](https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-445968464)\n\nAny update on this?  It also breaks Find symbol in file.  Find symbol in project does seem to work though.\n\n","author":{"url":"https://github.com/brettcannon","@type":"Person","name":"brettcannon"},"datePublished":"2018-12-11T21:49:58Z","url":"https://github.com/microsoft/python-language-server/issues/481"}

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:db66f248-9b3e-c161-cec3-a15c9479996d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBFE4:DDED5:86064E:B6A269:6AFE6F8E
html-safe-nonce24275cbd787ff93d60f2d1fef2824516d1b62f2cbb721c0b5421048e7d45d11f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkU0OkRERUQ1Ojg2MDY0RTpCNkEyNjk6NkFGRTZGOEUiLCJ2aXNpdG9yX2lkIjoiMjUwNzExNTMxODkxNzA5OTQwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6a26b0027c929bacd3cba098fc0e2f74402826b08aba6f727320b3d1ef9daf8b
hovercard-subject-tagissue:389968578
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/481/issue_layout
twitter:imagehttps://opengraph.githubassets.com/21611db17c75300446c8df02b63c0ed6b0754d19b29afcb6fa0b48e857f7cbf9/microsoft/python-language-server/issues/481
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/21611db17c75300446c8df02b63c0ed6b0754d19b29afcb6fa0b48e857f7cbf9/microsoft/python-language-server/issues/481
og:image:altanil (@aniljava) commented on Thu Sep 06 2018 Environment data VS Code version: 1.27.1-insider (commit: ....74cfdc) Extension version (available under the Extensions sidebar): XXX OS and version: 4...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebrettcannon
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/481#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F481
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%2F481
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/481
Reloadhttps://github.com/microsoft/python-language-server/issues/481
Reloadhttps://github.com/microsoft/python-language-server/issues/481
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
Symbols stop being returned if filename collides with function namehttps://github.com/microsoft/python-language-server/issues/481#top
https://github.com/brettcannon
Brett Cannon (brettcannon)https://github.com/brettcannon
on Dec 11, 2018https://github.com/microsoft/python-language-server/issues/481#issue-389968578
anil (@aniljava)https://github.com/aniljava
Thu Sep 06 2018https://github.com/Microsoft/vscode-python/issues/2516
Bug and test fixes #36https://github.com/microsoft/python-language-server/pull/36
https://user-images.githubusercontent.com/412569/45190132-d6028180-b201-11e8-92d7-d708e5700e0a.jpg
Derek Keeler (@d3r3kk)https://github.com/d3r3kk
Tue Sep 11 2018https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-420464282
anil (@aniljava)https://github.com/aniljava
anil (@aniljava)https://github.com/aniljava
Mon Sep 17 2018https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-422257122
https://user-images.githubusercontent.com/412569/45665605-3d101800-bad7-11e8-9f6a-72dd9ae1c0a8.jpg
https://user-images.githubusercontent.com/412569/45665539-f1f60500-bad6-11e8-9be1-b22e40cbb22f.gif
https://user-images.githubusercontent.com/412569/45665538-f02c4180-bad6-11e8-8b34-50cc77abaca8.gif
anil (@aniljava)https://github.com/aniljava
Mon Sep 17 2018https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-422258828
Derek Keeler (@d3r3kk)https://github.com/d3r3kk
Thu Sep 20 2018https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-423247428
Brett Cannon (@brettcannon)https://github.com/brettcannon
Thu Sep 20 2018https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-423327764
Don Jayamanne (@DonJayamanne)https://github.com/DonJayamanne
Brent (@BrentDickinson)https://github.com/BrentDickinson
Mon Dec 10 2018https://github.com/Microsoft/vscode-python/issues/2516#issuecomment-445968464
Brett Cannon (brettcannon)https://github.com/brettcannon
on Dec 11, 2018https://github.com/microsoft/python-language-server/issues/481#event-2019963619
https://github.com/MikhailArkhipov
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
on Feb 15, 2019https://github.com/microsoft/python-language-server/issues/481#issuecomment-464250222
https://user-images.githubusercontent.com/12820357/52890263-b7050580-3138-11e9-854d-8b8853b247ae.png
Mikhail Arkhipov (MikhailArkhipov)https://github.com/MikhailArkhipov
completedhttps://github.com/microsoft/python-language-server/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Feb 15, 2019https://github.com/microsoft/python-language-server/issues/481#event-2143819153
Sign up for freehttps://github.com/signup?return_to=https://github.com/microsoft/python-language-server/issues/481
Sign in to commenthttps://github.com/login?return_to=https://github.com/microsoft/python-language-server/issues/481
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.