Title: Error throw every time an opening bracket is written · Issue #465 · autocomplete-python/autocomplete-python · GitHub
Open Graph Title: Error throw every time an opening bracket is written · Issue #465 · autocomplete-python/autocomplete-python
X Title: Error throw every time an opening bracket is written · Issue #465 · autocomplete-python/autocomplete-python
Description: Prerequisites Please make sure to properly configure plugin first if you simply cannot see any completions. It's always helpful if you include debug logs with your issue: Go to package settings to enable them Open dev tools using command...
Open Graph Description: Prerequisites Please make sure to properly configure plugin first if you simply cannot see any completions. It's always helpful if you include debug logs with your issue: Go to package settings to ...
X Description: Prerequisites Please make sure to properly configure plugin first if you simply cannot see any completions. It's always helpful if you include debug logs with your issue: Go to package settings...
Opengraph URL: https://github.com/autocomplete-python/autocomplete-python/issues/465
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error throw every time an opening bracket is written","articleBody":"### Prerequisites\r\n\r\n* [x] Please make sure to properly [configure](https://github.com/autocomplete-python/autocomplete-python#configuration) plugin first if you simply cannot see any completions.\r\n* [x] It's always helpful if you include debug logs with your issue:\r\n * Go to package settings to enable them\r\n \r\n * Open `dev tools` using command palette and you should see some `autocomplete-python` records in console tab. This will include parts of your code – make sure to remove everything you don't want to share.\r\n\r\n### Steps to Reproduce\r\n\r\n1. Write a bracket, e. g.: \r\n```\r\nvariable = ()\r\nvariable = []\r\nvariable = {}\r\n```\r\n\r\n**Expected behavior:** \r\nNo error to be displayed.\r\n\r\n**Actual behavior:** \r\nError is throw every time by `autocomplete-python` \r\n\r\n\r\nNo issues with function definitions and calls, the issue seems to be triggered when single bracket is being written (like when using list comprehensions or declaring variables).\r\n\r\nError text: \r\n```\r\nautocomplete-python traceback output:\r\n\r\nTraceback (most recent call last):\r\n File \"/home/driuba/.atom/packages/autocomplete-python/lib/completion.py\", line 381, in watch\r\n self._process_request(request)\r\n File \"/home/driuba/.atom/packages/autocomplete-python/lib/completion.py\", line 349, in _process_request\r\n return self._write_response(self._serialize_tooltip(\r\n File \"/home/driuba/.atom/packages/autocomplete-python/lib/completion.py\", line 275, in _serialize_tooltip\r\n 'line': definition.line - 1,\r\nTypeError: unsupported operand type(s) for -: 'NoneType' and 'int'\r\n```\r\n\r\n---\r\n\r\nOS info: \r\n\r\n\r\nAtom info: \r\n\r\n\r\nautocomplete-python info: \r\n\r\n\r\n---\r\n\r\nP. S. \r\nOther functionality works as expected without issues. The error message does not seem to be critical, however it is very annoying as it spams a lot.","author":{"url":"https://github.com/driuba","@type":"Person","name":"driuba"},"datePublished":"2022-03-28T13:39:31.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/465/autocomplete-python/issues/465"}
| 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:ebc8c905-d934-72ba-107e-69b4aa870d9a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF1E:30E8A:E00ADFD:1242F87C:6976D29F |
| html-safe-nonce | 9b1ffe7faa6c02fd3fa3bc97cac67a6c57eb6ac587f1ded330b9a2042fa3e5b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjFFOjMwRThBOkUwMEFERkQ6MTI0MkY4N0M6Njk3NkQyOUYiLCJ2aXNpdG9yX2lkIjoiMTY2NTIwNTExNzg4MTA3ODQzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7817789dcae75222960b92487132b4a16cbe460c27939cf8bf9033d5bad60ab8 |
| hovercard-subject-tag | issue:1183459817 |
| 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/autocomplete-python/autocomplete-python/465/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6ee98b3d85546fae0fea5a897392e8c5d2c065d20a9851895534170ff3569e90/autocomplete-python/autocomplete-python/issues/465 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6ee98b3d85546fae0fea5a897392e8c5d2c065d20a9851895534170ff3569e90/autocomplete-python/autocomplete-python/issues/465 |
| og:image:alt | Prerequisites Please make sure to properly configure plugin first if you simply cannot see any completions. It's always helpful if you include debug logs with your issue: Go to package settings to ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | driuba |
| hostname | github.com |
| expected-hostname | github.com |
| None | 01d198479908d09a841b2febe8eb105a81af2af7d81830960fe0971e1f4adc09 |
| turbo-cache-control | no-preview |
| go-import | github.com/autocomplete-python/autocomplete-python git https://github.com/autocomplete-python/autocomplete-python.git |
| octolytics-dimension-user_id | 22843876 |
| octolytics-dimension-user_login | autocomplete-python |
| octolytics-dimension-repository_id | 34786988 |
| octolytics-dimension-repository_nwo | autocomplete-python/autocomplete-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 34786988 |
| octolytics-dimension-repository_network_root_nwo | autocomplete-python/autocomplete-python |
| 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 | f752335dbbea672610081196a1998e39aec5e14b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width