Title: Python 3 linter does not work (pylint, flake8) · Issue #482 · microsoft/vscode-python · GitHub
Open Graph Title: Python 3 linter does not work (pylint, flake8) · Issue #482 · microsoft/vscode-python
X Title: Python 3 linter does not work (pylint, flake8) · Issue #482 · microsoft/vscode-python
Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: OS X 10.11.6 Actual behavior PyLint and Flake8 does not work. I cannot see any errors / warnings in my code even if there are ...
Open Graph Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: OS X 10.11.6 Actual behavior PyLint and Flake8 does not work. I cannot see any errors ...
X Description: Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: OS X 10.11.6 Actual behavior PyLint and Flake8 does not work. I cannot see any errors ...
Opengraph URL: https://github.com/microsoft/vscode-python/issues/482
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Python 3 linter does not work (pylint, flake8)","articleBody":"## Environment data\r\nVS Code version: 1.19.1\r\nPython Extension version: 0.9.1\r\nPython Version: 3.6.3\r\nOS and version: OS X 10.11.6\r\n\r\n## Actual behavior\r\n\r\nPyLint and Flake8 does not work. I cannot see any errors / warnings in my code even if there are syntax errors\r\n\r\n## Expected behavior\r\n\r\nShould show errors / warnings\r\n\r\n## Steps to reproduce: \r\n- mkdir -p Project/python\r\n- mkdir -p Project/javascript\r\n- touch Project/python/main.py\r\n- virtualenv -ppython3 Project/python/.env\r\n- source Project/python/.env/bin/activate\r\n- pip install pylint flake8\r\n- touch Project/Project.code-workspace\r\n- code Project/Project.code-workspace\r\n```\r\n{\r\n\t\"folders\": [\r\n\t\t{\r\n\t\t\t\"path\": \"python\"\r\n\t\t},\r\n\t\t{\r\n\t\t\t\"path\": \"javascript\"\r\n\t\t}\r\n\t],\r\n}\r\n```\r\n- code main.py \r\n```\r\nimport pylint\r\ndef name():\r\n pass\r\n```\r\n- flake8 main.py \r\n```\r\nmain.py:1:1: F401 'pylint' imported but unused\r\nmain.py:2:1: E302 expected 2 blank lines, found 0\r\nmain.py:3:9: W292 no newline at end of file\r\n```\r\n- open Project/Project.code-workspace\r\n- Open python/main.py file\r\n- make any syntax errors in main.py file\r\n- nothing happening\r\n\r\n## VSCode settings file\r\n\r\n```\r\n{\r\n \"editor.fontFamily\": \"Fira Code\",\r\n \"editor.fontSize\": 13,\r\n \"editor.fontLigatures\": true,\r\n \"python.linting.flake8Enabled\": true,\r\n \"python.linting.enabled\": true,\r\n \"editor.minimap.enabled\": false,\r\n \"files.trimTrailingWhitespace\": true,\r\n \"editor.renderWhitespace\": \"none\",\r\n \"editor.renderIndentGuides\": true,\r\n \"window.zoomLevel\": 0,\r\n \"window.title\": \"${activeEditorMedium}${separator}${rootName}\",\r\n \"files.exclude\": {\r\n \"**/.git\": true,\r\n \"**/.svn\": true,\r\n \"**/.hg\": true,\r\n \"**/CVS\": true,\r\n \"**/.DS_Store\": true,\r\n \"**/*.pyc\": true,\r\n \"**/__pycache__\": true\r\n },\r\n \"python.formatting.provider\": \"yapf\",\r\n \"editor.wordWrap\": \"on\",\r\n \"javascript.validate.enable\": false,\r\n \"git.autofetch\": true,\r\n \"diffEditor.renderSideBySide\": false,\r\n \"editor.stablePeek\": true,\r\n \"editor.formatOnType\": true,\r\n \"telemetry.enableCrashReporter\": false,\r\n \"workbench.startupEditor\": \"none\",\r\n \"gitlens.advanced.messages\": {\r\n \"suppressCommitHasNoPreviousCommitWarning\": false,\r\n \"suppressCommitNotFoundWarning\": false,\r\n \"suppressFileNotUnderSourceControlWarning\": false,\r\n \"suppressGitVersionWarning\": false,\r\n \"suppressLineUncommittedWarning\": false,\r\n \"suppressNoRepositoryWarning\": false,\r\n \"suppressUpdateNotice\": false,\r\n \"suppressWelcomeNotice\": true\r\n },\r\n \"explorer.confirmDelete\": false,\r\n}\r\n```\r\n\r\n## Logs\r\nOutput from ```Python``` output panel \r\n```\r\nEmpty\r\n``` \r\nOutput from ```Console window``` (Help->Developer Tools menu)\r\n```\r\n[Extension Host] debugger listening on port 9334\r\n/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:2569 [Extension Host] debugger inspector at %cDebugger listening on port 9334.\r\nWarning: This is an experimental feature and could change at any time.\r\nTo start debugging, open the following URL in Chrome:\r\n chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9334/eae2819c-334a-45ac-9028-ec1e1ab7ef66\r\n\r\n2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] Python Extension: documentHasJupyterCodeCells.promises Error: EISDIR: illegal operation on a directory, read\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] Failed to parse env file Error: EISDIR: illegal operation on a directory, read\r\n\tat Object.fs.readSync (fs.js:682:19)\r\n\tat tryReadSync (fs.js:480:20)\r\n\tat Object.fs.readFileSync (fs.js:517:19)\r\n\tat Object.exports.wrapFsWithAsar.fs.readFileSync (ELECTRON_ASAR.js:505:29)\r\n\tat Object.parseEnvFile (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/common/envFileParser.js:25:23)\r\n\tat Object.getCustomEnvVarsSync (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/common/utils.js:388:38)\r\n\tat JediProxy.onConfigChanged (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/providers/jediProxy.js:519:47)\r\n\tat new JediProxy (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/providers/jediProxy.js:132:14)\r\n\tat JediFactory.getJediProxyHandler (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/languageServices/jediProxyFactory.js:27:31)\r\n\tat CompletionSource.\u003canonymous> (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/providers/completionSource.js:91:43)\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] Failed to parse env file Error: EISDIR: illegal operation on a directory, read\r\n\tat Object.fs.readSync (fs.js:682:19)\r\n\tat tryReadSync (fs.js:480:20)\r\n\tat Object.fs.readFileSync (fs.js:517:19)\r\n\tat Object.exports.wrapFsWithAsar.fs.readFileSync (ELECTRON_ASAR.js:505:29)\r\n\tat Object.parseEnvFile (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/common/envFileParser.js:25:23)\r\n\tat Object.getCustomEnvVarsSync (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/common/utils.js:388:38)\r\n\tat JediProxy.spawnProcess (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/providers/jediProxy.js:214:51)\r\n\tat JediProxy.initialize (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/providers/jediProxy.js:177:14)\r\n\tat new JediProxy (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/providers/jediProxy.js:133:14)\r\n\tat JediFactory.getJediProxyHandler (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/languageServices/jediProxyFactory.js:27:31)\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n4/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] Failed to parse env file Error: EISDIR: illegal operation on a directory, read\r\n\tat Object.fs.readSync (fs.js:682:19)\r\n\tat tryReadSync (fs.js:480:20)\r\n\tat Object.fs.readFileSync (fs.js:517:19)\r\n\tat Object.exports.wrapFsWithAsar.fs.readFileSync (ELECTRON_ASAR.js:505:29)\r\n\tat Object.parseEnvFile (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/common/envFileParser.js:25:23)\r\n\tat /Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/common/utils.js:366:42\r\n\tat Generator.next (\u003canonymous>)\r\n\tat fulfilled (/Users/aliev/.vscode/extensions/ms-python.python-0.9.1/out/client/common/utils.js:4:58)\r\n\tat \u003canonymous>\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] rejected promise not handled within 1 second\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1225 ERR EISDIR: illegal operation on a directory, read: Error: EISDIR: illegal operation on a directory, read\r\n2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] Python Extension: documentHasJupyterCodeCells.promises Error: EISDIR: illegal operation on a directory, read\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] rejected promise not handled within 1 second\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1225 ERR EISDIR: illegal operation on a directory, read: Error: EISDIR: illegal operation on a directory, read\r\n2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] Python Extension: documentHasJupyterCodeCells.promises Error: EISDIR: illegal operation on a directory, read\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] rejected promise not handled within 1 second\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1225 ERR EISDIR: illegal operation on a directory, read: Error: EISDIR: illegal operation on a directory, read\r\n2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] Python Extension: documentHasJupyterCodeCells.promises Error: EISDIR: illegal operation on a directory, read\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n2/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249 [Extension Host] rejected promise not handled within 1 second\r\nt.log @ /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:249\r\n/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/workbench.main.js:1225 ERR EISDIR: illegal operation on a directory, read: Error: EISDIR: illegal operation on a directory, read\r\n```\r\n\r\n\r\nP.S. It works very well without virtual environment\r\nP.P.S. Worked before python virtual environment of the python2.7, now it does not work as well","author":{"url":"https://github.com/aliev","@type":"Person","name":"aliev"},"datePublished":"2017-12-23T14:04:54Z","url":"https://github.com/microsoft/vscode-python/issues/482"}
| 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:00f1a6ae-5b4c-cc9f-4520-def690be05d7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | ED8A:DE7A8:18474F:1FE760:6AFE3696 |
| html-safe-nonce | c7765250c253a84b77ac5fa4947c3d8de5932c88559218f107ec317bb9be30c5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDhBOkRFN0E4OjE4NDc0RjoxRkU3NjA6NkFGRTM2OTYiLCJ2aXNpdG9yX2lkIjoiMzIzMjM2MjI5MzkyODgwMTk0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9d666c1b676df7bd0002e3efb491f937f0ab5c6291262b547eaca35f2bed4d3c |
| hovercard-subject-tag | issue:284308135 |
| 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/482/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c4ca82236ed6325cc052c04ac68b86a37e255e14c23d851d99fd3af708397cac/microsoft/vscode-python/issues/482 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c4ca82236ed6325cc052c04ac68b86a37e255e14c23d851d99fd3af708397cac/microsoft/vscode-python/issues/482 |
| og:image:alt | Environment data VS Code version: 1.19.1 Python Extension version: 0.9.1 Python Version: 3.6.3 OS and version: OS X 10.11.6 Actual behavior PyLint and Flake8 does not work. I cannot see any errors ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aliev |
| hostname | github.com |
| expected-hostname | github.com |
| None | 260deedcf4630abb0a6b4aaa02fd2af70eab44d2529712694ceae59ca131b02e |
| 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 | 8b413ea7a9b010f4f2ebbb923b041b0d6091dd94 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width