Title: Add type key to found occurence. by boatx · Pull Request #914 · python-mode/python-mode · GitHub
Open Graph Title: Add type key to found occurence. by boatx · Pull Request #914 · python-mode/python-mode
X Title: Add type key to found occurence. by boatx · Pull Request #914 · python-mode/python-mode
Description: Pressing C-c f results in IndexError because found occurrence dictionary don't have key 'type' (required by g:PymodeLocList.extend). Related issue #921 Explanation related to the fix retrieved from the related issue: This error is related to PymodeLocList. It is used to display places in code where rope has found occurences. python-mode/autoload/pymode/rope.vim Line 60 in bb746d0 let loclist = g:PymodeLocList.current() But it is also (or mostly used) by linters to display line of code with error of warnings (type 'E' or 'W'), when list of locations is extended new entries are filtered over type. python-mode/autoload/pymode/tools/loclist.vim Line 54 in bb746d0 let err_list = filter(copy(a:raw_list), 'v:val["type"] == "E"') This type is later displayed next to line number. I wasn't sure what to put for rope so I've added empty string.
Open Graph Description: Pressing C-c f results in IndexError because found occurrence dictionary don't have key 'type' (required by g:PymodeLocList.extend). Related issue #921 Explanation related to the fix re...
X Description: Pressing C-c f results in IndexError because found occurrence dictionary don't have key 'type' (required by g:PymodeLocList.extend). Related issue #921 Explanation related t...
Opengraph URL: https://github.com/python-mode/python-mode/pull/914
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:5e55d0b4-5352-4e68-e0a3-d0eca9c52f95 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E0D4:13E147:70B4818:93CB8AB:6975395F |
| html-safe-nonce | be32a6b96a35fcc87c9fa9a4d0605f476efda4c33c77867e634bab111b441187 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMEQ0OjEzRTE0Nzo3MEI0ODE4OjkzQ0I4QUI6Njk3NTM5NUYiLCJ2aXNpdG9yX2lkIjoiNzg4MTIxODAwMjk4NzA3MTgzOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 40dcf252729bc86eec20764e7e7d3a94af485ea6873a5f8da9cfc18a4ba152b5 |
| hovercard-subject-tag | pull_request:198521214 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,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/python-mode/python-mode/pull/914/files |
| twitter:image | https://avatars.githubusercontent.com/u/1446337?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1446337?s=400&v=4 |
| og:image:alt | Pressing C-c f results in IndexError because found occurrence dictionary don't have key 'type' (required by g:PymodeLocList.extend). Related issue #921 Explanation related to the fix re... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python-mode/python-mode git https://github.com/python-mode/python-mode.git |
| octolytics-dimension-user_id | 13965098 |
| octolytics-dimension-user_login | python-mode |
| octolytics-dimension-repository_id | 2408911 |
| octolytics-dimension-repository_nwo | python-mode/python-mode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2408911 |
| octolytics-dimension-repository_network_root_nwo | python-mode/python-mode |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| 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