Title: mypy errors are always attributed to beginning of line · Issue #3597 · microsoft/vscode-python · GitHub
Open Graph Title: mypy errors are always attributed to beginning of line · Issue #3597 · microsoft/vscode-python
X Title: mypy errors are always attributed to beginning of line · Issue #3597 · microsoft/vscode-python
Description: When I enable mypy linting, all errors are attributed to the beginning of the line (column 0) like this: By default, mypy doesn't emit any column information, but it can be configured to do so using the show_column_numbers option in the ...
Open Graph Description: When I enable mypy linting, all errors are attributed to the beginning of the line (column 0) like this: By default, mypy doesn't emit any column information, but it can be configured to do so usin...
X Description: When I enable mypy linting, all errors are attributed to the beginning of the line (column 0) like this: By default, mypy doesn't emit any column information, but it can be configured to do so ...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/3597
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"mypy errors are always attributed to beginning of line","articleBody":"When I enable mypy linting, all errors are attributed to the beginning of the line (column 0) like this:\r\n\r\n\r\n\r\nBy default, mypy doesn't emit any column information, but it can be configured to do so using the `show_column_numbers` option in the configuration file or command line. If column information is emitted, the output parser should be able to take advantage of this additional information.\r\n\r\nI was able to fix this by changing the REGEX in mypy.ts to the following:\r\n```\r\nexport const REGEX = '(?\u003cfile>[^:]+):(?\u003cline>\\\\d+)(:(?\u003ccolumn>\\\\d+))?: (?\u003ctype>\\\\w+): (?\u003cmessage>.*)\\\\r?(\\\\n|$)';\r\n```\r\n\r\nWith this change — and with `show_column_numbers` enabled, the red squiggles now correctly highlight the errant code, making the tool significantly more useful.\r\n\r\n\r\n\r\nThe proposed change works both with and without `show_column_numbers` enabled.\r\n\r\nIf this fix is acceptable, I'm happy to submit a PR.\r\n\r\n\r\n## Environment data\r\n\r\n- VS Code version: 1.29.1\r\n- Extension version: master branch built on 7 Dec, 2018\r\n","author":{"url":"https://github.com/msfterictraut","@type":"Person","name":"msfterictraut"},"datePublished":"2018-12-08T05:28:00Z","url":"https://github.com/microsoft/vscode-python/issues/3597"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:7ce866ee-6724-b97c-46fa-321a3f375463 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F0A:14B836:BEF946:FF1692:6B004D6C |
| html-safe-nonce | 4793df73f762d4135b6e33fdfd527a92bb4d57e57559bb813793b4c132e5d7fa |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjBBOjE0QjgzNjpCRUY5NDY6RkYxNjkyOjZCMDA0RDZDIiwidmlzaXRvcl9pZCI6IjM5MzI1NzY1NjMxNTcwMjgyMDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 4572f966578286cfef1bb4183dbd7ee765d6c750bd59c011b36c8b597ccd92e6 |
| hovercard-subject-tag | issue:388887910 |
| 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/vscode-python/3597/issue_layout |
| twitter:image | https://opengraph.githubassets.com/40e9b95bee95d1b19e2df5aa7c3369fbe5a394d9ad64de3905c9dbf1506e6878/microsoft/vscode-python/issues/3597 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/40e9b95bee95d1b19e2df5aa7c3369fbe5a394d9ad64de3905c9dbf1506e6878/microsoft/vscode-python/issues/3597 |
| og:image:alt | When I enable mypy linting, all errors are attributed to the beginning of the line (column 0) like this: By default, mypy doesn't emit any column information, but it can be configured to do so usin... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msfterictraut |
| hostname | github.com |
| expected-hostname | github.com |
| None | f9517bf360d46638a1e5e7daee7158842fe5ef43c9000afa0e127564a7c2f39b |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-python git https://github.com/microsoft/vscode-python.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 106462765 |
| octolytics-dimension-repository_nwo | microsoft/vscode-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 49946255 |
| octolytics-dimension-repository_parent_nwo | DonJayamanne/pythonVSCode |
| octolytics-dimension-repository_network_root_id | 49946255 |
| octolytics-dimension-repository_network_root_nwo | DonJayamanne/pythonVSCode |
| 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 | b27c5dde30676028abd5c5fc53ce5c9b625f8281 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width