Title: Speed up linting · Issue #444 · microsoft/vscode-python · GitHub
Open Graph Title: Speed up linting · Issue #444 · microsoft/vscode-python
X Title: Speed up linting · Issue #444 · microsoft/vscode-python
Description: Environment data VS Code version: 1.19.0 (1.19.0) Python Extension version: 0.9.0 Python Version: Anaconda 2.7.14 OS and version: mac OS 10.13.2 Actual behavior Updates to Pylint messages are very slow even after saving, it takes several...
Open Graph Description: Environment data VS Code version: 1.19.0 (1.19.0) Python Extension version: 0.9.0 Python Version: Anaconda 2.7.14 OS and version: mac OS 10.13.2 Actual behavior Updates to Pylint messages are very ...
X Description: Environment data VS Code version: 1.19.0 (1.19.0) Python Extension version: 0.9.0 Python Version: Anaconda 2.7.14 OS and version: mac OS 10.13.2 Actual behavior Updates to Pylint messages are very ...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/444
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Speed up linting","articleBody":"## Environment data\r\nVS Code version: 1.19.0 (1.19.0)\r\nPython Extension version: 0.9.0\r\nPython Version: Anaconda 2.7.14\r\nOS and version: mac OS 10.13.2 \r\n\r\n## Actual behavior\r\nUpdates to Pylint messages are very slow even after saving, it takes several seconds for messages to change. For example, if a variable is undefined and then defined, the linter will take several seconds to update it's undefined variable message.\r\n\r\n## Expected behavior\r\nMessages should update instantly when the linter is run.\r\n\r\n## Steps to reproduce: \r\n- Have a Pylint message\r\n- Fix the error associated with the message\r\n- Save to lint\r\n- Message will take some time to disappear\r\n\r\n## Logs\r\nOutput from ```Python``` output panel \r\n```\r\n##########Linting Output - pylint##########\r\nNo config file found, using default configuration\r\n************* Module scheduler\r\n304,0,convention,C0303:Trailing whitespace\r\n313,0,convention,C0303:Trailing whitespace\r\n316,0,convention,C0303:Trailing whitespace\r\n1,0,convention,C0111:Missing module docstring\r\n73,0,convention,C0111:Missing function docstring\r\n78,4,convention,C0103:Invalid variable name \"df\"\r\n84,4,convention,C0103:Invalid variable name \"df\"\r\n107,0,convention,C0111:Missing function docstring\r\n114,0,convention,C0103:Invalid argument name \"df\"\r\n114,0,convention,C0111:Missing function docstring\r\n116,11,convention,C0103:Invalid variable name \"c\"\r\n120,0,convention,C0103:Invalid argument name \"m\"\r\n120,0,convention,C0111:Missing function docstring\r\n122,4,refactor,R1705:Unnecessary \"else\" after \"return\"\r\n122,19,error,E1101:Module 'gurobi' has no 'GRB' member\r\n124,21,error,E1101:Module 'gurobi' has no 'GRB' member\r\n135,0,convention,C0111:Missing function docstring\r\n135,21,warning,W0613:Unused argument 'data'\r\n135,27,warning,W0613:Unused argument 'prediction_file'\r\n141,0,convention,C0111:Missing function docstring\r\n141,0,refactor,R0914:Too many local variables (36/15)\r\n164,4,convention,C0103:Invalid variable name \"m\"\r\n164,8,error,E1101:Module 'gurobi' has no 'Model' member\r\n167,4,convention,C0103:Invalid variable name \"x\"\r\n167,53,error,E1101:Module 'gurobi' has no 'GRB' member\r\n168,4,convention,C0103:Invalid variable name \"z\"\r\n169,4,convention,C0103:Invalid variable name \"f\"\r\n184,8,convention,C0103:Invalid variable name \"t\"\r\n188,14,error,E1101:Module 'gurobi' has no 'quicksum' member\r\n202,8,convention,C0122:Comparison should be gb.quicksum([le for le in x.loc[data[PACU_FLAG],:].mul(late_pacu).values.flatten() if le.getCoeff(0) != 0.0]) == 0\r\n202,13,error,E1101:Module 'gurobi' has no 'quicksum' member\r\n209,8,convention,C0103:Invalid variable name \"ti\"\r\n209,12,convention,C0103:Invalid variable name \"t\"\r\n212,12,convention,C0103:Invalid variable name \"r\"\r\n214,22,error,E1101:Module 'gurobi' has no 'quicksum' member\r\n223,9,convention,C0122:Comparison should be x.loc[(p, data.loc[(p, PRIOR_START_TIME)])] == 1\r\n230,8,convention,C0122:Comparison should be gb.quicksum([le for le in x.loc[~data[FIXED_START],:].mul(too_early).values.flatten() if le.getCoeff(0) != 0.0]) == 0\r\n230,13,error,E1101:Module 'gurobi' has no 'quicksum' member\r\n240,15,error,E1101:Module 'gurobi' has no 'GRB' member\r\n245,16,convention,C0103:Invalid variable name \"fv\"\r\n251,16,convention,C0103:Invalid variable name \"zv\"\r\n255,16,convention,C0103:Invalid variable name \"fv\"\r\n260,16,convention,C0103:Invalid variable name \"fv\"\r\n267,16,convention,C0103:Invalid variable name \"p\"\r\n268,23,convention,C0103:Invalid variable name \"t\"\r\n141,0,refactor,R0912:Too many branches (15/12)\r\n141,0,refactor,R0915:Too many statements (55/50)\r\n274,0,convention,C0111:Missing function docstring\r\n275,16,convention,C0121:Comparison to True should be just 'expr' or 'expr is True'\r\n289,0,convention,C0111:Missing function docstring\r\n300,0,convention,C0111:Missing function docstring\r\n2,0,warning,W0611:Unused datetime imported from datetime\r\n\r\n------------------------------------------------------------------\r\nYour code has been rated at 5.46/10 (previous run: 5.36/10, +0.10)\r\n\r\n``` \r\nOutput from ```Console window``` (Help->Developer Tools menu)\r\n```\r\nTypeError: Cannot read property 'TokenType' of undefined\r\n\tat CompletionSource.isPositionInsideStringOrComment (/Users/mfairley/.vscode/extensions/ms-python.python-0.9.0/out/client/providers/completionSource.js:115:44)\r\n\tat CompletionSource.\u003canonymous> (/Users/mfairley/.vscode/extensions/ms-python.python-0.9.0/out/client/providers/completionSource.js:78:22)\r\n\tat Generator.next (\u003canonymous>)\r\n\tat __awaiter (/Users/mfairley/.vscode/extensions/ms-python.python-0.9.0/out/client/providers/completionSource.js:9:71)\r\n\tat Promise (\u003canonymous>)\r\n\tat __awaiter (/Users/mfairley/.vscode/extensions/ms-python.python-0.9.0/out/client/providers/completionSource.js:5:12)\r\n\tat CompletionSource.getCompletionResult (/Users/mfairley/.vscode/extensions/ms-python.python-0.9.0/out/client/providers/completionSource.js:68:16)\r\n\tat CompletionSource.\u003canonymous> (/Users/mfairley/.vscode/extensions/ms-python.python-0.9.0/out/client/providers/completionSource.js:40:39)\r\n\tat Generator.next (\u003canonymous>)\r\n\tat __awaiter (/Users/mfairley/.vscode/extensions/ms-python.python-0.9.0/out/client/providers/completionSource.js:9:71)\r\n\r\n(node:13752) DeprecationWarning: Calling an asynchronous function without callback is deprecated.\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n11:18:45.522 console.ts:123 [Extension Host] (node:13752) DeprecationWarning: Calling an asynchronous function without callback is deprecated.\r\nt.log @ console.ts:123\r\n```\r\n","author":{"url":"https://github.com/mfairley","@type":"Person","name":"mfairley"},"datePublished":"2017-12-16T20:25:59Z","url":"https://github.com/microsoft/vscode-python/issues/444"}
| 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:85228460-7c02-af7d-2400-5d6deda9cb70 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6E8:41486:6C5C8:8CFBA:6AFE52CA |
| html-safe-nonce | 21fe8b28d2bae8eea48cb40716bd643badfb757b297f8fc16a7d822dff6c0ab4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkU4OjQxNDg2OjZDNUM4OjhDRkJBOjZBRkU1MkNBIiwidmlzaXRvcl9pZCI6IjMwMjM2ODgwMjY0OTc2MzUwMTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6bc4f60d5c023972746e99a80e7646b76f40823a1a7e6a01563f1fcb7a6d3e89 |
| hovercard-subject-tag | issue:282648287 |
| 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/444/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6f9dd564d6ea48dc942b05cefdb4542ae4487af2dfe44385e56bde0a799701df/microsoft/vscode-python/issues/444 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6f9dd564d6ea48dc942b05cefdb4542ae4487af2dfe44385e56bde0a799701df/microsoft/vscode-python/issues/444 |
| og:image:alt | Environment data VS Code version: 1.19.0 (1.19.0) Python Extension version: 0.9.0 Python Version: Anaconda 2.7.14 OS and version: mac OS 10.13.2 Actual behavior Updates to Pylint messages are very ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mfairley |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3ad2b58e42f481583284b895305360b61b0223636c9dde6d696b575347163a26 |
| 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 | 8df44dbe1c8091b38c3e0165c05a1e5c1563762e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width