-
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
VSCode doesn't find linters installed using a different python #409
Comments
I had to pin the path because for some reason vscode wasn't finding it... Filed microsoft/vscode-python#409
We are actually about to change this in the next version of the extension to use the linters as installed for the selected interpreter so that e.g. you're running Pylint under Python 2 on Python 2 code when using a Python 2 interpreter. If you want to work around this then you will need to specify the full path to override. |
Hmm... so I saw The behavior did not change. It's not like I have a super custom path either, they are sitting in Are you sure you don't want to have VSCode have a fallback of checking the system path for the existence of |
I will re-open this as a feature enhancement request. |
So I discussed this with @DonJayamanne as to why it's this way, and it turns out there are legitimate reasons. The key issue is if we use e.g. Now as you noticed you have an escape hatch through your |
That's very reasonable, thank you. |
Environment data
VS Code version: 1.18.1
Python Extension version: 0.8.0
OS and version: OS X Sierra
I have three primary python installations:
/usr/bin/python
- this is the system python, and I don't use it, but haven't overwritten the symlink so that I don't break any MacOS functionality./usr/local/bin/python2
- installed via homebrew, used when I need to run python2 or create python2 venv's/usr/local/bin/python3
- installed via homebrew, used when I need to run python3 or create python3 venv'sI normally run
flake8
,pylint
, andpycodestyle
as linters, and I typically install them into the primary python that I'm using, which is python2 (work) or python3 (personal).After installation, I can verify that they are available on the command line:
So I would expect that as soon as I enable these linters in my
settings.json
, that VSCode python extension could find them, as the default command to trigger them is simply"flake8"
,"pylint"
, and"pydocstyle"
.However, for some reason this extension isn't picking them up... I keep getting the banner message saying these linters aren't installed.
When I pin the location, then linting starts working fine:
I spent a while searching this issue tracker, but couldn't find any previous reports of this.
The text was updated successfully, but these errors were encountered: