René's URL Explorer Experiment


Title: Python language server didn't work properly when editing '__init__.py' · Issue #572 · microsoft/python-language-server · GitHub

Open Graph Title: Python language server didn't work properly when editing '__init__.py' · Issue #572 · microsoft/python-language-server

X Title: Python language server didn't work properly when editing '__init__.py' · Issue #572 · microsoft/python-language-server

Description: @CamberLoid commented on Wed Jan 30 2019 Issue Type: Bug Python language server raised an exception and caused problems when handling this import (modules),(), After double-checking on my Windows, I am sure this is because of the extra c...

Open Graph Description: @CamberLoid commented on Wed Jan 30 2019 Issue Type: Bug Python language server raised an exception and caused problems when handling this import (modules),(), After double-checking on my Windows, ...

X Description: @CamberLoid commented on Wed Jan 30 2019 Issue Type: Bug Python language server raised an exception and caused problems when handling this import (modules),(), After double-checking on my Windows, ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python language server didn't work properly when editing '__init__.py'","articleBody":"@CamberLoid commented on [Wed Jan 30 2019](https://github.com/Microsoft/vscode-python/issues/4226)\n\nIssue Type: \u003cb\u003eBug\u003c/b\u003e\r\n\r\nPython language server raised an exception and caused problems when handling this `import (modules),(),`  \r\nAfter double-checking on my Windows, I am sure this is because of the extra comma in the import expression in `__init__.py` , \r\n\r\nUsing Anaconda distribution. Have not tried to reproduce on other OS.\r\n\r\nEnvironment data\r\n---\r\n- Version: 1.30.2 (user setup)  \r\n- Commit: 61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8  \r\n- Date: 2019-01-07T22:54:13.295Z   \r\n- Electron: 2.0.12  \r\n- Chrome: 61.0.3163.100  \r\n- Node.js: 8.9.3  \r\n- V8: 6.1.534.41  \r\n- OS: Windows_NT x64 10.0.18323\r\n\r\nActual behaviour\r\n---\r\nCannot access origin libraries by Ctrl+(Modules), and the exceptions below.   \r\nIt acts like this  \r\n\r\n![issue](https://user-images.githubusercontent.com/22998116/52004555-55228a00-2502-11e9-9af6-f73077e4b727.gif)\r\n\r\n\r\nExpected behaviour\r\n---\r\nAccess origin libraries by Ctrl+(Modules)  \r\nand no Exceptions\r\n\r\nLogs\r\n---\r\n```\r\n[Error - 1:18:14 AM] System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.\r\nParameter name: index\r\n   at System.SZArrayHelper.get_Item[T](Int32 index)\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.ImportModule(ImportStatement\u0026 node, IModule\u0026 module, DottedName\u0026 moduleImportExpression, NameExpression\u0026 asNameExpression)\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(ImportStatement node)\r\n   at Microsoft.PythonTools.Parsing.Ast.ImportStatement.Walk(PythonWalker walker)\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Walk(SuiteStatement node)\r\n   at Microsoft.PythonTools.Parsing.Ast.SuiteStatement.Walk(PythonWalker walker)\r\n   at Microsoft.PythonTools.Parsing.Ast.PythonAst.Walk(PythonWalker walker)\r\n   at Microsoft.PythonTools.Analysis.AnalysisUnit.AnalyzeWorker(DDG ddg, CancellationToken cancel)\r\n   at Microsoft.PythonTools.Analysis.Analyzer.DDG.Analyze(Deque`1 queue, CancellationToken cancel, Action`1 reportQueueSize, Int32 reportQueueInterval)\r\n   at Microsoft.PythonTools.Analysis.PythonAnalyzer.AnalyzeQueuedEntries(CancellationToken cancel)\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.GroupAnalysis.Analyze(CancellationToken cancel)\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.HandleAnalyzable(IAnalyzable item, AnalysisPriority priority, CancellationToken cancellationToken)\r\n   at Microsoft.PythonTools.Intellisense.AnalysisQueue.ConsumerLoop()\r\n```\r\n\r\n\r\nExtension version: 2019.1.0\r\nVS Code version: Code 1.30.2 (61122f88f0bf01e2ac16bdb9e1bc4571755f5bd8, 2019-01-07T22:54:13.295Z)\r\nOS version: Windows_NT x64 10.0.18323\r\n\r\n\u003cdetails\u003e\r\n\u003csummary\u003eSystem Info\u003c/summary\u003e\r\n\r\n|Item|Value|\r\n|---|---|\r\n|CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)|\r\n|GPU Status|2d_canvas: enabled\u003cbr\u003echecker_imaging: disabled_off\u003cbr\u003eflash_3d: enabled\u003cbr\u003eflash_stage3d: enabled\u003cbr\u003eflash_stage3d_baseline: enabled\u003cbr\u003egpu_compositing: enabled\u003cbr\u003emultiple_raster_threads: enabled_on\u003cbr\u003enative_gpu_memory_buffers: disabled_software\u003cbr\u003erasterization: enabled\u003cbr\u003evideo_decode: enabled\u003cbr\u003evideo_encode: enabled\u003cbr\u003ewebgl: enabled\u003cbr\u003ewebgl2: enabled|\r\n|Memory (System)|15.87GB (9.36GB free)|\r\n|Process Argv||\r\n|Screen Reader|no|\r\n|VM|0%|\r\n\r\n\u003c/details\u003e\r\n\u003c!-- generated by issue reporter --\u003e\n\n---\n\n@d3r3kk commented on [Thu Jan 31 2019](https://github.com/Microsoft/vscode-python/issues/4226#issuecomment-459536232)\n\nVerified, here's another gif that might help figure out the issue:\r\n\r\n![4226_intellisense_exception_on_import_trailing_comma](https://user-images.githubusercontent.com/11466735/52090633-d01d8c00-2566-11e9-8ed7-dfb53e45fde6.gif)\r\n\r\nThis is using `Microsoft Python Language Server version 0.1.78.0`, Miniconda3 on Windows with Python 3.7.2\r\n\n\n","author":{"url":"https://github.com/d3r3kk","@type":"Person","name":"d3r3kk"},"datePublished":"2019-01-31T22:47:43.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":5},"url":"https://github.com/572/python-language-server/issues/572"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:de38b8e1-75c9-4242-a87c-9535c068303e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD684:2F3BA7:A38F9C:D84280:6A51A46B
html-safe-nonce20a76a0bb502b53f24520500a24282cb081c08120a05c6aa3ba5455eded1455c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjg0OjJGM0JBNzpBMzhGOUM6RDg0MjgwOjZBNTFBNDZCIiwidmlzaXRvcl9pZCI6Ijg2ODYyNDA0NTIxODg0MTUwODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3e30714db3f218a7aa6714b0050d17681e3776aa7db22688b90c0de59a01ff8e
hovercard-subject-tagissue:405474879
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/572/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bd5319c582f8d10296391581677a6dd9cdf7f331fd88b158aa5d9248eab89918/microsoft/python-language-server/issues/572
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bd5319c582f8d10296391581677a6dd9cdf7f331fd88b158aa5d9248eab89918/microsoft/python-language-server/issues/572
og:image:alt@CamberLoid commented on Wed Jan 30 2019 Issue Type: Bug Python language server raised an exception and caused problems when handling this import (modules),(), After double-checking on my Windows, ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamed3r3kk
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
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
release7aed05249554b889eb33d002851a973eebcc7e91
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/microsoft/python-language-server/issues/572#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F572
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpython-language-server%2Fissues%2F572
Sign up https://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/572
Reloadhttps://github.com/microsoft/python-language-server/issues/572
Reloadhttps://github.com/microsoft/python-language-server/issues/572
Please reload this pagehttps://github.com/microsoft/python-language-server/issues/572
microsoft https://github.com/microsoft
python-language-serverhttps://github.com/microsoft/python-language-server
Notifications https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Fork 131 https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Star 921 https://github.com/login?return_to=%2Fmicrosoft%2Fpython-language-server
Code https://github.com/microsoft/python-language-server
Issues 309 https://github.com/microsoft/python-language-server/issues
Pull requests 6 https://github.com/microsoft/python-language-server/pulls
Projects https://github.com/microsoft/python-language-server/projects
Models https://github.com/microsoft/python-language-server/models
Wiki https://github.com/microsoft/python-language-server/wiki
Security and quality 0 https://github.com/microsoft/python-language-server/security
Insights https://github.com/microsoft/python-language-server/pulse
Code https://github.com/microsoft/python-language-server
Issues https://github.com/microsoft/python-language-server/issues
Pull requests https://github.com/microsoft/python-language-server/pulls
Projects https://github.com/microsoft/python-language-server/projects
Models https://github.com/microsoft/python-language-server/models
Wiki https://github.com/microsoft/python-language-server/wiki
Security and quality https://github.com/microsoft/python-language-server/security
Insights https://github.com/microsoft/python-language-server/pulse
Python language server didn't work properly when editing '__init__.py'https://github.com/microsoft/python-language-server/issues/572#top
https://github.com/MikhailArkhipov
https://github.com/d3r3kk
d3r3kkhttps://github.com/d3r3kk
on Jan 31, 2019https://github.com/microsoft/python-language-server/issues/572#issue-405474879
@CamberLoidhttps://github.com/CamberLoid
Wed Jan 30 2019https://github.com/Microsoft/vscode-python/issues/4226
https://user-images.githubusercontent.com/22998116/52004555-55228a00-2502-11e9-9af6-f73077e4b727.gif
@d3r3kkhttps://github.com/d3r3kk
Thu Jan 31 2019https://github.com/Microsoft/vscode-python/issues/4226#issuecomment-459536232
https://user-images.githubusercontent.com/11466735/52090633-d01d8c00-2566-11e9-8ed7-dfb53e45fde6.gif
MikhailArkhipovhttps://github.com/MikhailArkhipov
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.