-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pylint not executed in multi-root workspace #4873
Comments
I am also seeing this behavior. The interpreter for each project in the workspace is set and pylint, flake8, pyflakes, etc are installed. It still does not lint in the editor. |
We are going through old issues and we noticed that no one from the team had replied to this issue. I want to apologize for the oversight and to let you know that the issue was reviewed by the team and triaged (as shown by the labels applied to this issue). |
Thanks Brett! |
Please try the https://marketplace.visualstudio.com/items?itemName=ms-python.pylint extension. It should support multi-root, and multi-python scenarios. We are migrating users to the new extension. Closing this issue, since this should be handled by the new extension. |
Environment data
Expected behaviour
When running the linters with pylint enabled, pylint should be executed and results should be shown. In the Output tab under Python, the linting output should be shown.
This is what happens when the folder is opened outside the multi-root workspace. Note that pep8 is also configured and shown in the log:
Actual behaviour
Pylint is not executed. Only pep8 is in the output:
Additionally, a notification is shown:
Linter pylint is installed but not enabled.
. However, pylint is enabled in the folder's (not the workspaces)settings.json
Steps to reproduce:
.vscode/settings.json
is created in the first folder--Logs
Output for
Python
in theOutput
panel (View
→Output
, change the drop-down the upper-right of theOutput
panel toPython
)see above
Output from
Console
under theDeveloper Tools
panel (toggle Developer Tools on underHelp
; turn on source maps to make any tracebacks be useful by runningEnable source map support for extension debugging
)Other
I noticed there recently was some work on tests in multi-root workspaces (#4268). I don't know if there is any connection, but as I experienced this issue in the same project as well, I thought it might be worth mentioning here. Also maybe relevant here: #862
Please let me know if you need more information to reproduce this!
Thank you very much!
The text was updated successfully, but these errors were encountered: