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: patch-diff.githubusercontent.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:7195fdc9-916e-5384-5c8c-3cd0bd922d3f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A6B0:CA7BC:900781F:BC03232:6975B6D0 |
| html-safe-nonce | 3449050764d5bc0868cccea482c3ff5f70ae04c14221c4f94a97322a3ef16802 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNkIwOkNBN0JDOjkwMDc4MUY6QkMwMzIzMjo2OTc1QjZEMCIsInZpc2l0b3JfaWQiOiI1MzMxODExOTI1MzEyNzc5OTg0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7fecc40a9285af58f0c05dfc8765dfa92e623679ed1c55981d69c26cabe0e23b |
| 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 | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| 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 | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width