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
Domain: github.com
{"@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\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\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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:de38b8e1-75c9-4242-a87c-9535c068303e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D684:2F3BA7:A38F9C:D84280:6A51A46B |
| html-safe-nonce | 20a76a0bb502b53f24520500a24282cb081c08120a05c6aa3ba5455eded1455c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjg0OjJGM0JBNzpBMzhGOUM6RDg0MjgwOjZBNTFBNDZCIiwidmlzaXRvcl9pZCI6Ijg2ODYyNDA0NTIxODg0MTUwODMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 3e30714db3f218a7aa6714b0050d17681e3776aa7db22688b90c0de59a01ff8e |
| hovercard-subject-tag | issue:405474879 |
| 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/572/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bd5319c582f8d10296391581677a6dd9cdf7f331fd88b158aa5d9248eab89918/microsoft/python-language-server/issues/572 |
| twitter:card | summary_large_image |
| og:image | https://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:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | d3r3kk |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width